Removed ajax class (not required anymore)
This commit is contained in:
parent
5e4afa9748
commit
ccd6e860cf
@ -1,10 +1,10 @@
|
|||||||
component AudioPlayer
|
component AudioPlayer
|
||||||
#audio-player
|
#audio-player
|
||||||
#audio-player-anime-info.hidden
|
#audio-player-anime-info.hidden
|
||||||
a#audio-player-anime-link.ajax(href="", title="")
|
a#audio-player-anime-link(href="", title="")
|
||||||
img#audio-player-anime-image.lazy.hidden(data-src="", data-webp="true", alt="Anime cover")
|
img#audio-player-anime-image.lazy.hidden(data-src="", data-webp="true", alt="Anime cover")
|
||||||
|
|
||||||
a#audio-player-track-title.ajax(href="")
|
a#audio-player-track-title(href="")
|
||||||
|
|
||||||
#audio-player-controls
|
#audio-player-controls
|
||||||
button#audio-player-prev.audio-player-side-button.action(data-action="playPreviousTrack", data-trigger="click")
|
button#audio-player-prev.audio-player-side-button.action(data-action="playPreviousTrack", data-trigger="click")
|
||||||
|
@ -8,13 +8,13 @@ component Sidebar(user *arn.User)
|
|||||||
img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
|
img.user-image.lazy(src=utils.EmptyImage(), data-src="/images/brand/64.png", data-webp="true", alt="Anime Notifier")
|
||||||
|
|
||||||
if user != nil
|
if user != nil
|
||||||
a.badge.left-badge.ajax(href="/settings", title="Settings")
|
a.badge.left-badge(href="/settings", title="Settings")
|
||||||
RawIcon("cog")
|
RawIcon("cog")
|
||||||
|
|
||||||
a#notification-icon.badge.right-badge.ajax(href="/notifications", title="Notifications")
|
a#notification-icon.badge.right-badge(href="/notifications", title="Notifications")
|
||||||
RawIcon("bell")
|
RawIcon("bell")
|
||||||
|
|
||||||
a#notification-count.badge.right-badge.ajax.badge-important.hidden(href="/notifications", title="Notifications") 0
|
a#notification-count.badge.right-badge.badge-important.hidden(href="/notifications", title="Notifications") 0
|
||||||
|
|
||||||
//- Sidebar buttons
|
//- Sidebar buttons
|
||||||
if user != nil
|
if user != nil
|
||||||
@ -78,7 +78,7 @@ component Sidebar(user *arn.User)
|
|||||||
SocialMediaButtons
|
SocialMediaButtons
|
||||||
|
|
||||||
component SidebarButton(name string, target string, icon string)
|
component SidebarButton(name string, target string, icon string)
|
||||||
a.sidebar-link.ajax(href=target, aria-label=name, data-bubble="true")
|
a.sidebar-link(href=target, aria-label=name, data-bubble="true")
|
||||||
.sidebar-button
|
.sidebar-button
|
||||||
Icon(icon)
|
Icon(icon)
|
||||||
span.sidebar-text= name
|
span.sidebar-text= name
|
||||||
|
@ -5,7 +5,7 @@ component AnimeGrid(animes []*arn.Anime, user *arn.User)
|
|||||||
component AnimeGridScrollable(animes []*arn.Anime, user *arn.User)
|
component AnimeGridScrollable(animes []*arn.Anime, user *arn.User)
|
||||||
each anime in animes
|
each anime in animes
|
||||||
.anime-grid-cell(data-added=(user != nil && user.AnimeList().Contains(anime.ID)))
|
.anime-grid-cell(data-added=(user != nil && user.AnimeList().Contains(anime.ID)))
|
||||||
a.ajax(href="/anime/" + toString(anime.ID))
|
a(href="/anime/" + toString(anime.ID))
|
||||||
img.anime-grid-image.lazy(data-src=anime.ImageLink("medium"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Romaji)
|
img.anime-grid-image.lazy(data-src=anime.ImageLink("medium"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Romaji)
|
||||||
.anime-grid-title
|
.anime-grid-title
|
||||||
.anime-grid-title-text= anime.Title.ByUser(user)
|
.anime-grid-title-text= anime.Title.ByUser(user)
|
||||||
|
@ -10,11 +10,11 @@ component AnimeListScrollable(animeListItems []*arn.AnimeListItem, viewUser *arn
|
|||||||
each item in animeListItems
|
each item in animeListItems
|
||||||
.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + viewUser.ID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
|
.anime-list-item.mountable(title=item.Notes, data-api="/api/animelist/" + viewUser.ID + "/field/Items[AnimeID=\"" + item.AnimeID + "\"]")
|
||||||
.anime-list-item-image-container
|
.anime-list-item-image-container
|
||||||
a.anime-list-item-image-link.ajax(href=item.Anime().Link())
|
a.anime-list-item-image-link(href=item.Anime().Link())
|
||||||
img.anime-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user))
|
img.anime-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user))
|
||||||
|
|
||||||
.anime-list-item-name
|
.anime-list-item-name
|
||||||
a.ajax(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user)
|
a(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user)
|
||||||
|
|
||||||
.anime-list-item-actions
|
.anime-list-item-actions
|
||||||
if user != nil && item.Status == arn.AnimeListStatusWatching
|
if user != nil && item.Status == arn.AnimeListStatusWatching
|
||||||
|
@ -2,7 +2,7 @@ component Avatar(user *arn.User)
|
|||||||
CustomAvatar(user, user.Link(), user.Nick)
|
CustomAvatar(user, user.Link(), user.Nick)
|
||||||
|
|
||||||
component CustomAvatar(user *arn.User, link string, title string)
|
component CustomAvatar(user *arn.User, link string, title string)
|
||||||
a.user.ajax(href=link, title=title)
|
a.user(href=link, title=title)
|
||||||
AvatarNoLink(user)
|
AvatarNoLink(user)
|
||||||
|
|
||||||
component AvatarNoLink(user *arn.User)
|
component AvatarNoLink(user *arn.User)
|
||||||
|
@ -47,7 +47,7 @@ component Postable(post arn.Postable, user *arn.User, highlightAuthorID string)
|
|||||||
a.post-tool.post-delete.action(data-action="deletePost", data-trigger="click", data-id=post.ID(), title="Delete")
|
a.post-tool.post-delete.action(data-action="deletePost", data-trigger="click", data-id=post.ID(), title="Delete")
|
||||||
Icon("trash")
|
Icon("trash")
|
||||||
|
|
||||||
a.post-tool.post-permalink.ajax(href=post.Link(), title="Permalink")
|
a.post-tool.post-permalink(href=post.Link(), title="Permalink")
|
||||||
Icon("link")
|
Icon("link")
|
||||||
|
|
||||||
//- if type === "Messages" && user && (user.ID === post.authorId || user.ID === post.recipientId)
|
//- if type === "Messages" && user && (user.ID === post.authorId || user.ID === post.recipientId)
|
||||||
|
@ -5,7 +5,7 @@ component Quote(quote *arn.Quote)
|
|||||||
|
|
||||||
component QuoteContent(quote *arn.Quote)
|
component QuoteContent(quote *arn.Quote)
|
||||||
.quote-content
|
.quote-content
|
||||||
a.quotation.ajax(href=quote.Link())
|
a.quotation(href=quote.Link())
|
||||||
blockquote!= markdown.Render(quote.Text.English)
|
blockquote!= markdown.Render(quote.Text.English)
|
||||||
|
|
||||||
if quote.CharacterID != "" && quote.Character() != nil
|
if quote.CharacterID != "" && quote.Character() != nil
|
||||||
@ -17,4 +17,4 @@ component QuoteFooter(quote *arn.Quote)
|
|||||||
span posted
|
span posted
|
||||||
span.utc-date(data-date=quote.Created)
|
span.utc-date(data-date=quote.Created)
|
||||||
span by
|
span by
|
||||||
a.ajax(href=quote.Creator().Link())= quote.Creator().Nick
|
a(href=quote.Creator().Link())= quote.Creator().Nick
|
||||||
|
@ -6,7 +6,7 @@ component SoundTrack(track *arn.SoundTrack)
|
|||||||
component SoundTrackContent(track *arn.SoundTrack)
|
component SoundTrackContent(track *arn.SoundTrack)
|
||||||
.soundtrack-content
|
.soundtrack-content
|
||||||
if track.MainAnime() != nil
|
if track.MainAnime() != nil
|
||||||
a.soundtrack-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
|
a.soundtrack-anime-link(href="/anime/" + track.MainAnime().ID)
|
||||||
img.soundtrack-anime-image.lazy(data-src=track.MainAnime().ImageLink("medium"), data-webp="true", data-color=track.MainAnime().AverageColor(), alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
img.soundtrack-anime-image.lazy(data-src=track.MainAnime().ImageLink("medium"), data-webp="true", data-color=track.MainAnime().AverageColor(), alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
|
||||||
|
|
||||||
SoundTrackMedia(track)
|
SoundTrackMedia(track)
|
||||||
@ -29,13 +29,13 @@ component SoundTrackMedia(track *arn.SoundTrack)
|
|||||||
component SoundTrackFooter(track *arn.SoundTrack)
|
component SoundTrackFooter(track *arn.SoundTrack)
|
||||||
.soundtrack-footer
|
.soundtrack-footer
|
||||||
if track.Title == ""
|
if track.Title == ""
|
||||||
a.ajax(href=track.Link() + "/edit") untitled
|
a(href=track.Link() + "/edit") untitled
|
||||||
else
|
else
|
||||||
a.ajax(href=track.Link())= track.Title
|
a(href=track.Link())= track.Title
|
||||||
span posted
|
span posted
|
||||||
span.utc-date(data-date=track.Created)
|
span.utc-date(data-date=track.Created)
|
||||||
span by
|
span by
|
||||||
a.ajax(href=track.Creator().Link())= track.Creator().Nick + " "
|
a(href=track.Creator().Link())= track.Creator().Nick + " "
|
||||||
|
|
||||||
component ExternalMedia(media *arn.ExternalMedia)
|
component ExternalMedia(media *arn.ExternalMedia)
|
||||||
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
@ -6,7 +6,7 @@ component ThreadLink(thread *arn.Thread)
|
|||||||
.thread-content
|
.thread-content
|
||||||
if thread.Sticky != 0
|
if thread.Sticky != 0
|
||||||
Icon("thumb-tack")
|
Icon("thumb-tack")
|
||||||
a.thread-link-title.ajax(href="/thread/" + thread.ID)= thread.Title
|
a.thread-link-title(href="/thread/" + thread.ID)= thread.Title
|
||||||
.spacer
|
.spacer
|
||||||
.thread-reply-count= len(thread.Posts)
|
.thread-reply-count= len(thread.Posts)
|
||||||
.thread-icons
|
.thread-icons
|
||||||
|
@ -5,7 +5,7 @@ component AdminTabs
|
|||||||
Tab("Purchases", "shopping-cart", "/admin/purchases")
|
Tab("Purchases", "shopping-cart", "/admin/purchases")
|
||||||
|
|
||||||
.corner-buttons
|
.corner-buttons
|
||||||
a.button.ajax(href="/editor", aria-label="Editor")
|
a.button(href="/editor", aria-label="Editor")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span.tab-text Editor
|
span.tab-text Editor
|
||||||
|
|
||||||
|
@ -16,5 +16,5 @@ component GlobalPurchaseHistory(purchases []*arn.Purchase)
|
|||||||
each purchase in purchases
|
each purchase in purchases
|
||||||
tr.shop-history-item.mountable(data-item-id=purchase.ItemID)
|
tr.shop-history-item.mountable(data-item-id=purchase.ItemID)
|
||||||
td
|
td
|
||||||
a.ajax(href=purchase.User().Link())= purchase.User().Nick
|
a(href=purchase.User().Link())= purchase.User().Nick
|
||||||
PurchaseInfo(purchase)
|
PurchaseInfo(purchase)
|
@ -42,12 +42,12 @@ component AnimeActions(anime *arn.Anime, listItem *arn.AnimeListItem, user *arn.
|
|||||||
if user != nil
|
if user != nil
|
||||||
.buttons.anime-actions
|
.buttons.anime-actions
|
||||||
if user.Role == "editor" || user.Role == "admin"
|
if user.Role == "editor" || user.Role == "admin"
|
||||||
a.button.mountable.ajax(href=anime.Link() + "/edit", data-mountable-type="footer")
|
a.button.mountable(href=anime.Link() + "/edit", data-mountable-type="footer")
|
||||||
Icon("pencil-square-o")
|
Icon("pencil-square-o")
|
||||||
span Edit anime
|
span Edit anime
|
||||||
|
|
||||||
if listItem != nil
|
if listItem != nil
|
||||||
a.button.mountable.ajax(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer")
|
a.button.mountable(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span= listItem.StatusHumanReadable()
|
span= listItem.StatusHumanReadable()
|
||||||
else
|
else
|
||||||
@ -139,7 +139,7 @@ component AnimeLinks(anime *arn.Anime)
|
|||||||
component AnimeGenres(anime *arn.Anime)
|
component AnimeGenres(anime *arn.Anime)
|
||||||
.anime-genres
|
.anime-genres
|
||||||
each genre in anime.Genres
|
each genre in anime.Genres
|
||||||
a.anime-genre.mountable.ajax(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer")
|
a.anime-genre.mountable(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer")
|
||||||
span= genre
|
span= genre
|
||||||
|
|
||||||
component AnimeRelations(anime *arn.Anime, user *arn.User)
|
component AnimeRelations(anime *arn.Anime, user *arn.User)
|
||||||
@ -149,7 +149,7 @@ component AnimeRelations(anime *arn.Anime, user *arn.User)
|
|||||||
.anime-relations
|
.anime-relations
|
||||||
each relation in anime.Relations().Items
|
each relation in anime.Relations().Items
|
||||||
if relation.Anime() != nil
|
if relation.Anime() != nil
|
||||||
a.anime-relation.mountable.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation")
|
a.anime-relation.mountable(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation")
|
||||||
img.anime-relation-image.lazy(data-src=relation.Anime().ImageLink("small"), data-webp="true", data-color=relation.Anime().AverageColor(), alt=relation.Anime().Title.ByUser(user))
|
img.anime-relation-image.lazy(data-src=relation.Anime().ImageLink("small"), data-webp="true", data-color=relation.Anime().AverageColor(), alt=relation.Anime().Title.ByUser(user))
|
||||||
.anime-relation-type= relation.HumanReadableType()
|
.anime-relation-type= relation.HumanReadableType()
|
||||||
.anime-relation-year
|
.anime-relation-year
|
||||||
@ -231,7 +231,7 @@ component AnimeInformation(anime *arn.Anime)
|
|||||||
tr.mountable(data-mountable-type="info")
|
tr.mountable(data-mountable-type="info")
|
||||||
td.anime-info-key Studio:
|
td.anime-info-key Studio:
|
||||||
td.anime-info-value
|
td.anime-info-value
|
||||||
a.ajax(href=company.Link())= company.Name.English
|
a(href=company.Link())= company.Name.English
|
||||||
|
|
||||||
//- section.anime-section.mountable
|
//- section.anime-section.mountable
|
||||||
//- h3.anime-section-name Companies
|
//- h3.anime-section-name Companies
|
||||||
@ -240,13 +240,13 @@ component AnimeInformation(anime *arn.Anime)
|
|||||||
//- tr.mountable(data-mountable-type="info")
|
//- tr.mountable(data-mountable-type="info")
|
||||||
//- td.anime-info-key Producer:
|
//- td.anime-info-key Producer:
|
||||||
//- td.anime-info-value
|
//- td.anime-info-value
|
||||||
//- a.ajax(href=company.Link())= company.Name.English
|
//- a(href=company.Link())= company.Name.English
|
||||||
|
|
||||||
//- each company in anime.Licensors()
|
//- each company in anime.Licensors()
|
||||||
//- tr.mountable(data-mountable-type="info")
|
//- tr.mountable(data-mountable-type="info")
|
||||||
//- td.anime-info-key Licensor:
|
//- td.anime-info-key Licensor:
|
||||||
//- td.anime-info-value
|
//- td.anime-info-value
|
||||||
//- a.ajax(href=company.Link())= company.Name.English
|
//- a(href=company.Link())= company.Name.English
|
||||||
|
|
||||||
component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem)
|
component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem)
|
||||||
CustomAvatar(friend, friend.Link(), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")
|
CustomAvatar(friend, friend.Link(), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
component Character(character *arn.Character)
|
component Character(character *arn.Character)
|
||||||
a.character.ajax(href="/character/" + character.ID)
|
a.character(href="/character/" + character.ID)
|
||||||
img.character-image.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
|
img.character-image.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
|
||||||
|
|
||||||
component CharacterSmall(character *arn.Character)
|
component CharacterSmall(character *arn.Character)
|
||||||
a.character.ajax(href="/character/" + character.ID)
|
a.character(href="/character/" + character.ID)
|
||||||
img.character-image.character-image-small.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
|
img.character-image.character-image-small.lazy(data-src=character.Image, alt=character.Name, title=character.Name)
|
@ -4,7 +4,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.AnimeEpisode, user *ar
|
|||||||
h3.anime-section-name Episodes
|
h3.anime-section-name Episodes
|
||||||
.episodes
|
.episodes
|
||||||
each episode in episodes
|
each episode in episodes
|
||||||
a.episode.ajax.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available())
|
a.episode.mountable(href=anime.Link() + "/episode/" + strconv.Itoa(episode.Number), data-mountable-type="episode", data-available=episode.Available())
|
||||||
.episode-number
|
.episode-number
|
||||||
if episode.Number != -1
|
if episode.Number != -1
|
||||||
span= episode.Number
|
span= episode.Number
|
||||||
|
@ -14,4 +14,4 @@ component AnimeTracks(anime *arn.Anime, tracks []*arn.SoundTrack)
|
|||||||
//- .anime-soundtrack.mountable(data-mountable-type="track")
|
//- .anime-soundtrack.mountable(data-mountable-type="track")
|
||||||
//- .video-container
|
//- .video-container
|
||||||
//- iframe.video.lazy(data-src=track.Media[0].EmbedLink(), allowfullscreen="allowfullscreen")
|
//- iframe.video.lazy(data-src=track.Media[0].EmbedLink(), allowfullscreen="allowfullscreen")
|
||||||
//- a.soundtrack-footer.ajax(href=track.Link())= track.Title
|
//- a.soundtrack-footer(href=track.Link())= track.Title
|
@ -27,10 +27,10 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.
|
|||||||
InputTextArea("Notes", item.Notes, "Notes", "Your notes")
|
InputTextArea("Notes", item.Notes, "Notes", "Your notes")
|
||||||
|
|
||||||
.buttons.mountable
|
.buttons.mountable
|
||||||
a.ajax.button(href="/+" + viewUser.Nick + "/animelist/" + item.Status)
|
a.button(href="/+" + viewUser.Nick + "/animelist/" + item.Status)
|
||||||
Icon("list")
|
Icon("list")
|
||||||
span View collection
|
span View collection
|
||||||
a.ajax.button(href=anime.Link())
|
a.button(href=anime.Link())
|
||||||
Icon("search-plus")
|
Icon("search-plus")
|
||||||
span View anime
|
span View anime
|
||||||
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-api="/api/animelist/" + viewUser.ID, data-anime-id=anime.ID, data-nick=viewUser.Nick)
|
button.action(data-action="removeAnimeFromCollection", data-trigger="click", data-api="/api/animelist/" + viewUser.ID, data-anime-id=anime.ID, data-nick=viewUser.Nick)
|
||||||
|
@ -11,7 +11,7 @@ component Calendar(days []*utils.CalendarDay, user *arn.User)
|
|||||||
h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name
|
h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name
|
||||||
.calendar-entries
|
.calendar-entries
|
||||||
each entry in day.Entries
|
each entry in day.Entries
|
||||||
a.calendar-entry.mountable.ajax(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added)
|
a.calendar-entry.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added)
|
||||||
img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user))
|
img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user))
|
||||||
.calendar-entry-info
|
.calendar-entry-info
|
||||||
.calendar-entry-title= entry.Anime.Title.ByUser(user)
|
.calendar-entry-title= entry.Anime.Title.ByUser(user)
|
||||||
|
@ -13,7 +13,7 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
|||||||
h3 Anime
|
h3 Anime
|
||||||
.character-anime
|
.character-anime
|
||||||
each anime in characterAnime
|
each anime in characterAnime
|
||||||
a.character-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
a.character-anime-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||||
img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||||
|
|
||||||
if len(quotes) >0
|
if len(quotes) >0
|
||||||
|
@ -11,7 +11,7 @@ component CompaniesIndex(groups [][]*arn.Company, user *arn.User)
|
|||||||
ul
|
ul
|
||||||
each company in group
|
each company in group
|
||||||
li
|
li
|
||||||
a.ajax(href=company.Link())= company.Name.English
|
a(href=company.Link())= company.Name.English
|
||||||
|
|
||||||
component CompaniesTabs(user *arn.User)
|
component CompaniesTabs(user *arn.User)
|
||||||
.tabs
|
.tabs
|
||||||
@ -25,6 +25,6 @@ component CompaniesTabs(user *arn.User)
|
|||||||
Icon("plus")
|
Icon("plus")
|
||||||
span Add company
|
span Add company
|
||||||
else
|
else
|
||||||
a.button.ajax(href="/company/" + user.DraftIndex().CompanyID + "/edit")
|
a.button(href="/company/" + user.DraftIndex().CompanyID + "/edit")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span Edit draft
|
span Edit draft
|
@ -13,7 +13,7 @@ component PopularCompanies(companies []*arn.Company, companyToAnime map[string][
|
|||||||
component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, user *arn.User)
|
component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime map[string][]*arn.Anime, user *arn.User)
|
||||||
each company in companies
|
each company in companies
|
||||||
li.popular-company.mountable
|
li.popular-company.mountable
|
||||||
a.popular-company-header.ajax(href=company.Link())
|
a.popular-company-header(href=company.Link())
|
||||||
Icon("building")
|
Icon("building")
|
||||||
span.popular-company-name= company.Name.English
|
span.popular-company-name= company.Name.English
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ component CompanyAnimes(label string, animes []*arn.Anime, user *arn.User)
|
|||||||
CompanyAnime(anime, user)
|
CompanyAnime(anime, user)
|
||||||
|
|
||||||
component CompanyAnime(anime *arn.Anime, user *arn.User)
|
component CompanyAnime(anime *arn.Anime, user *arn.User)
|
||||||
a.company-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
a.company-anime-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||||
img.company-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
img.company-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||||
|
|
||||||
component CompanyTabs(company *arn.Company, user *arn.User)
|
component CompanyTabs(company *arn.Company, user *arn.User)
|
||||||
|
@ -19,11 +19,11 @@ component CompareAnimeList(a *arn.User, b *arn.User, countA int, countB int, com
|
|||||||
each comparison in comparisons
|
each comparison in comparisons
|
||||||
tr.anime-list-item.mountable
|
tr.anime-list-item.mountable
|
||||||
td.anime-list-item-image-container
|
td.anime-list-item-image-container
|
||||||
a.ajax(href=comparison.Anime.Link())
|
a(href=comparison.Anime.Link())
|
||||||
img.anime-list-item-image.lazy(data-src=comparison.Anime.ImageLink("small"), data-webp="true", data-color=comparison.Anime.AverageColor(), alt=comparison.Anime.Title.ByUser(user))
|
img.anime-list-item-image.lazy(data-src=comparison.Anime.ImageLink("small"), data-webp="true", data-color=comparison.Anime.AverageColor(), alt=comparison.Anime.Title.ByUser(user))
|
||||||
|
|
||||||
td.anime-list-item-name
|
td.anime-list-item-name
|
||||||
a.ajax(href=comparison.Anime.Link())= comparison.Anime.Title.ByUser(user)
|
a(href=comparison.Anime.Link())= comparison.Anime.Title.ByUser(user)
|
||||||
|
|
||||||
td.comparison
|
td.comparison
|
||||||
if comparison.ItemA != nil
|
if comparison.ItemA != nil
|
||||||
|
@ -9,7 +9,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
|||||||
if i < len(schedule)
|
if i < len(schedule)
|
||||||
.widget-ui-element
|
.widget-ui-element
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
a.schedule-item-link.ajax(href=schedule[i].Anime.Link())
|
a.schedule-item-link(href=schedule[i].Anime.Link())
|
||||||
Icon("calendar-o")
|
Icon("calendar-o")
|
||||||
.schedule-item-title= schedule[i].Anime.Title.ByUser(user)
|
.schedule-item-title= schedule[i].Anime.Title.ByUser(user)
|
||||||
.spacer
|
.spacer
|
||||||
@ -24,7 +24,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
|||||||
h3.widget-title Forums
|
h3.widget-title Forums
|
||||||
|
|
||||||
each post in posts
|
each post in posts
|
||||||
a.widget-ui-element.ajax(href=post.Thread().Link())
|
a.widget-ui-element(href=post.Thread().Link())
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
Icon(arn.GetForumIcon(post.Thread().Tags[0]))
|
Icon(arn.GetForumIcon(post.Thread().Tags[0]))
|
||||||
span= post.Thread().Title
|
span= post.Thread().Title
|
||||||
@ -43,7 +43,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
|||||||
|
|
||||||
for i := 0; i <= 4; i++
|
for i := 0; i <= 4; i++
|
||||||
if i < len(soundTracks)
|
if i < len(soundTracks)
|
||||||
a.widget-ui-element.ajax(href=soundTracks[i].Link())
|
a.widget-ui-element(href=soundTracks[i].Link())
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
Icon("music")
|
Icon("music")
|
||||||
if soundTracks[i].Title == ""
|
if soundTracks[i].Title == ""
|
||||||
@ -88,7 +88,7 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
|||||||
|
|
||||||
for i := 0; i <= 4; i++
|
for i := 0; i <= 4; i++
|
||||||
if i < len(following)
|
if i < len(following)
|
||||||
a.widget-ui-element.ajax(href="/+" + following[i].Nick)
|
a.widget-ui-element(href="/+" + following[i].Nick)
|
||||||
.widget-ui-element-text
|
.widget-ui-element-text
|
||||||
Icon("address-card")
|
Icon("address-card")
|
||||||
span= following[i].Nick
|
span= following[i].Nick
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
component EditAnimeTabs(anime *arn.Anime)
|
component EditAnimeTabs(anime *arn.Anime)
|
||||||
.tabs
|
.tabs
|
||||||
a.tab.ajax(href=anime.Link())
|
a.tab(href=anime.Link())
|
||||||
Icon("tv")
|
Icon("tv")
|
||||||
span Anime
|
span Anime
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.Us
|
|||||||
h1= anime.Title.ByUser(user)
|
h1= anime.Title.ByUser(user)
|
||||||
|
|
||||||
.episode-view-image-container
|
.episode-view-image-container
|
||||||
a.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
a(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||||
img.anime-cover-image.lazy(data-src=anime.ImageLink("large"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
img.anime-cover-image.lazy(data-src=anime.ImageLink("large"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||||
|
|
||||||
h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number)
|
h3.episode-view-number= "Episode " + strconv.Itoa(episode.Number)
|
||||||
|
@ -7,10 +7,10 @@ component ExploreAnime(animeList []*arn.Anime, year string, status string, typ s
|
|||||||
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
|
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
|
||||||
RawIcon("eye-slash")
|
RawIcon("eye-slash")
|
||||||
|
|
||||||
a.button.ajax(href="/explore/color/any/anime", title="View colors")
|
a.button(href="/explore/color/any/anime", title="View colors")
|
||||||
RawIcon("paint-brush")
|
RawIcon("paint-brush")
|
||||||
|
|
||||||
a.button.ajax(href="/genres", title="View genres")
|
a.button(href="/genres", title="View genres")
|
||||||
RawIcon("clone")
|
RawIcon("clone")
|
||||||
|
|
||||||
h1.page-title Explore
|
h1.page-title Explore
|
||||||
|
@ -6,7 +6,7 @@ component Genre(genre string, animes []*arn.Anime, user *arn.User)
|
|||||||
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
|
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")
|
||||||
RawIcon("eye-slash")
|
RawIcon("eye-slash")
|
||||||
|
|
||||||
a.button.ajax(href="/genres", title="View genres")
|
a.button(href="/genres", title="View genres")
|
||||||
RawIcon("clone")
|
RawIcon("clone")
|
||||||
|
|
||||||
AnimeGrid(animes, user)
|
AnimeGrid(animes, user)
|
@ -3,7 +3,7 @@ component Genres(genres []string, genreToAnime map[string]*arn.Anime, user *arn.
|
|||||||
|
|
||||||
.genres
|
.genres
|
||||||
each genre in genres
|
each genre in genres
|
||||||
a.genre.genre-squared.mountable.ajax(href="/genre/" + strings.ToLower(genre))
|
a.genre.genre-squared.mountable(href="/genre/" + strings.ToLower(genre))
|
||||||
.genre-text.front
|
.genre-text.front
|
||||||
.genre-icon
|
.genre-icon
|
||||||
RawIcon(arn.GetGenreIcon(genre))
|
RawIcon(arn.GetGenreIcon(genre))
|
||||||
|
@ -11,13 +11,13 @@ component Groups(groups []*arn.Group, groupsPerPage int, user *arn.User)
|
|||||||
Icon("plus")
|
Icon("plus")
|
||||||
span New group
|
span New group
|
||||||
else
|
else
|
||||||
a.button.ajax(href="/group/" + user.DraftIndex().GroupID + "/edit")
|
a.button(href="/group/" + user.DraftIndex().GroupID + "/edit")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span Edit draft
|
span Edit draft
|
||||||
|
|
||||||
#load-more-target.groups
|
#load-more-target.groups
|
||||||
each group in groups
|
each group in groups
|
||||||
a.group.mountable.ajax(href=group.Link())
|
a.group.mountable(href=group.Link())
|
||||||
img.group-image.lazy(data-src=group.ImageURL(), alt=group.Name)
|
img.group-image.lazy(data-src=group.ImageURL(), alt=group.Name)
|
||||||
|
|
||||||
.group-info
|
.group-info
|
||||||
|
@ -6,20 +6,20 @@ component ImportLists(user *arn.User)
|
|||||||
label AniList:
|
label AniList:
|
||||||
|
|
||||||
.widget-section
|
.widget-section
|
||||||
a.button.mountable.ajax(href="/import/anilist/animelist")
|
a.button.mountable(href="/import/anilist/animelist")
|
||||||
Icon("download")
|
Icon("download")
|
||||||
span Import AniList
|
span Import AniList
|
||||||
|
|
||||||
if user.Accounts.Kitsu.Nick != ""
|
if user.Accounts.Kitsu.Nick != ""
|
||||||
label Kitsu:
|
label Kitsu:
|
||||||
.widget-section
|
.widget-section
|
||||||
a.button.mountable.ajax(href="/import/kitsu/animelist")
|
a.button.mountable(href="/import/kitsu/animelist")
|
||||||
Icon("download")
|
Icon("download")
|
||||||
span Import Kitsu
|
span Import Kitsu
|
||||||
|
|
||||||
if user.Accounts.MyAnimeList.Nick != ""
|
if user.Accounts.MyAnimeList.Nick != ""
|
||||||
label MyAnimeList:
|
label MyAnimeList:
|
||||||
.widget-section
|
.widget-section
|
||||||
a.button.mountable.ajax(href="/import/myanimelist/animelist")
|
a.button.mountable(href="/import/myanimelist/animelist")
|
||||||
Icon("download")
|
Icon("download")
|
||||||
span Import MyAnimeList
|
span Import MyAnimeList
|
@ -21,7 +21,7 @@ component AllNotifications(notifications []*arn.Notification)
|
|||||||
Notification(notification)
|
Notification(notification)
|
||||||
|
|
||||||
.notification-user
|
.notification-user
|
||||||
a.ajax(href=notification.User().Link())= notification.User().Nick
|
a(href=notification.User().Link())= notification.User().Nick
|
||||||
|
|
||||||
component Notification(notification *arn.Notification)
|
component Notification(notification *arn.Notification)
|
||||||
a.notification(href=notification.Link, target="_blank", data-seen=notification.Seen)
|
a.notification(href=notification.Link, target="_blank", data-seen=notification.Seen)
|
||||||
|
@ -11,6 +11,6 @@ component PayPalSuccess(payment *arn.PayPalPayment)
|
|||||||
img.new-payment-thank-you-image(src="/images/elements/thank-you.jpg", alt="Thank you!")
|
img.new-payment-thank-you-image(src="/images/elements/thank-you.jpg", alt="Thank you!")
|
||||||
|
|
||||||
.buttons
|
.buttons
|
||||||
a.button.ajax(href="/shop")
|
a.button(href="/shop")
|
||||||
Icon("shopping-cart")
|
Icon("shopping-cart")
|
||||||
span Return to the shop
|
span Return to the shop
|
@ -2,4 +2,4 @@ component Post(post *arn.Post, user *arn.User)
|
|||||||
Postable(post.ToPostable(), user, "")
|
Postable(post.ToPostable(), user, "")
|
||||||
|
|
||||||
.side-note
|
.side-note
|
||||||
a.ajax(href=post.Thread().Link())= post.Thread().Title
|
a(href=post.Thread().Link())= post.Thread().Title
|
||||||
|
@ -7,7 +7,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
|||||||
.profile-watching-list.mountable
|
.profile-watching-list.mountable
|
||||||
each item in animeList.Items
|
each item in animeList.Items
|
||||||
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
if item.Status == arn.AnimeListStatusWatching || item.Status == arn.AnimeListStatusCompleted
|
||||||
a.profile-watching-list-item.ajax(href=item.Anime().Link(), title=item.Anime().Title.ByUser(user) + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
a.profile-watching-list-item(href=item.Anime().Link(), title=item.Anime().Title.ByUser(user) + " (" + toString(item.Episodes) + " / " + arn.EpisodesToString(item.Anime().EpisodeCount) + ")")
|
||||||
img.profile-watching-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user))
|
img.profile-watching-list-item-image.lazy(data-src=item.Anime().ImageLink("small"), data-webp="true", data-color=item.Anime().AverageColor(), alt=item.Anime().Title.ByUser(user))
|
||||||
|
|
||||||
.footer
|
.footer
|
||||||
@ -97,7 +97,7 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
|
|||||||
|
|
||||||
if viewUser.IsPro()
|
if viewUser.IsPro()
|
||||||
p.profile-field.profile-pro-status
|
p.profile-field.profile-pro-status
|
||||||
a.ajax(href="/shop", title="PRO user")
|
a(href="/shop", title="PRO user")
|
||||||
Icon("star")
|
Icon("star")
|
||||||
span.profile-pro-status-text PRO
|
span.profile-pro-status-text PRO
|
||||||
|
|
||||||
@ -113,16 +113,16 @@ component ProfileHead(viewUser *arn.User, user *arn.User, uri string)
|
|||||||
Icon("user-times")
|
Icon("user-times")
|
||||||
span Unfollow
|
span Unfollow
|
||||||
|
|
||||||
a.button.profile-action.ajax(href="/+" + viewUser.Nick + "/animelist/watching")
|
a.button.profile-action(href="/+" + viewUser.Nick + "/animelist/watching")
|
||||||
Icon("list")
|
Icon("list")
|
||||||
span Anime list
|
span Anime list
|
||||||
|
|
||||||
if user != nil && user.ID != viewUser.ID
|
if user != nil && user.ID != viewUser.ID
|
||||||
a.button.profile-action.ajax(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick)
|
a.button.profile-action(href="/compare/animelist/" + user.Nick + "/" + viewUser.Nick)
|
||||||
Icon("exchange")
|
Icon("exchange")
|
||||||
span Compare
|
span Compare
|
||||||
|
|
||||||
a.button.profile-action.ajax(href="/+" + viewUser.Nick + "/recommended/anime")
|
a.button.profile-action(href="/+" + viewUser.Nick + "/recommended/anime")
|
||||||
Icon("archive")
|
Icon("archive")
|
||||||
span Recomms
|
span Recomms
|
||||||
|
|
@ -16,12 +16,12 @@ component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
|||||||
span Edited
|
span Edited
|
||||||
span.utc-date(data-date=quote.Edited)
|
span.utc-date(data-date=quote.Edited)
|
||||||
span by
|
span by
|
||||||
a.ajax(href=quote.EditedByUser().Link())= quote.EditedByUser().Nick
|
a(href=quote.EditedByUser().Link())= quote.EditedByUser().Nick
|
||||||
else
|
else
|
||||||
span Posted
|
span Posted
|
||||||
span.utc-date(data-date=quote.Created)
|
span.utc-date(data-date=quote.Created)
|
||||||
span by
|
span by
|
||||||
a.ajax(href=quote.Creator().Link())= quote.Creator().Nick
|
a(href=quote.Creator().Link())= quote.Creator().Nick
|
||||||
span .
|
span .
|
||||||
|
|
||||||
component QuoteSideColumn(quote *arn.Quote, user *arn.User)
|
component QuoteSideColumn(quote *arn.Quote, user *arn.User)
|
||||||
@ -57,5 +57,5 @@ component QuoteTabs(quote *arn.Quote, user *arn.User)
|
|||||||
Tab("History", "history", quote.Link() + "/history")
|
Tab("History", "history", quote.Link() + "/history")
|
||||||
|
|
||||||
component QuoteAnime(anime *arn.Anime, user *arn.User)
|
component QuoteAnime(anime *arn.Anime, user *arn.User)
|
||||||
a.quote-anime-list-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
a.quote-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||||
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
@ -10,7 +10,7 @@ component Quotes(quotes []*arn.Quote, nextIndex int, user *arn.User)
|
|||||||
Icon("plus")
|
Icon("plus")
|
||||||
span Add quote
|
span Add quote
|
||||||
else
|
else
|
||||||
a.button.ajax(href="/quote/" + user.DraftIndex().QuoteID + "/edit")
|
a.button(href="/quote/" + user.DraftIndex().QuoteID + "/edit")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span Edit draft
|
span Edit draft
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ component AnimeSearchResults(animes []*arn.Anime)
|
|||||||
else
|
else
|
||||||
.profile-watching-list.anime-search
|
.profile-watching-list.anime-search
|
||||||
each anime in animes
|
each anime in animes
|
||||||
a.profile-watching-list-item.mountable.ajax(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime")
|
a.profile-watching-list-item.mountable(href=anime.Link(), title=anime.Title.Canonical, data-mountable-type="anime")
|
||||||
img.anime-cover-image.anime-search-result.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Canonical)
|
img.anime-cover-image.anime-search-result.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.Canonical)
|
||||||
|
|
||||||
component CharacterSearchResults(characters []*arn.Character)
|
component CharacterSearchResults(characters []*arn.Character)
|
||||||
@ -84,7 +84,7 @@ component ForumSearchResults(posts []*arn.Post, threads []*arn.Thread)
|
|||||||
each thread in threads
|
each thread in threads
|
||||||
.forum-search-result.mountable(data-mountable-type="forum")
|
.forum-search-result.mountable(data-mountable-type="forum")
|
||||||
.forum-search-result-header
|
.forum-search-result-header
|
||||||
a.forum-search-result-title.ajax(href=thread.Link())= thread.Title
|
a.forum-search-result-title(href=thread.Link())= thread.Title
|
||||||
if thread.Author().HasNick()
|
if thread.Author().HasNick()
|
||||||
.forum-search-result-author= thread.Author().Nick
|
.forum-search-result-author= thread.Author().Nick
|
||||||
.forum-search-result-sample= thread.Text
|
.forum-search-result-sample= thread.Text
|
||||||
@ -92,7 +92,7 @@ component ForumSearchResults(posts []*arn.Post, threads []*arn.Thread)
|
|||||||
each post in posts
|
each post in posts
|
||||||
.forum-search-result.mountable(data-mountable-type="forum")
|
.forum-search-result.mountable(data-mountable-type="forum")
|
||||||
.forum-search-result-header
|
.forum-search-result-header
|
||||||
a.forum-search-result-title.ajax(href=post.Link(), data-mountable-type="forum")= post.Thread().Title
|
a.forum-search-result-title(href=post.Link(), data-mountable-type="forum")= post.Thread().Title
|
||||||
if post.Author().HasNick()
|
if post.Author().HasNick()
|
||||||
.forum-search-result-author= post.Author().Nick
|
.forum-search-result-author= post.Author().Nick
|
||||||
.forum-search-result-sample= post.Text
|
.forum-search-result-sample= post.Text
|
||||||
@ -104,7 +104,7 @@ component SoundTrackSearchResults(tracks []*arn.SoundTrack)
|
|||||||
ul.soundtrack-search
|
ul.soundtrack-search
|
||||||
each track in tracks
|
each track in tracks
|
||||||
li.mountable(data-mountable-type="track")
|
li.mountable(data-mountable-type="track")
|
||||||
a.ajax(href=track.Link())= track.Title
|
a(href=track.Link())= track.Title
|
||||||
span.soundtrack-search-anime= " - " + track.MainAnime().Title.Canonical
|
span.soundtrack-search-anime= " - " + track.MainAnime().Title.Canonical
|
||||||
|
|
||||||
component CompanySearchResults(companies []*arn.Company)
|
component CompanySearchResults(companies []*arn.Company)
|
||||||
@ -114,7 +114,7 @@ component CompanySearchResults(companies []*arn.Company)
|
|||||||
ul.company-search
|
ul.company-search
|
||||||
each company in companies
|
each company in companies
|
||||||
li.mountable(data-mountable-type="company")
|
li.mountable(data-mountable-type="company")
|
||||||
a.ajax(href=company.Link())= company.Name.English
|
a(href=company.Link())= company.Name.English
|
||||||
|
|
||||||
component QuoteSearchResults(quotes []*arn.Quote)
|
component QuoteSearchResults(quotes []*arn.Quote)
|
||||||
if len(quotes) == 0
|
if len(quotes) == 0
|
||||||
@ -123,7 +123,7 @@ component QuoteSearchResults(quotes []*arn.Quote)
|
|||||||
ul.quote-search
|
ul.quote-search
|
||||||
each quote in quotes
|
each quote in quotes
|
||||||
li.mountable(data-mountable-type="quote")
|
li.mountable(data-mountable-type="quote")
|
||||||
a.ajax(href=quote.Link())= quote.Text.English
|
a(href=quote.Link())= quote.Text.English
|
||||||
|
|
||||||
component UserSearchResults(users []*arn.User)
|
component UserSearchResults(users []*arn.User)
|
||||||
if len(users) == 0
|
if len(users) == 0
|
||||||
|
@ -210,13 +210,13 @@ component SettingsPro(user *arn.User)
|
|||||||
span Your PRO account expires in
|
span Your PRO account expires in
|
||||||
span.utc-date(data-date=user.ProExpires)
|
span.utc-date(data-date=user.ProExpires)
|
||||||
span .
|
span .
|
||||||
a.button.ajax(href="/shop")
|
a.button(href="/shop")
|
||||||
Icon("star")
|
Icon("star")
|
||||||
span Extend PRO account duration
|
span Extend PRO account duration
|
||||||
else
|
else
|
||||||
.widget-section
|
.widget-section
|
||||||
label Would you like to support the site development?
|
label Would you like to support the site development?
|
||||||
a.button.ajax(href="/support")
|
a.button(href="/support")
|
||||||
Icon("star")
|
Icon("star")
|
||||||
span Go PRO
|
span Go PRO
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ component SoundTrackPage(track *arn.SoundTrack, user *arn.User)
|
|||||||
|
|
||||||
.soundtrack-anime-list
|
.soundtrack-anime-list
|
||||||
each anime in track.Anime()
|
each anime in track.Anime()
|
||||||
a.soundtrack-anime-list-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
a.soundtrack-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||||
img.soundtrack-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
img.soundtrack-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||||
|
|
||||||
if len(track.Links) > 0
|
if len(track.Links) > 0
|
||||||
@ -54,7 +54,7 @@ component SoundTrackPage(track *arn.SoundTrack, user *arn.User)
|
|||||||
|
|
||||||
.tags
|
.tags
|
||||||
each tag in track.Tags
|
each tag in track.Tags
|
||||||
a.tag.ajax(href="/soundtracks/tag/" + tag)= tag
|
a.tag(href="/soundtracks/tag/" + tag)= tag
|
||||||
|
|
||||||
.footer.mountable
|
.footer.mountable
|
||||||
if track.EditedBy != ""
|
if track.EditedBy != ""
|
||||||
|
@ -10,7 +10,7 @@ component SoundTracks(tracks []*arn.SoundTrack, nextIndex int, tag string, user
|
|||||||
Icon("plus")
|
Icon("plus")
|
||||||
span Add soundtrack
|
span Add soundtrack
|
||||||
else
|
else
|
||||||
a.button.ajax(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit")
|
a.button(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit")
|
||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span Edit draft
|
span Edit draft
|
||||||
|
|
||||||
|
@ -61,25 +61,25 @@ component Support(profileLink string, user *arn.User)
|
|||||||
h1.mountable How does it work?
|
h1.mountable How does it work?
|
||||||
|
|
||||||
.feature-cards.feature-cards-alternative-color
|
.feature-cards.feature-cards-alternative-color
|
||||||
a.feature-card.mountable.ajax(href="/charge")
|
a.feature-card.mountable(href="/charge")
|
||||||
.feature-card-icon
|
.feature-card-icon
|
||||||
RawIcon("diamond")
|
RawIcon("diamond")
|
||||||
|
|
||||||
p.feature-card-text First, you need to charge up the balance on your account.
|
p.feature-card-text First, you need to charge up the balance on your account.
|
||||||
|
|
||||||
a.feature-card.mountable.ajax(href="/shop")
|
a.feature-card.mountable(href="/shop")
|
||||||
.feature-card-icon
|
.feature-card-icon
|
||||||
RawIcon("shopping-cart")
|
RawIcon("shopping-cart")
|
||||||
|
|
||||||
p.feature-card-text Afterwards, go to the shop and buy the item you like.
|
p.feature-card-text Afterwards, go to the shop and buy the item you like.
|
||||||
|
|
||||||
a.feature-card.mountable.ajax(href="/inventory")
|
a.feature-card.mountable(href="/inventory")
|
||||||
.feature-card-icon
|
.feature-card-icon
|
||||||
RawIcon("briefcase")
|
RawIcon("briefcase")
|
||||||
|
|
||||||
p.feature-card-text Lastly, activate the freshly bought item in your inventory.
|
p.feature-card-text Lastly, activate the freshly bought item in your inventory.
|
||||||
|
|
||||||
a.feature-card.mountable.ajax(href=profileLink)
|
a.feature-card.mountable(href=profileLink)
|
||||||
.feature-card-icon
|
.feature-card-icon
|
||||||
RawIcon("user-circle")
|
RawIcon("user-circle")
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ component Support(profileLink string, user *arn.User)
|
|||||||
h1.mountable Let's get down to business!
|
h1.mountable Let's get down to business!
|
||||||
|
|
||||||
.buttons.support-button-container
|
.buttons.support-button-container
|
||||||
a.button.support-button.mountable.ajax(href="/charge")
|
a.button.support-button.mountable(href="/charge")
|
||||||
Icon("heart")
|
Icon("heart")
|
||||||
span Support us!
|
span Support us!
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ component TermsOfService
|
|||||||
h3.mountable Web crawlers
|
h3.mountable Web crawlers
|
||||||
p.mountable
|
p.mountable
|
||||||
span HTML scraping of content is not allowed as we have a public
|
span HTML scraping of content is not allowed as we have a public
|
||||||
a.ajax(href="/api") API
|
a(href="/api") API
|
||||||
span covering nearly all the data on the site. Please use the
|
span covering nearly all the data on the site. Please use the
|
||||||
a.ajax(href="/api") API
|
a(href="/api") API
|
||||||
span instead as this will ensure that only the minimum of required bandwidth will be used.
|
span instead as this will ensure that only the minimum of required bandwidth will be used.
|
||||||
|
|
||||||
h2.mountable Links to Third-Party Websites
|
h2.mountable Links to Third-Party Websites
|
||||||
|
@ -14,7 +14,7 @@ component EditorRankingList(users []*arn.User, idToScore map[string]int, url str
|
|||||||
td= toString(index + 1) + "."
|
td= toString(index + 1) + "."
|
||||||
td.ranking-user
|
td.ranking-user
|
||||||
Avatar(user)
|
Avatar(user)
|
||||||
a.ajax(href=user.Link())= user.Nick
|
a(href=user.Link())= user.Nick
|
||||||
td.ranking-score= idToScore[user.ID]
|
td.ranking-score= idToScore[user.ID]
|
||||||
|
|
||||||
.footer.mountable
|
.footer.mountable
|
||||||
|
@ -15,7 +15,7 @@ component OsuRankingList(users []*arn.User, url string)
|
|||||||
td= toString(index + 1) + "."
|
td= toString(index + 1) + "."
|
||||||
td.ranking-user
|
td.ranking-user
|
||||||
Avatar(user)
|
Avatar(user)
|
||||||
a.ajax(href=user.Link())= user.Nick
|
a(href=user.Link())= user.Nick
|
||||||
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
|
||||||
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
|
||||||
|
|
@ -15,7 +15,7 @@ component OverwatchRankingList(users []*arn.User, url string)
|
|||||||
td= toString(index + 1) + "."
|
td= toString(index + 1) + "."
|
||||||
td.ranking-user
|
td.ranking-user
|
||||||
Avatar(user)
|
Avatar(user)
|
||||||
a.ajax(href=user.Link())= user.Nick
|
a(href=user.Link())= user.Nick
|
||||||
td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier)
|
td.ranking-tier= strings.Title(user.Accounts.Overwatch.Tier)
|
||||||
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"
|
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"
|
||||||
|
|
@ -13,7 +13,7 @@ component ProUsers(users []*arn.User, url string)
|
|||||||
|
|
||||||
.pro-avatars
|
.pro-avatars
|
||||||
each user in users
|
each user in users
|
||||||
a.profile-image-container.mountable.ajax(href=user.Link())
|
a.profile-image-container.mountable(href=user.Link())
|
||||||
ProfileImage(user)
|
ProfileImage(user)
|
||||||
.anime-grid-title
|
.anime-grid-title
|
||||||
.anime-grid-title-text= user.Nick
|
.anime-grid-title-text= user.Nick
|
||||||
|
Loading…
Reference in New Issue
Block a user