Skip to content

Commit

Permalink
Merge branch '1110-user-read_base-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 16, 2013
2 parents e412558 + d969187 commit ccc41ad
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions ckan/templates/user/read_base.html
Expand Up @@ -9,31 +9,15 @@
{{ h.build_nav('user_datasets', user.display_name|truncate(35), id=user.name) }}
{% endblock %}

{% block actions_content %}
{% block content_action %}
{% if h.check_access('user_update', user) %}
<li>{% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn btn-primary', icon='wrench' %}</li>
{% endif %}
{% if c.is_myself == false %}
<li>{{ h.follow_button('user', user.id) }}</li>
{% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}

{% block primary_content %}
<article class="module profile">
{% block page_header %}
<header class="module-content page-header">
<ul class="nav nav-tabs">
{% block content_primary_nav %}
{{ h.build_nav_icon('user_datasets', _('Datasets'), id=user.name) }}
{{ h.build_nav_icon('user_activity_stream', _('Activity Stream'), id=user.name) }}
{% endblock %}
</ul>
</header>
{% endblock %}
<section class="module-content">
{% block primary_content_inner %}{% endblock %}
</section>
</article>
{% block content_primary_nav %}
{{ h.build_nav_icon('user_datasets', _('Datasets'), id=user.name) }}
{{ h.build_nav_icon('user_activity_stream', _('Activity Stream'), id=user.name) }}
{% endblock %}

{% block secondary_content %}
Expand Down Expand Up @@ -67,6 +51,11 @@ <h1 class="heading">{{ user.display_name }}</h1>
<dd>{{ h.SI_number_span(user.number_of_edits) }}</dd>
</dl>
</div>
{% if c.is_myself == false %}
<div class="follow_button">
{{ h.follow_button('user', user.id) }}</li>
</div>
{% endif %}
<div class="info">
<dl>
{% if user.name.startswith('http://') or user.name.startswith('https://') %}
Expand Down

0 comments on commit ccc41ad

Please sign in to comment.