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 %} +

Your {{ timeline }} timeline

+ {% for note in notes %} + {% if note.type == 'mention' %} +
+

+ {{ note.account.display_name }} + ({{ note.account.acct }}) + mentioned you. +

+
+ {% include "main/toot_partial.html" with toot=note.status reblog=False %} +
+ {% elif note.type == 'reblog' %} +
+

+ {{ 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 %} +
+ {% elif note.type == 'favourite' %} +
+
+
+
+ +
+
+ {{ note.account.display_name }} + ({{ note.account.acct }}) + favorited your toot. + ( + {{ note.created_at |naturaltime }} + ) +
+
+
+ {% include "main/toot_partial.html" with toot=note.status reblog=False %} +
+ {% elif note.type == 'follow' %} +
+
+
+

+ +

+
+
+
+ {{ note.account.display_name }} + ({{ note.account.acct }}) + followed you. + ( + {{ note.created_at |naturaltime }} + ) +
+
+
+
+ {% endif %} + {% endfor %} + +{% endblock %} diff --git a/brutaldon/templates/main/timeline.html b/brutaldon/templates/main/timeline.html index 094e8b1..80a30ae 100644 --- a/brutaldon/templates/main/timeline.html +++ b/brutaldon/templates/main/timeline.html @@ -8,11 +8,13 @@ {% block content %}

Your {{ timeline }} timeline

{% for toot in toots %} +
{% if toot.reblog %} {% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar %} {% else %} {% include "main/toot_partial.html" with toot=toot reblog=False %} {% endif %} +
{% endfor %} diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index 3e506b0..a5230c4 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -1,94 +1,92 @@ {% load humanize %} -
-
-
-

- +

+
+

+ +

+ {% if reblog %} +

+

- {% if reblog %} -

- + {% endif %} +

+
+
+

+ {{ toot.account.display_name }} + @{{ toot.account.acct }} + + {{ toot.created_at |naturaltime }} + + {% if reblog %} +
+ Boosted by @{{ reblog_by }} + {% endif %} +

+ {% if toot.spoiler_text %} +

+ {{ toot.spoiler_text }}

{% endif %} -
-
-
-

- {{ toot.account.display_name }} - @{{ toot.account.acct }} - - {{ toot.created_at |naturaltime }} - - {% if reblog %} -
- Boosted by @{{ reblog_by }} - {% endif %} -

- {% if toot.spoiler_text %} -

- {{ toot.spoiler_text }} -

- {% endif %} -
- {{ toot.content | safe }} -
- - {% if toot.media_attachments %} -
-
-
- {% for media in toot.media_attachments %} - - {% if media.description  %}
-                                              {{ media.description }}
-                                              {% elif media.text_url %}
-                                              {{ media.text_url }}
-                                              {% else %}
-                                              {{ media.url  }}
-                                         {% endif %} - - {% endfor %} -
-
- {% endif %} -
+
+ {{ toot.content | safe }}
- + {% endif %} +
-
-
-
-
+ + +
+
+