👌 Applied review changes

This commit is contained in:
Scott
2018-02-24 13:11:12 +01:00
parent 9653da7ba0
commit b234877a12
8 changed files with 14 additions and 17 deletions

View File

@ -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")

View File

@ -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)
}

View File

@ -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")

View File

@ -25,8 +25,6 @@ quote-full-page
.quote-info-table
margin 0
// width 100%
// max-width 600px
.quote-info-value
text-align right