Skip to content

Commit

Permalink
[#2375] Add links to dashboard page in user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 2, 2012
1 parent 2b81958 commit 9540985
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/templates/user/dashboard.html
Expand Up @@ -9,6 +9,10 @@
<li class="active"><a href="">{{ _('Your Dashboard') }}</a></li>
{% endblock %}

{% block actions_content %}
<li>{% link_for _('Your Profile'), controller='user', action='read', id=user.name, class_="btn icon-large", icon="user" %}</li>
{% endblock %}

{% block primary_content %}
<article class="module">
<div class="module-content">
Expand Down
3 changes: 3 additions & 0 deletions ckan/templates/user/read.html
Expand Up @@ -12,6 +12,9 @@
{% endblock %}

{% block actions_content %}
{% if c.is_myself %}
<li>{% link_for _('Dashboard'), controller='user', action='dashboard', class_='btn', icon='user' %}</li>
{% endif %}
{% if h.check_access('user_update', user) %}
<li>{% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn', icon='cog' %}</li>
{% endif %}
Expand Down

0 comments on commit 9540985

Please sign in to comment.