3 changed files with 50 additions and 6 deletions
@ -1,3 +1,31 @@
|
||||
body { |
||||
color: black; |
||||
background: #FFF; |
||||
color: #333; |
||||
} |
||||
|
||||
a { |
||||
text-decoration: none; |
||||
color: #7331e8; |
||||
} |
||||
|
||||
a:visited { |
||||
color: #7331e8; |
||||
} |
||||
|
||||
a:hover { |
||||
color: #a06cfc; |
||||
} |
||||
|
||||
#list { |
||||
margin: auto; |
||||
border-collapse:collapse; |
||||
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); |
||||
} |
||||
|
||||
#list tr:nth-child(odd) { |
||||
background: #F5F5F5; |
||||
} |
||||
|
||||
h1 { |
||||
text-align: center; |
||||
} |
@ -1,3 +1,21 @@
|
||||
{{ define "body" }} |
||||
<h1>List for {{.List.User}}</h1> |
||||
<h1 id="title">List for {{.Content.User}}</h1> |
||||
<table id="list"> |
||||
<tr> |
||||
<th width="30">ID</th> |
||||
<th width="60">Title</th> |
||||
<th width="30" align="center">Score</th> |
||||
<th width="30" align="center">Type</th> |
||||
<th width="30" align="center">Progress</th> |
||||
</tr> |
||||
{{range .Content.Anime}} |
||||
<tr> |
||||
<td align="center">{{.Anime.ID}}</td> |
||||
<td><a href="https://api.meikan.moe/v1/anime/{{.Anime.ID}}">{{.Anime.Title}}</a></td> |
||||
<td align="center">{{.Rating}}</td> |
||||
<td align="center">{{.Anime.Type}}</td> |
||||
<td align="center">{{.Episode}}/{{.Anime.Episodes}}</td> |
||||
</tr> |
||||
{{end}} |
||||
</table> |
||||
{{ end }} |
Loading…
Reference in new issue