removing tabs and spaces mix in templates

This commit is contained in:
volpino 2012-04-28 18:29:21 +02:00
parent 8c91855a58
commit ff14477f60
7 changed files with 63 additions and 61 deletions

View File

@ -15,7 +15,7 @@
<body> <body>
<div id="header"> <div id="header">
<a href="http://www.gentoo.org"> <a href="http://www.gentoo.org">
<img id="logo" src="{{ STATIC_URL }}img/gentoo_org.png" /> <img id="logo" src="{{ STATIC_URL }}img/gentoo_org.png" />
</a> </a>
{% block header %}<h1>Ebuild Upstream Scanner (euscan)</h1>{% endblock %} {% block header %}<h1>Ebuild Upstream Scanner (euscan)</h1>{% endblock %}
</div> </div>
@ -24,44 +24,44 @@
</div> </div>
<div id="menus"> <div id="menus">
{% block menus %} {% block menus %}
<div class="menu"> <div class="menu">
<ul> <ul>
{% block menu %} {% block menu %}
<li><a href="{% url djeuscan.views.index %}">Home</a></li> <li><a href="{% url djeuscan.views.index %}">Home</a></li>
<li><a href="{% url djeuscan.views.categories %}">Categories</a></li> <li><a href="{% url djeuscan.views.categories %}">Categories</a></li>
<li><a href="{% url djeuscan.views.herds %}">Herds</a></li> <li><a href="{% url djeuscan.views.herds %}">Herds</a></li>
<li><a href="{% url djeuscan.views.maintainers %}">Maintainers</a></li> <li><a href="{% url djeuscan.views.maintainers %}">Maintainers</a></li>
<li><a href="{% url djeuscan.views.overlays %}">Overlays</a></li> <li><a href="{% url djeuscan.views.overlays %}">Overlays</a></li>
<li><a href="{% url djeuscan.views.world %}">Scan World</a></li> <li><a href="{% url djeuscan.views.world %}">Scan World</a></li>
<li><a href="{% url djeuscan.views.statistics %}">Statistics</a></li> <li><a href="{% url djeuscan.views.statistics %}">Statistics</a></li>
<!-- <!--
<li>---</li> <li>---</li>
<li><a href="#">Login</a></li> <li><a href="#">Login</a></li>
<li><a href="#">Register</a></li> <li><a href="#">Register</a></li>
--> -->
<li>---</li> <li>---</li>
{% block menu_feed %} {% block menu_feed %}
<li> <li>
<img src="{{ STATIC_URL }}img/feed.png" alt="feed" /> <img src="{{ STATIC_URL }}img/feed.png" alt="feed" />
<a title="Global Feed" href="{% url global_feed %}">Global Feed</a> <a title="Global Feed" href="{% url global_feed %}">Global Feed</a>
</li> </li>
{% endblock %} {% endblock %}
<li>---</li> <li>---</li>
<li><a href="{% url djeuscan.views.api %}">API</a></li> <li><a href="{% url djeuscan.views.api %}">API</a></li>
<li><a href="{% url djeuscan.views.about %}">About</a></li> <li><a href="{% url djeuscan.views.about %}">About</a></li>
{% endblock %} {% endblock %}
</ul> </ul>
</div> </div>
{% endblock %} {% endblock %}
</div> </div>
<div id="footer"> <div id="footer">
<p> <p>
Questions, Comments, Corrections ? Questions, Comments, Corrections ?
Email: corentin.chary at gmail.com<br /> Email: corentin.chary at gmail.com<br />
Copyright (C) 2011 <strong>Corentin Chary</strong><br /> Copyright (C) 2011 <strong>Corentin Chary</strong><br />
Original Gentoo artwork and logos copyright (C) Gentoo Foundation.<br /> Original Gentoo artwork and logos copyright (C) Gentoo Foundation.<br />
Design inspired by (stolen from) gentoo.org and bugs.gentoo.org.<br /> Design inspired by (stolen from) gentoo.org and bugs.gentoo.org.<br />
<em>This site is not an official Gentoo website.</em> <em>This site is not an official Gentoo website.</em>
</p> </p>
</div> </div>
</body> </body>

