-
Notifications
You must be signed in to change notification settings - Fork 2k
/
dashboard.html
43 lines (37 loc) · 1.52 KB
/
dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "page.html" %}
{% set user = c.user_dict %}
{% block subtitle %}{{ _('Dashboard') }}{% endblock %}
{% block breadcrumb_content %}
<li>{% link_for _('Users'), controller='user', action='index' %}</li>
<li class="active"><a href="">{{ _('Dashboard') }}</a></li>
{% endblock %}
{% block actions_content %}
<li>{% link_for _('Add new dataset'), controller='package', action='new', class_="btn btn-primary icon-large", icon="plus" %}</li>
{% endblock %}
{% block primary_content %}
<article class="module">
<div class="module-content" data-module="dashboard">
<h2 class="page-heading">{{ _('News feed') }} <small>{{ _('Activity from users and datasets that you follow') }}</small></h2>
{{ c.dashboard_activity_stream }}
</div>
</article>
{% endblock %}
{% block secondary_content %}
<section class="module module-shallow module-narrow module-my-datasets">
<h2 class="module-heading"><i class="icon-"></i> {{ _('My Datasets') }}</h2>
{% if c.user_dict['datasets'] %}
<nav>
<ul class="unstyled nav nav-simple">
{% for package in c.user_dict['datasets'] %}
{% set title = package.title or package.name %}
<li class="nav-item">
{{ h.link_to(h.truncate(title, 80), h.url_for(controller='package', action='read', id=package.name)) }}
</li>
{% endfor %}
</ul>
</nav>
{% else %}
<p class="empty">{{ _('You currently have not added any datasets yet') }}</p>
{% endif %}
</section>
{% endblock %}