Commits

tjama committed 55fe781

fixes

Comments (0)

Files changed (3)

templates/viewanime.html

         <tbody>
 		  {% for (i,s) in enumerate(anime) %}
           <tr>
-            <td>{{ i }}</td>
+            <td>{{ i + 1 }}</td>
             <td>{{ s['title'] }}</td>
             <td>{% if s['mallink'] %}<a href="{{ s['mallink'] }}" target="_blank"><img src="/static/images/mal-logo-small.jpg"></a>{% end %}</td>
             <td>{{ s['songs'] }}</td>

templates/viewartists.html

         <tbody>
 		  {% for (i,s) in enumerate(artists) %}
           <tr>
-            <td>{{ i }}</td>
+            <td>{{ i + 1 }}</td>
             <td>{{ s['name'] }}</td>
             <td>{{ s['songs'] }}</td>
           </tr>

templates/viewsongs.html

         <tbody>
 		  {% for (i,s) in enumerate(songs) %}
           <tr>
-            <td>{{ i }}</td>
+            <td>{{ i + 1 }}</td>
             <td>{{ s['title'] }}</td>
             <td><span class="toanime strong" value="{{ s['anime_id'] - 1 }}" style="font-weight:bold;"></span></td>
             <td>{{ s['stype'] }}
 				{% if s['number'] > 0 %}{{ s['number'] }}{% end %}
             </td>
-            <td>{{ s['year'] }}</td>
+            <td>{% if s['year'] > 0 %}{{ s['year'] }}{% end %}</td>
             <td>{{ s['votes'] }}</td>
           </tr>
           {% end %}