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