Removed ajax class (not required anymore)

This commit is contained in:
2018-03-23 21:33:19 +01:00
parent 5e4afa9748
commit ccd6e860cf
46 changed files with 90 additions and 90 deletions

View File

@ -5,7 +5,7 @@ component AnimeGrid(animes []*arn.Anime, user *arn.User)
component AnimeGridScrollable(animes []*arn.Anime, user *arn.User)
each anime in animes
.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)
.anime-grid-title
.anime-grid-title-text= anime.Title.ByUser(user)

View File

@ -10,11 +10,11 @@ component AnimeListScrollable(animeListItems []*arn.AnimeListItem, viewUser *arn
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-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))
.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
if user != nil && item.Status == arn.AnimeListStatusWatching

View File

@ -2,7 +2,7 @@ component Avatar(user *arn.User)
CustomAvatar(user, user.Link(), user.Nick)
component CustomAvatar(user *arn.User, link string, title string)
a.user.ajax(href=link, title=title)
a.user(href=link, title=title)
AvatarNoLink(user)
component AvatarNoLink(user *arn.User)

View File

@ -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")
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")
//- if type === "Messages" && user && (user.ID === post.authorId || user.ID === post.recipientId)

View File

@ -5,7 +5,7 @@ component Quote(quote *arn.Quote)
component QuoteContent(quote *arn.Quote)
.quote-content
a.quotation.ajax(href=quote.Link())
a.quotation(href=quote.Link())
blockquote!= markdown.Render(quote.Text.English)
if quote.CharacterID != "" && quote.Character() != nil
@ -17,4 +17,4 @@ component QuoteFooter(quote *arn.Quote)
span posted
span.utc-date(data-date=quote.Created)
span by
a.ajax(href=quote.Creator().Link())= quote.Creator().Nick
a(href=quote.Creator().Link())= quote.Creator().Nick

View File

@ -6,7 +6,7 @@ component SoundTrack(track *arn.SoundTrack)
component SoundTrackContent(track *arn.SoundTrack)
.soundtrack-content
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)
SoundTrackMedia(track)
@ -29,13 +29,13 @@ component SoundTrackMedia(track *arn.SoundTrack)
component SoundTrackFooter(track *arn.SoundTrack)
.soundtrack-footer
if track.Title == ""
a.ajax(href=track.Link() + "/edit") untitled
a(href=track.Link() + "/edit") untitled
else
a.ajax(href=track.Link())= track.Title
a(href=track.Link())= track.Title
span posted
span.utc-date(data-date=track.Created)
span by
a.ajax(href=track.Creator().Link())= track.Creator().Nick + " "
a(href=track.Creator().Link())= track.Creator().Nick + " "
component ExternalMedia(media *arn.ExternalMedia)
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")

View File

@ -6,7 +6,7 @@ component ThreadLink(thread *arn.Thread)
.thread-content
if thread.Sticky != 0
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
.thread-reply-count= len(thread.Posts)
.thread-icons