mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 05:59:53 +01:00
Fix bugs with own struct
This commit is contained in:
12
season.qtpl
12
season.qtpl
@@ -1,5 +1,5 @@
|
||||
{% package main %}
|
||||
{% func Index(season *SeasonJikan) %}
|
||||
{% func Index(animes []Anime) %}
|
||||
{% collapsespace %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -23,16 +23,16 @@ body { background-color: #1a1a1a; color: #fff; }
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Airing 📺</strong></td>
|
||||
<td>{%d season.Pagination.Items.Total %}</td>
|
||||
<td>{%d len(animes) %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</br>
|
||||
<table>
|
||||
{% for _, anime := range season.Data %}
|
||||
{% for _, anime := range animes %}
|
||||
<tr>
|
||||
<td><strong>{%s anime.Title %}</strong></td>
|
||||
<td>{%dl anime.MalID %}</td>
|
||||
<td>{%s anime.Aired.String %}</td>
|
||||
<td><strong>{%s anime.Data.Title %}</strong></td>
|
||||
<td>{%dl anime.Anime %}</td>
|
||||
<td>{%d anime.Data.Episodes %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user