View File

@ -19,7 +19,7 @@
<tr> <tr>
<td> <td>
<a href="{% url djeuscan.views.package package.category package.name %}"> <a href="{% url djeuscan.views.package package.category package.name %}">
{{ package.category }}/{{ package.name }} {{ package.category }}/{{ package.name }}
</a> </a>
{% package_bar package %} {% package_bar package %}
</td> </td>

View File

@ -47,7 +47,7 @@
<dd><img src="{% url djeuscan.views.chart_category category 'versions-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_category category 'versions-monthly-small' %}" /></dd>
<dt>Packages</dt> <dt>Packages</dt>
<dd><img src="{% url djeuscan.views.chart_category category 'packages-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_category category 'packages-monthly-small' %}" /></dd>
</dl> </dl>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -45,7 +45,7 @@
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly-small' %}" /></dd>
<dt>Packages</dt> <dt>Packages</dt>
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly-small' %}" /></dd>
</dl> </dl>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -45,7 +45,7 @@
<dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'versions-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'versions-monthly-small' %}" /></dd>
<dt>Packages</dt> <dt>Packages</dt>
<dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'packages-monthly-small' %}" /></dd> <dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'packages-monthly-small' %}" /></dd>
</dl> </dl>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -24,11 +24,11 @@
<tr> <tr>
<td> <td>
<a href="{% url djeuscan.views.maintainer maintainer.maintainers__id %}"> <a href="{% url djeuscan.views.maintainer maintainer.maintainers__id %}">
{% if maintainer.maintainers__name != maintainer.maintainers__email %} {% if maintainer.maintainers__name != maintainer.maintainers__email %}
{{ maintainer.maintainers__name }} &lt;{{ maintainer.maintainers__email }}&gt; {{ maintainer.maintainers__name }} &lt;{{ maintainer.maintainers__email }}&gt;
{% else %} {% else %}
{{ maintainer.maintainers__name }} {{ maintainer.maintainers__name }}
{% endif %} {% endif %}
</a> </a>
{% package_bar maintainer %} {% package_bar maintainer %}
</td> </td>

View File

@ -51,7 +51,7 @@
{% for maintainer in package.maintainers.all %} {% for maintainer in package.maintainers.all %}
{% if maintainer.name != maintainer.email %} {% if maintainer.name != maintainer.email %}
<a href="{% url djeuscan.views.maintainer maintainer.id %}"> <a href="{% url djeuscan.views.maintainer maintainer.id %}">
{{ maintainer.name }} {{ maintainer.name }}
</a> </a>
&lt;{{ maintainer.email }}&gt; &lt;{{ maintainer.email }}&gt;
{% else %} {% else %}
@ -68,12 +68,12 @@
<ul> <ul>
{% for version in packaged %} {% for version in packaged %}
<li id="{{ version.version }}-{{version.revision }}:{{ version.slot }}-[{{ version.overlay }}]"> <li id="{{ version.version }}-{{version.revision }}:{{ version.slot }}-[{{ version.overlay }}]">
{% if version.overlay == "gentoo" %} {% if version.overlay == "gentoo" %}
<img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" /> <img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
{% else %} {% else %}
<img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" /> <img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
{% endif %} {% endif %}
{{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}] {{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}]
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
@ -85,8 +85,8 @@
<ul> <ul>
{% for version in upstream %} {% for version in upstream %}
<li> <li>
<img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" /> <img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
{{ version.version }} - {{ version.urls }} {{ version.version }} - {{ version.urls }}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
@ -101,14 +101,16 @@
{% else %} {% else %}
<li class="removed"> <li class="removed">
{% endif %} {% endif %}
{% if version.overlay == "gentoo" %} {% if version.overlay == "gentoo" %}
<img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" /> <img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
{% else %}{% if version.overlay %} {% elif version.overlay %}
<img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" /> <img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
{% else %} {% else %}
<img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" /> <img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
{% endif %}{% endif %} {% endif %}
{{ version }} - {{ version.datetime }}
{{ version }} - {{ version.datetime }}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>