👌 Applied review changes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user