Skip to content

Commit

Permalink
fixes a tiny bug with article reactions layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmegatelo committed Jul 15, 2024
1 parent ff5e297 commit 9a8f684
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions feed/templates/blocks/feed/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,33 @@ <h3 class="heading feed-links-list-item__title">
{% endif %}
{% endfor %}
<footer class="feed-links-list-item-footer">
<div class="feed-links-list-item-controls">
<form method="post"
id="feed-item-controls"
hx-target="#feed"
<form method="post"
class="feed-links-list-item-controls"
id="feed-item-controls"
hx-target="#feed"
>
{% csrf_token %}
<button class="button button_blank button_sm feed-links-list-item-controls__button"
title="{% translate 'Not interesting' noop %}"
type="submit"
formaction="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_interesting' %}"
hx-post="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_interesting' %}"
>
{% csrf_token %}
<button class="button button_blank button_sm feed-links-list-item-controls__button"
title="{% translate 'Not interesting' noop %}"
type="submit"
formaction="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_interesting' %}"
hx-post="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_interesting' %}"
>
<span class="feed-links-list-item-controls__icon {% if entry.hidden.exists %}active{% endif %}">
👎
</span>
</button>
<button class="button button_blank button_sm feed-links-list-item-controls__button"
title="{% translate 'Like' noop %}"
type="submit"
formaction="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_liked' %}"
hx-post="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_liked' %}"
>
</button>
<button class="button button_blank button_sm feed-links-list-item-controls__button"
title="{% translate 'Like' noop %}"
type="submit"
formaction="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_liked' %}"
hx-post="{% url 'api_feed_item_toggle_interesting' id=entry.id action='toggle_liked' %}"
>
<span class="feed-links-list-item-controls__icon {% if entry.liked.exists %}active{% endif %}">
❤️
</span>
</button>
</form>
</div>
</button>
</form>
</footer>
</li>
{% endfor %}
Expand Down

0 comments on commit 9a8f684

Please sign in to comment.