👌 Applied review changes
This commit is contained in:
parent
9653da7ba0
commit
b234877a12
@ -5,14 +5,14 @@ component Quote(quote *arn.Quote)
|
||||
|
||||
component QuoteContent(quote *arn.Quote)
|
||||
.quote-content
|
||||
a.quotation.ajax(href="/quote/" + quote.ID)
|
||||
a.quotation.ajax(href=quote.Link())
|
||||
blockquote
|
||||
p
|
||||
q= quote.Description
|
||||
if quote.Character() != nil
|
||||
footer.quote-character
|
||||
span= "by"
|
||||
a.ajax(href="/character/" + quote.Character().ID)= quote.Character().Name
|
||||
a.ajax(href=quote.Character().Link())= quote.Character().Name
|
||||
CharacterSmall(quote.Character())
|
||||
|
||||
component QuoteFooter(quote *arn.Quote)
|
||||
|
@ -38,7 +38,7 @@ func Get(ctx *aero.Context) string {
|
||||
|
||||
// Quotes
|
||||
quotes := arn.FilterQuotes(func(quote *arn.Quote) bool {
|
||||
return !quote.IsDraft && len(quote.Description) > 0 && quote.CharacterId == character.ID
|
||||
return !quote.IsDraft && len(quote.Description) > 0 && quote.CharacterID == character.ID
|
||||
})
|
||||
|
||||
arn.SortQuotesPopularFirst(quotes)
|
||||
|
@ -19,7 +19,8 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
|
||||
h3 Quotes
|
||||
.character-quotes
|
||||
each quote in quotes
|
||||
Quote(quote)
|
||||
.character-quote
|
||||
Quote(quote)
|
||||
|
||||
if len(character.Attributes) > 0
|
||||
.character-sidebar
|
||||
|
@ -45,11 +45,11 @@
|
||||
horizontal-wrap
|
||||
justify-content space-around
|
||||
|
||||
.quote
|
||||
flex-basis 400px !important
|
||||
.character-quote
|
||||
flex-basis 400px
|
||||
|
||||
footer
|
||||
display none !important
|
||||
footer
|
||||
display none
|
||||
|
||||
> 1250px
|
||||
.character-page
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/utils/editform"
|
||||
)
|
||||
|
||||
// Edit track.
|
||||
// Edit quote.
|
||||
func Edit(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
id := ctx.Get("id")
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Get company.
|
||||
// Get quote.
|
||||
func Get(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
id := ctx.Get("id")
|
||||
@ -19,7 +19,7 @@ func Get(ctx *aero.Context) string {
|
||||
return ctx.Error(http.StatusNotFound, "Quote not found", err)
|
||||
}
|
||||
|
||||
character, err := arn.GetCharacter(quote.CharacterId)
|
||||
character, err := arn.GetCharacter(quote.CharacterID)
|
||||
if err != nil {
|
||||
return ctx.Error(http.StatusNotFound, "Quote not found", err)
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
component QuotePage(quote *arn.Quote, character *arn.Character, user *arn.User)
|
||||
QuoteTabs(quote, user)
|
||||
|
||||
.quote-full-page
|
||||
|
||||
.quote-main-column
|
||||
QuoteMainColumn(quote, user)
|
||||
.quote-side-column
|
||||
@ -38,10 +36,10 @@ component QuoteInformation(quote *arn.Quote, user *arn.User)
|
||||
td.quote-info-value
|
||||
QuoteAnime(quote.Anime(), user)
|
||||
|
||||
if quote.Episode != 0
|
||||
if quote.EpisodeNumber != 0
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.quote-info-key Episode:
|
||||
td.quote-info-value= quote.Episode
|
||||
td.quote-info-value= quote.EpisodeNumber
|
||||
|
||||
if quote.Time != 0
|
||||
tr.mountable(data-mountable-type="info")
|
||||
|
@ -25,8 +25,6 @@ quote-full-page
|
||||
|
||||
.quote-info-table
|
||||
margin 0
|
||||
// width 100%
|
||||
// max-width 600px
|
||||
|
||||
.quote-info-value
|
||||
text-align right
|
||||
|
Loading…
Reference in New Issue
Block a user