Commit 813ca1981552e51fe5d70bc3a591c207fae99e3e
1 parent
46870deb
Exists in
master
and in
39 other branches
Adding button to edit list subscriptions
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/accounts/templates/accounts/user_detail.html
| ... | ... | @@ -20,7 +20,8 @@ |
| 20 | 20 | </h1> |
| 21 | 21 | |
| 22 | 22 | {% if request.user == user_ or request.user.is_superuser %} |
| 23 | - <a class="btn btn-info" href="{% url 'user_profile_update' user_ %}"><span class="glyphicon glyphicon-pencil"></span> {% trans "edit profile"|title %}</a> | |
| 23 | + <a class="btn btn-info" href="{% url 'user_profile_update' user_ %}"><span class="glyphicon glyphicon-pencil"></span> {% trans "profile"|title %}</a> | |
| 24 | + <a class="btn btn-info" href="{% url 'user_list_subscriptions' user_ %}"><span class="glyphicon glyphicon-pencil"></span> {% trans "list membership"|title %}</a> | |
| 24 | 25 | {% endif %} |
| 25 | 26 | |
| 26 | 27 | <div class="divider"></div> | ... | ... |
src/accounts/urls.py
| ... | ... | @@ -15,5 +15,5 @@ urlpatterns = patterns('', |
| 15 | 15 | UserProfileUpdateView.as_view(), name='user_profile_update'), |
| 16 | 16 | |
| 17 | 17 | url(r'^(?P<username>[\w@+.-]+)/subscriptions/?$', |
| 18 | - ManageUserSubscriptionsView.as_view(), name='user_subscriptions'), | |
| 18 | + ManageUserSubscriptionsView.as_view(), name='user_list_subscriptions'), | |
| 19 | 19 | ) | ... | ... |