Use time element
This commit is contained in:
@ -82,7 +82,7 @@ component ActivityConsumeAnime(activity *arn.ActivityConsumeAnime, user *arn.Use
|
||||
.post-header-info
|
||||
ActivityConsumeAnimeTitle(activity, user)
|
||||
|
||||
.post-date.utc-date(data-date=activity.GetCreated())
|
||||
time.post-date.utc-date(datetime=activity.GetCreated())
|
||||
|
||||
.post-content
|
||||
ActivityConsumeAnimeText(activity, user)
|
||||
|
@ -11,7 +11,8 @@ component ClientErrors(reports []*arn.ClientErrorReport)
|
||||
td
|
||||
each line in strings.Split(report.Stack, "\n")
|
||||
p= line
|
||||
td.utc-date(data-date=report.Created)
|
||||
td
|
||||
time.utc-date(datetime=report.Created)
|
||||
td.edit-log-user
|
||||
if report.CreatedBy != ""
|
||||
Avatar(report.Creator())
|
||||
|
@ -12,7 +12,8 @@ component Crashes(crashes []*arn.Crash)
|
||||
td
|
||||
each line in strings.Split(crash.Stack, "\n")
|
||||
p= line
|
||||
td.utc-date(data-date=crash.Created)
|
||||
td
|
||||
time.utc-date(datetime=crash.Created)
|
||||
td.edit-log-user
|
||||
if crash.CreatedBy != ""
|
||||
Avatar(crash.Creator())
|
||||
|
@ -17,4 +17,5 @@ component GlobalPaymentHistory(payments []*arn.PayPalPayment)
|
||||
a(href=payment.User().Link())= payment.User().Nick
|
||||
td.history-price= payment.Amount
|
||||
td.history-price= payment.Currency
|
||||
td.history-date.utc-date(data-date=payment.Created)
|
||||
td.history-date
|
||||
time.utc-date(datetime=payment.Created)
|
||||
|
@ -21,7 +21,7 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.Episode, episodeToFrie
|
||||
span.episode-title -
|
||||
|
||||
if validate.DateTime(episode.AiringDate.Start)
|
||||
.episode-airing-date-start.utc-airing-date.no-tip(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
||||
time.episode-airing-date-start.utc-airing-date.no-tip(datetime=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
||||
|
||||
//- Show friends in reverse order
|
||||
.episode-friends
|
||||
|
@ -36,5 +36,5 @@ component CalendarView(day *utils.CalendarDay, entry *utils.CalendarEntry, user
|
||||
.calendar-entry-info
|
||||
.calendar-entry-title= entry.Anime.Title.ByUser(user)
|
||||
.calendar-entry-time-and-episode
|
||||
.calendar-entry-time.utc-date-absolute(data-date=entry.Episode.AiringDate.Start)
|
||||
.calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)
|
||||
time.calendar-entry-time.utc-date-absolute(datetime=entry.Episode.AiringDate.Start)
|
||||
.calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)
|
||||
|
@ -89,4 +89,4 @@ component EditLogScrollable(entries []*arn.EditLogEntry, user *arn.User)
|
||||
else
|
||||
span.clip-long-text= entry.NewValue
|
||||
|
||||
.edit-log-date.utc-date(data-date=entry.Created)
|
||||
time.edit-log-date.utc-date(datetime=entry.Created)
|
||||
|
@ -35,7 +35,7 @@ component Episode(anime *arn.Anime, episode *arn.Episode, episodeIndex int, uplo
|
||||
|
||||
if validate.DateTime(episode.AiringDate.Start)
|
||||
p.episode-view-airing-date
|
||||
span.utc-airing-date(data-start-date=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
||||
time.utc-airing-date(datetime=episode.AiringDate.Start, data-end-date=episode.AiringDate.End, data-episode-number=episode.Number)= episode.AiringDate.StartDateHuman()
|
||||
|
||||
footer.footer
|
||||
p Make sure to support the anime you're watching by buying officially released Blu-rays and merchandise.
|
||||
p Make sure to support the anime you're watching by buying officially released Blu-rays and merchandise.
|
||||
|
@ -33,8 +33,8 @@ component Notification(notification *arn.Notification)
|
||||
|
||||
footer.notification-footer
|
||||
p.notification-text= notification.Message
|
||||
.notification-date.utc-date(data-date=notification.Created)
|
||||
time.notification-date.utc-date(datetime=notification.Created)
|
||||
|
||||
if notification.Seen != ""
|
||||
.notification-seen
|
||||
RawIcon("check")
|
||||
RawIcon("check")
|
||||
|
@ -20,12 +20,12 @@ component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
||||
footer.footer.mountable
|
||||
if quote.EditedBy != ""
|
||||
span Edited
|
||||
span.utc-date(data-date=quote.Edited)
|
||||
time.utc-date(datetime=quote.Edited)
|
||||
span by
|
||||
a(href=quote.Editor().Link())= quote.Editor().Nick
|
||||
else
|
||||
span Posted
|
||||
span.utc-date(data-date=quote.Created)
|
||||
time.utc-date(datetime=quote.Created)
|
||||
span by
|
||||
a(href=quote.Creator().Link())= quote.Creator().Nick
|
||||
span .
|
||||
@ -40,4 +40,4 @@ component QuoteTabs(quote *arn.Quote, user *arn.User)
|
||||
|
||||
component QuoteAnime(anime *arn.Anime, user *arn.User)
|
||||
a.quote-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
||||
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|
||||
|
@ -62,7 +62,7 @@ component SettingsExtras(user *arn.User)
|
||||
.widget-section
|
||||
label
|
||||
span Your PRO account expires in
|
||||
span.utc-date(data-date=user.ProExpires)
|
||||
time.utc-date(datetime=user.ProExpires)
|
||||
span .
|
||||
a.button(href="/shop")
|
||||
Icon("star")
|
||||
@ -72,4 +72,4 @@ component SettingsExtras(user *arn.User)
|
||||
label Would you like to make this website more awesome?
|
||||
a.button(href="/support")
|
||||
Icon("star")
|
||||
span Go PRO
|
||||
span Go PRO
|
||||
|
@ -25,4 +25,5 @@ component PurchaseInfo(purchase *arn.Purchase)
|
||||
td= purchase.Item().Name
|
||||
td.history-quantity= purchase.Quantity
|
||||
td.history-price= purchase.Price
|
||||
td.history-date.utc-date(data-date=purchase.Date)
|
||||
td.history-date
|
||||
time.utc-date(datetime=purchase.Date)
|
||||
|
@ -59,12 +59,12 @@ component SoundTrackPage(track *arn.SoundTrack, relatedTracks []*arn.SoundTrack,
|
||||
footer.footer.mountable
|
||||
if track.EditedBy != ""
|
||||
span Edited
|
||||
span.utc-date(data-date=track.Edited)
|
||||
time.utc-date(datetime=track.Edited)
|
||||
span by
|
||||
span= track.Editor().Nick
|
||||
else
|
||||
span Posted
|
||||
span.utc-date(data-date=track.Created)
|
||||
time.utc-date(datetime=track.Created)
|
||||
span by
|
||||
span= track.Creator().Nick
|
||||
|
||||
|
Reference in New Issue
Block a user