Improved page titles

This commit is contained in:
2017-07-06 22:08:49 +02:00
parent 7efeddab55
commit fb7d2fa24c
10 changed files with 25 additions and 20 deletions

View File

@ -1,7 +1,7 @@
component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.Anime)
.widgets.mountable
.widget.anime-list-item-view(data-api="/api/animelist/" + viewUser.ID + "/update/" + anime.ID)
h2= anime.Title.Canonical
h1= anime.Title.Canonical
InputNumber("Episodes", float64(item.Episodes), "Episodes", "Number of episodes you watched", "0", arn.EpisodeCountMax(anime.EpisodeCount), "1")

View File

@ -1,5 +1,5 @@
component EditAnime(anime *arn.Anime)
h2= anime.Title.Canonical
h1= anime.Title.Canonical
.widgets
.widget(data-api="/api/anime/" + anime.ID)

View File

@ -1,5 +1,5 @@
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
h2.page-title Forum
h1.page-title Forum
ForumTags
.forum
ThreadList(threads)

View File

@ -1,3 +0,0 @@
component Forums
h2.forum-header Forum
ForumTags

View File

@ -1,5 +1,5 @@
component ImportAnilist(user *arn.User, matches []*arn.AniListMatch)
h2= "anilist.co Import (" + user.Accounts.AniList.Nick + ", " + toString(len(matches)) + " anime)"
h1= "anilist.co Import (" + user.Accounts.AniList.Nick + ", " + toString(len(matches)) + " anime)"
table.import-list
thead

View File

@ -1,5 +1,5 @@
component Music(tracks []*arn.SoundTrack)
h2 Soundtracks
h1 Soundtracks
.music-buttons
a.button.ajax(href="/new/soundtrack")

View File

@ -1,5 +1,5 @@
component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
h2.thread-title= thread.Title
h1.thread-title= thread.Title
#thread.thread(data-id=thread.ID)
.posts

View File

@ -1,5 +1,5 @@
component Track(track *arn.SoundTrack)
h2= track.Media[0].Title
h1= track.Media[0].Title
.sound-tracks
SoundTrackAllMedia(track)