Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/_user_notifications.html
akuma06 fdce17d52c Unread notifications should stand out (#955)
When a notification has not been read, it should stand out. Actually
using the orange background
2017-06-07 08:41:23 +10:00

25 lignes
714 o
HTML

{{define "profile_notifications_content"}}
{{with .User}}
<div>
<a href="{{ genRoute "user_notifications" }}?clear" class="btn btn-danger pull-right"><i class="glyphicon glyphicon-trash"></i> {{ call $.T "clear_notifications" }}</a>
<div style="clear: both;"></div>
</div>
{{ range (index $.FormInfos "infos")}}
<p class="success-text">{{ . }}</p>
{{end}}
{{ if gt (len .Notifications) 0}}
<table>
{{ range .Notifications }}
<tr><td{{ if not .Read }} class="btn-orange"{{end}}>
<div style="padding: 0 1rem 1rem;">
<a href="{{ .URL }}?notif"><h3>{{ .Content }}</h3></a>
</div>
</td></tr>
{{end}}
</table>
{{else}}
<h2>{{ call $.T "no_notifications" }}</h2>
{{end}}
{{end}}
{{end}}