diff options
author | Andrew Godwin | 2022-11-15 18:30:30 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-15 15:30:32 -0700 |
commit | 20e63023bb0d3c7e4cb36b91b73e79f51889cc90 (patch) | |
tree | 96c99139f03550e35902440cd321290bc47f8f0f /templates/activities/_boost.html | |
parent | 4aa92744aea6097ffb784ca7de6bd95cc599988d (diff) | |
download | takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.tar.gz takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.tar.bz2 takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.zip |
Get outbound likes/boosts and their undos working
Diffstat (limited to 'templates/activities/_boost.html')
-rw-r--r-- | templates/activities/_boost.html | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/templates/activities/_boost.html b/templates/activities/_boost.html index 601466e..8e90045 100644 --- a/templates/activities/_boost.html +++ b/templates/activities/_boost.html @@ -1,28 +1,9 @@ -{% load static %} -{% load activity_tags %} -<div class="post"> - - {% if post.author.icon_uri %} - <img src="{{post.author.icon_uri}}" class="icon"> - {% else %} - <img src="{% static "img/unknown-icon-128.png" %}" class="icon"> - {% endif %} - - <time> - <a href="{{ post.url }}"> - {% if post.published %} - {{ post.published | timedeltashort }} - {% else %} - {{ post.created | timedeltashort }} - {% endif %} - </a> - </time> - - <a href="{{ post.author.urls.view }}" class="handle"> - {{ post.author.name_or_handle }} <small>@{{ post.author.handle }}</small> +{% if post.pk in interactions.boost %} + <a title="Unboost" class="active" hx-post="{{ post.urls.action_unboost }}" hx-swap="outerHTML"> + <i class="fa-solid fa-retweet"></i> </a> - - <div class="content"> - {{ post.safe_content }} - </div> -</div> +{% else %} + <a title="Boost" hx-post="{{ post.urls.action_boost }}" hx-swap="outerHTML"> + <i class="fa-solid fa-retweet"></i> + </a> +{% endif %} |