diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-11 00:53:03 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-11 00:53:03 +0100 |
| commit | 5f7be4b4337358e35c9eda4b261260a08a958b4a (patch) | |
| tree | 1a24fe62c3ba28d1867fb6a3fbbd475f8b6a2aba /app/templates | |
| parent | 9bf20df941deb666c0452cb425cf337d425dc59d (diff) | |
| download | cheatdb-5f7be4b4337358e35c9eda4b261260a08a958b4a.tar.xz | |
Add package and created_at to Notifications
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/notifications/list.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/templates/notifications/list.html b/app/templates/notifications/list.html index 61f884a..d250312 100644 --- a/app/templates/notifications/list.html +++ b/app/templates/notifications/list.html @@ -18,12 +18,26 @@ Notifications {% for n in current_user.notifications %} <a class="list-group-item list-group-item-action" href="{{ n.url }}"> <div class="row"> + {% if n.package %} + + <div class="col-sm-auto text-muted"> + <img + class="img-responsive" + style="max-height: 22px; max-width: 22px;" + src="{{ n.package.getThumbnailURL(1) }}" /> + + <span class="pl-2"> + {{ n.package.title }} + </span> + </div> + {% endif %} + <div class="col-sm"> {{ n.title}} </div> <div class="col-sm-auto text-muted text-right"> - <span class="pr-1">{{ n.causer.display_name }}</span> + <span class="pr-2">{{ n.causer.display_name }}</span> <img class="img-responsive user-photo img-thumbnail img-thumbnail-1" style="max-height: 22px;" |
