Style improvements for genres
This commit is contained in:
parent
3e68606c38
commit
25929233cf
@ -20,6 +20,7 @@ component AnimeMainColumn(anime *arn.Anime, tracks []*arn.SoundTrack, episodes [
|
||||
|
||||
p.anime-summary.mountable= anime.Summary
|
||||
|
||||
.anime-summary-footer-container
|
||||
.anime-summary-footer
|
||||
AnimeGenres(anime)
|
||||
AnimeActions(anime, user)
|
||||
@ -39,18 +40,18 @@ component AnimeSideColumn(anime *arn.Anime, friends []*arn.User, listItems map[*
|
||||
|
||||
component AnimeActions(anime *arn.Anime, user *arn.User)
|
||||
if user != nil
|
||||
.buttons.anime-actions.mountable
|
||||
.buttons.anime-actions
|
||||
if user.Role == "editor" || user.Role == "admin"
|
||||
a.button.ajax(href=anime.Link() + "/edit")
|
||||
a.button.mountable.ajax(href=anime.Link() + "/edit", data-mountable-type="footer")
|
||||
Icon("pencil-square-o")
|
||||
span Edit anime
|
||||
|
||||
if user.AnimeList().Contains(anime.ID)
|
||||
a.button.ajax(href="/+" + user.Nick + "/animelist/anime/" + anime.ID)
|
||||
a.button.mountable.ajax(href="/+" + user.Nick + "/animelist/anime/" + anime.ID, data-mountable-type="footer")
|
||||
Icon("pencil")
|
||||
span Edit in collection
|
||||
else
|
||||
button.action(data-api="/api/animelist/" + user.ID, data-action="addAnimeToCollection", data-trigger="click", data-anime-id=anime.ID)
|
||||
button.mountable.action(data-api="/api/animelist/" + user.ID, data-action="addAnimeToCollection", data-trigger="click", data-anime-id=anime.ID, data-mountable-type="footer")
|
||||
Icon("plus")
|
||||
span Add to collection
|
||||
|
||||
@ -133,7 +134,7 @@ component AnimeLinks(anime *arn.Anime)
|
||||
component AnimeGenres(anime *arn.Anime)
|
||||
.anime-genres
|
||||
each genre in anime.Genres
|
||||
a.anime-genre.mountable.ajax(href="/genre/" + strings.ToLower(genre))
|
||||
a.anime-genre.mountable.ajax(href="/genre/" + strings.ToLower(genre), data-mountable-type="footer")
|
||||
span= genre
|
||||
|
||||
component AnimeRelations(anime *arn.Anime, user *arn.User)
|
||||
|
@ -38,18 +38,21 @@
|
||||
.anime-alternative-title
|
||||
text-align left
|
||||
|
||||
.anime-summary-footer-container
|
||||
vertical
|
||||
flex 1
|
||||
justify-content flex-end
|
||||
align-items flex-end
|
||||
|
||||
.anime-summary-footer
|
||||
width 100%
|
||||
display flex
|
||||
justify-content space-between
|
||||
align-items center
|
||||
// flex 1
|
||||
// justify-content flex-end
|
||||
// align-items flex-end
|
||||
|
||||
button,
|
||||
.button
|
||||
margin 0
|
||||
margin-left 0.5rem
|
||||
margin 0.25rem
|
||||
|
||||
.anime-info-table
|
||||
margin 0
|
||||
|
Loading…
Reference in New Issue
Block a user