diff --git a/brutaldon/static/css/brutaldon.css b/brutaldon/static/css/brutaldon.css index dcb7dc2..3084b0e 100644 --- a/brutaldon/static/css/brutaldon.css +++ b/brutaldon/static/css/brutaldon.css @@ -20,3 +20,15 @@ div.card-header-title, div.card-header-icon { -moz-text-stroke: 2px white; text-stroke: 2px white; } + +.media { + background-color: white; + border-radius: 5px; + -webkit-box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + color: #4a4a4a; + display: block; + padding: 1.25rem; + margin-bottom: 0.75rem; + margin-top: 0.75rem; +} diff --git a/brutaldon/templates/main/notifications.html b/brutaldon/templates/main/notifications.html index 51a5a63..568acbd 100644 --- a/brutaldon/templates/main/notifications.html +++ b/brutaldon/templates/main/notifications.html @@ -1,93 +1,79 @@ {% extends "base.html" %} {% load humanize %} +{% load taglinks %} {% block title %} - Brutaldon - {{ timeline }} timelime +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 - } +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 %} -+ {{ 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 %} ++ {{ note.account.display_name }} + ({{ note.account.acct }}) + favorited 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 %} +
- {{ toot.account.display_name }}
- @{{ toot.account.acct }}
-
- {{ toot.created_at |naturaltime }}
-
- {% if reblog %}
-
- Boosted by @{{ reblog_by }}
- {% endif %}
-
+ {{ toot.account.display_name }}
+ @{{ toot.account.acct }}
+
+ {{ toot.created_at |naturaltime }}
+
+ {% if reblog %}
+
+ Boosted by @{{ reblog_by }}
+ {% endif %}
+