diff --git a/brutaldon/static/css/brutaldon.css b/brutaldon/static/css/brutaldon.css index dd77724..d4cc357 100644 --- a/brutaldon/static/css/brutaldon.css +++ b/brutaldon/static/css/brutaldon.css @@ -3,3 +3,8 @@ top: -24px; left: 40px; } + +img.fav-avatar { + display: inline; + +} diff --git a/brutaldon/static/css/fullbrutalism.css b/brutaldon/static/css/fullbrutalism.css index e7b7672..3550c30 100644 --- a/brutaldon/static/css/fullbrutalism.css +++ b/brutaldon/static/css/fullbrutalism.css @@ -155,15 +155,6 @@ img { margin: 4px; } -.is-32x32 img { - max-width: 32px; - max-height: 32px; -} - -.is-64x64 img { - max-width: 64px; - max-height: 64px; -} .level { clear: both; @@ -190,3 +181,14 @@ img { margin: 4px; border: 8px ridge #CCC; } + +.image.is-32x32, .is-32x32 img { + width: 32px; + height: 32px; +} + +.image.is-64x64, .is-64x64 img { + width: 64px; + height: 64px; +} + diff --git a/brutaldon/templates/main/notifications.html b/brutaldon/templates/main/notifications.html new file mode 100644 index 0000000..e45bcc4 --- /dev/null +++ b/brutaldon/templates/main/notifications.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} +{% load humanize %} + +{% block title %} + Brutaldon - {{ timeline }} timelime +{% endblock %} + +{% comment %} + mastodon.notifications()[0] + # Returns the following dictionary: + { + 'id': # id of the notification + 'type': # "mention", "reblog", "favourite" or "follow" + 'created_at': # The time the notification was created + 'account': # User dict of the user from whom the notification originates + 'status': # In case of "mention", the mentioning status + # In case of reblog / favourite, the reblogged / favourited status + } +{% endcomment %} + + +{% block content %} +
+ {{ note.account.display_name }} + ({{ note.account.acct }}) + mentioned you. +
++ {{ note.account.display_name }} + ({{ note.account.acct }}) + boosted your toot. + ( + {{ note.created_at |naturaltime }} + ) +
+ {% include "main/toot_partial.html" with toot=note.status reblog=True reblog_by=note.account.acct reblog_icon=note.account.avatar %} +