Skip to content

Commit

Permalink
userdashboard/views: update tab behaviour for following and activitie…
Browse files Browse the repository at this point in the history
…s subpages from overview tab fixes #57
  • Loading branch information
philli-m authored and fuzzylogic2000 committed Oct 28, 2021
1 parent 6e25cb8 commit 02892f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block dashboard_content %}
<a class="btn btn--none pl-0 pt-0" href="{% url 'userdashboard-overview' %}">
<i class="fa fa-chevron-left" aria-hidden="true"></i>
<span>{% trans 'Back' %}</span>
<span>{% trans 'Back to overview' %}</span>
</a>
<h3 class="mt-2">{% trans 'Activities' %}</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block dashboard_content %}
<a class="btn btn--none pl-0 pt-0" href="{% url 'userdashboard-overview' %}">
<i class="fa fa-chevron-left" aria-hidden="true"></i>
<span>{% trans 'Back' %}</span>
<span>{% trans 'Back to overview' %}</span>
</a>
<h3 class="mt-2">{% trans 'Following' %}</h3>
<div class="row">
Expand Down
2 changes: 2 additions & 0 deletions apps/userdashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class UserDashboardModerationView(UserDashboardBaseMixin,
class UserDashboardActivitiesView(UserDashboardBaseMixin):

template_name = 'a4_candy_userdashboard/userdashboard_activities.html'
menu_item = 'overview'

@property
def actions(self):
Expand All @@ -72,3 +73,4 @@ def actions(self):
class UserDashboardFollowingView(UserDashboardBaseMixin):

template_name = 'a4_candy_userdashboard/userdashboard_following.html'
menu_item = 'overview'

0 comments on commit 02892f9

Please sign in to comment.