mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 08:39:53 +01:00
Charts V1
This commit is contained in:
37
season.qtpl
37
season.qtpl
@@ -1,5 +1,5 @@
|
||||
{% package main %}
|
||||
{% func Index(animes []Anime, oracles []MmOracle, log string) %}
|
||||
{% func Index(animes []Anime, oracles []MmOracle, charts []MovieChart, log string) %}
|
||||
{% collapsespace %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -30,23 +30,52 @@ body { background-color: #1a1a1a; color: #fff; }
|
||||
</table>
|
||||
</br>
|
||||
<table>
|
||||
<tr>
|
||||
<th>MALID</th>
|
||||
<th>SCORE</th>
|
||||
<th>TITLE</th>
|
||||
</tr>
|
||||
{% for _, anime := range animes %}
|
||||
<tr>
|
||||
<td><a href="{%s anime.URL %}" target="_blank" rel="noopener noreferrer">{%dl anime.Anime %}</a></td>
|
||||
<td><strong>{%s anime.Title %}</strong></td>
|
||||
<td>{%d anime.Episodes %}</td>
|
||||
<td>{%f anime.Score %}</td>
|
||||
<td><strong>{%s anime.Title %}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<h2>MovieManager Charts</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>MMID</th>
|
||||
<th>MALID</th>
|
||||
<th>USER</th>
|
||||
<th>SCORE</th>
|
||||
<th>TITLE</th>
|
||||
</tr>
|
||||
{% for _, chart := range charts %}
|
||||
<tr>
|
||||
<td><a href="https://movies.hanami.family/movie/{%d chart.MmId %}" target="_blank" rel="noopener noreferrer">{%d chart.MmId %}</a></td>
|
||||
<td><a href="{%s chart.Data.URL %}" target="_blank" rel="noopener noreferrer">{%dl chart.Data.Anime %}</a></td>
|
||||
<td>{%d chart.UserCount %}</td>
|
||||
<td><strong>{%f chart.AvgScore %}</strong></td>
|
||||
<td><strong>{%s chart.Data.Title %}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<h2>MovieManager Oracle</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>MMID</th>
|
||||
<th>MALID</th>
|
||||
<th>SCORE</th>
|
||||
<th>TITLE</th>
|
||||
</tr>
|
||||
{% for _, oracle := range oracles %}
|
||||
<tr>
|
||||
<td><a href="https://movies.hanami.family/movie/{%d oracle.Id %}" target="_blank" rel="noopener noreferrer">{%d oracle.Id %}</a></td>
|
||||
<td>{%dl oracle.Anime %}</td>
|
||||
<td>{%d oracle.AvgScore %}</td>
|
||||
<td><strong>{%s oracle.Title %}</strong></td>
|
||||
<td>{%dl oracle.Anime %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user