From 52efb4a1d70959aaf65ff584c1eb6f9422c3a49f Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 29 Aug 2018 05:23:35 -0400 Subject: [PATCH] Expand reply/boost/fav only on desktop --- brutaldon/templates/main/toot_partial.html | 207 ++++++++++----------- 1 file changed, 102 insertions(+), 105 deletions(-) diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index 6177e0b..6f186b9 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -5,136 +5,133 @@ {% load static %} {% if active %} -
-{% else %} +
+ {% else %}
-{% endif %} + {% endif %} -
- - {% if reblog %} +
+ + {% if reblog %}

- {% endif %} -
-
-
-

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

- {% if toot.spoiler_text %} -
- {{ toot.spoiler_text }} +
+
+
+

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

+ {% if toot.spoiler_text %} +
+ {{ toot.spoiler_text }} +
+ {{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }} +
+
+ {% else %}
{{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }}
- - {% else %} -
- {{ toot.content | relink_toot | fix_emojos:toot.emojis | strip_html | safe }} -
- {% endif %} + {% endif %} - {% if toot.media_attachments %} -
-
-
- {% for media in toot.media_attachments %} + {% if toot.media_attachments %} +
+
+
+ {% for media in toot.media_attachments %} {% if toot.sensitive %} - {% if media.description  %}
-                                          {{ media.description }}
-                                     {% elif media.text_url %}
-                                          {{ media.text_url }}
-                                     {% else %}
-                                          {{ media.url  }}
-                                     {% endif %} + {% if media.description  %}
+                                      {{ media.description }}
+                                      {% elif media.text_url %}
+                                      {{ media.text_url }}
+                                      {% else %}
+                                      {{ media.url  }}
+                                      {% endif %} - {% endfor %} + {% endfor %} +
-
- {% endif %} -
- + {% endif %} +
+ - {% if not confirm_page %} - + {% endif %} +
-
-
-
+
+