Disabled twist.moe notifications

This commit is contained in:
Eduard Urbach 2019-11-03 01:41:58 +09:00
parent b9176db25a
commit e53d7288ba
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 13 additions and 13 deletions

View File

@ -16,12 +16,12 @@ component AnimeListScrollable(animeListItems []*arn.AnimeListItem, viewUser *arn
.anime-list-item-name(draggable="true") .anime-list-item-name(draggable="true")
a(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user) a(href=item.Link(viewUser.Nick))= item.Anime().Title.ByUser(user)
.anime-list-item-actions //- .anime-list-item-actions
if user != nil && item.Status != arn.AnimeListStatusCompleted //- if user != nil && item.Status != arn.AnimeListStatusCompleted
if item.Anime().EpisodeByNumber(item.Episodes + 1) != nil //- if item.Anime().EpisodeByNumber(item.Episodes + 1) != nil
for _, link := range item.Anime().EpisodeByNumber(item.Episodes + 1).Links //- for _, link := range item.Anime().EpisodeByNumber(item.Episodes + 1).Links
a.tip(href=link, aria-label="Watch episode " + fmt.Sprint(item.Episodes + 1), target="_blank", rel="noopener") //- a.tip(href=link, aria-label="Watch episode " + fmt.Sprint(item.Episodes + 1), target="_blank", rel="noopener")
RawIcon("eye") //- RawIcon("eye")
.anime-list-item-airing-date .anime-list-item-airing-date
if item.Status != arn.AnimeListStatusCompleted && item.Anime().UpcomingEpisode() != nil if item.Status != arn.AnimeListStatusCompleted && item.Anime().UpcomingEpisode() != nil

View File

@ -30,14 +30,14 @@ component SettingsNotifications(user *arn.User)
footer.footer footer.footer
p(title="This setting is not account bound, instead it is bound to your browser.") You can customize this setting on every device you own. p(title="This setting is not account bound, instead it is bound to your browser.") You can customize this setting on every device you own.
.widget.mountable(data-api="/api/settings/" + user.ID) //- .widget.mountable(data-api="/api/settings/" + user.ID)
h3.widget-title //- h3.widget-title
Icon("filter") //- Icon("filter")
span Filter //- span Filter
InputBool("Notification.AnimeEpisodeReleases", user.Settings().Notification.AnimeEpisodeReleases, "New episodes", "Notifications about new episodes") //- InputBool("Notification.AnimeEpisodeReleases", user.Settings().Notification.AnimeEpisodeReleases, "New episodes", "Notifications about new episodes")
InputBool("Notification.AnimeFinished", user.Settings().Notification.AnimeFinished, "Finished anime series", "Notifications about finished anime series") //- InputBool("Notification.AnimeFinished", user.Settings().Notification.AnimeFinished, "Finished anime series", "Notifications about finished anime series")
//- InputBool("Notification.NewFollowers", user.Settings().Notification.NewFollowers, "New followers", "Notifications about new followers") //- //- InputBool("Notification.NewFollowers", user.Settings().Notification.NewFollowers, "New followers", "Notifications about new followers")
//- .widget.mountable(data-api="/api/settings/" + user.ID) //- .widget.mountable(data-api="/api/settings/" + user.ID)
//- h3.widget-title //- h3.widget-title