{% extends "user/edit_base.html" %}

{% set user = g.userobj %}

{% block breadcrumb_content %}
  <li class="active"><a href="{{ h.url_for('dashboard.index') }}">{{ _('Dashboard') }}</a></li>
{% endblock %}

{% block secondary %}{% endblock %}

{% block primary %}
  <article class="module">
    {% block page_header %}
      <header class="module-content page-header hug">
        <div class="content_action">
          {% link_for _('Edit settings'), named_route='user.edit', id=user.name, class_='btn btn-default', icon='cog' %}
        </div>
    {% block content_primary_nav %}    
        <ul class="nav nav-tabs">
          {{ h.build_nav_icon('dashboard.index', _('News feed')) }}
          {{ h.build_nav_icon('dashboard.datasets', _('My Datasets')) }}
          {{ h.build_nav_icon('dashboard.organizations', _('My Organizations')) }}
          {{ h.build_nav_icon('dashboard.groups', _('My Groups')) }}
        </ul>
     {% endblock %}   
      </header>
    {% endblock %}
    <div class="module-content">
      {% if self.page_primary_action() | trim %}
        <div class="page_primary_action">
          {% block page_primary_action %}{% endblock %}
        </div>
      {% endif %}
      {% block primary_content_inner %}
        <div data-module="dashboard">
          {% snippet 'user/snippets/followee_dropdown.html', context=dashboard_activity_stream_context, followees=followee_list %}
          <h2 class="page-heading">
            {% block page_heading %}
              {{ _('News feed') }}
            {% endblock %}
            <small>{{ _("Activity from items that I'm following") }}</small>
          </h2>
          {% block activity_stream %}
            {{ dashboard_activity_stream|safe }}
          {% endblock %}
        </div>
      {% endblock %}
    </div>
  </article>
{% endblock %}
