-
Notifications
You must be signed in to change notification settings - Fork 2k
/
index.html
55 lines (49 loc) · 2.02 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
{% extends "page.html" %}
{% block subtitle %}{{ _('Groups of Datasets') }}{% endblock %}
{% block breadcrumb_content %}
<li class="active">{% link_for _('Groups'), controller='group', action='index' %}</li>
{% endblock %}
{% block page_header %}{% endblock %}
{% block page_primary_action %}
{% if h.check_access('group_create') %}
{% link_for _('Add Group'), controller='group', action='new', class_='btn btn-primary', icon='plus-sign-alt' %}
{% endif %}
{% endblock %}
{% block primary_content_inner %}
<h1 class="hide-heading">{{ _('Groups') }}</h1>
{% block groups_search_form %}
{% snippet 'snippets/search_form.html', type='group', query=c.q, sorting_selected=c.sort_by_selected, count=c.page.item_count, placeholder=_('Search groups...'), show_empty=request.params %}
{% endblock %}
{% block groups_list %}
{% if c.page.items or request.params %}
{% snippet "group/snippets/group_list.html", groups=c.page.items %}
{% else %}
<p class="empty">
{{ _('There are currently no groups for this site') }}.
{% if h.check_access('group_create') %}
{% link_for _('How about creating one?'), controller='group', action='new' %}</a>.
{% endif %}
</p>
{% endif %}
{% endblock %}
{% block page_pagination %}
{{ c.page.pager() }}
{% endblock %}
{% endblock %}
{% block secondary_content %}
<div class="module module-narrow module-shallow">
<h2 class="module-heading">
<i class="icon-info-sign"></i>
{{ _('What are Groups?') }}
</h2>
<div class="module-content">
{% trans %}
<p>Groups allow you to group together datasets under a community (for
example, Civil Liberty data) or topic (e.g. Transport, Health,
Environment) to make it easier for users to browse datasets by theme.
Datasets can be part of a group, but do not belong to the group for
editing or authorisation purposes.</p>
{% endtrans %}
</div>
</div>
{% endblock %}