2017-06-28 13:42:38 +02:00
{{ extends "layouts/profile" }}
{{ import "layouts/partials/menu/profile" }}
{{block title()}} {{ T("profile_edit_page", User.Username) }}{{end}}
{{ block profile_navigation()}}{{ yield profile_menu(route="profile") }}{{end}}
{{block profile_content()}}
2017-10-28 22:50:39 +02:00
< table class = "notification-table" >
< thead >
< tr >
< th class = "notification-status" > {{T("status")}}< / th >
< th class = "notification-event" > Event< / th >
< th class = "notification-date" > {{T("date")}}< / th >
< / tr >
< / thead >
< tbody >
{{if len(User.Notifications) == 0}}
< tr > < td colspan = "3" > {{T("no_notifications")}}< / td > < / tr >
{{end}}
2017-07-24 07:03:43 +02:00
{{ range User.Notifications }}
2017-10-28 22:50:39 +02:00
< tr >
< td class = "notification-status {{ if !.Read }}notification-unread{{end}}" > {{if .Read}}{{T("read")}}{{else}}{{T("unread")}}{{end}}< / td >
< td class = "notification-event" >
2017-10-29 01:59:03 +02:00
< a href = "{{ .URL }}?notif" > {{ .Content }}< / a >
2017-10-28 22:50:39 +02:00
< / td >
{{if !.Date.IsZero()}}
2017-10-29 01:07:33 +02:00
< td class = "notification-date date-full" title = "{{formatDate(.Date, false)}}" > {{formatDate(.Date, false)}}< / td >
2017-10-28 22:50:39 +02:00
{{else}}
2017-10-29 01:07:33 +02:00
< td class = "notification-date" > {{T("unknown")}}< / td >
2017-10-28 22:50:39 +02:00
{{end}}
< / tr >
{{end}}
< / tbody >
2017-07-24 07:03:43 +02:00
< / table >
2017-10-28 22:50:39 +02:00
< div id = "clear-notification" >
< hr / >
2017-10-29 19:28:20 +01:00
< a href = "/notifications?read_all" class = "btn-grey form-input" style = "float: left;" > {{ T("mark_notifications_as_read") }}< / a >
2017-10-28 22:50:39 +02:00
< a href = "/notifications?clear_all" class = "btn-red form-input" > {{ T("clear_all_notifications") }}< / a >
< a href = "/notifications?clear" class = "btn-green form-input" > {{ T("clear_notifications") }}< / a >
< / div >
2017-06-28 13:42:38 +02:00
{{end}}