Skip to content

Commit

Permalink
removes the feed reation button, moves profile link below the feed menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmegatelo committed Dec 18, 2024
1 parent 0574751 commit 765d35c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
28 changes: 9 additions & 19 deletions feed/templates/feed/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@

{% block sidebar %}
<div class="feed-sidebar">
<div class="sidebar-block sidebar-block-content">
<a class="button button--ghost button--sm"
href="{% url 'profile' %}"
>
<span class="button__icon">{% include 'icons/account.svg' %}</span>
{% translate 'Profile' %}
</a>
</div>

<div class="sidebar-block sidebar-block-content">
<a class="button button--ghost button--sm"
hx-target="#feed-list"
Expand Down Expand Up @@ -98,17 +89,16 @@ <h4 class="heading">{% translate 'Feeds' noop %}:</h4>
</div>
</div>
{% endcache %}
</div>
{% endblock %}

{% block sidebar_bottom %}
<button class="button button--primary button--sm"
hx-target="#dialogs-root"
hx-get="{% url 'api_dialog_feed_new' %}"
>
<span class="button__icon">{% include 'icons/plus_circle.svg' %}</span>
{% translate 'Add new feed' noop %}
</button>
<div class="sidebar-block sidebar-block-content">
<a class="button button--ghost button--sm"
href="{% url 'profile' %}"
>
<span class="button__icon">{% include 'icons/account.svg' %}</span>
{% translate 'Profile' %}
</a>
</div>
</div>
{% endblock %}

{% block main %}
Expand Down
4 changes: 0 additions & 4 deletions feed/templates/layouts/with_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<img src="{% static 'feed/img/logo.svg' %}" alt="thewalter.app" class="logo">
</a>
{% block sidebar %}{% endblock %}
<footer class="sidebar-block sidebar-block__sticky">
{% block sidebar_bottom %}
{% endblock %}
</footer>
</aside>
<main class="section main">
{% block main %}{% endblock %}
Expand Down

0 comments on commit 765d35c

Please sign in to comment.