-
Notifications
You must be signed in to change notification settings - Fork 2k
/
read_base.html
59 lines (53 loc) · 2.15 KB
/
read_base.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
56
57
58
59
{% extends "page.html" %}
{% block subtitle %}{{ c.group_dict.display_name }}{% endblock %}
{% block breadcrumb_content %}
<li>{% link_for _('Groups'), controller='group', action='index' %}</li>
<li class="active">{% link_for c.group_dict.display_name|truncate(35), controller='group', action='read', id=c.group_dict.name %}</li>
{% endblock %}
{% block content_action %}
{% if h.check_access('group_update', {'id': c.group_dict.id}) %}
{% link_for _('Edit'), controller='group', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}
{% block content_primary_nav %}
{{ h.build_nav_icon('group_read', _('Datasets'), id=c.group_dict.name) }}
{{ h.build_nav_icon('group_activity', _('Activity Stream'), id=c.group_dict.name, offset=0) }}
{{ h.build_nav_icon('group_about', _('About'), id=c.group_dict.name) }}
{% endblock %}
{% block secondary_content %}
<div class="module context-info">
<section class="module-content">
<div class="image">
<a href="{{ c.group_dict.url }}">
<img src="{{ c.group_dict.image_url or h.url_for_static('/base/images/placeholder-group.png') }}" width="190" height="118" alt="{{ c.group_dict.name }}" />
</a>
</div>
<h1 class="heading">{{ c.group_dict.display_name }}</h1>
{% if c.group_dict.description %}
<p>
{{ h.markdown_extract(c.group_dict.description, 180) }}
{% link_for _('read more'), controller='group', action='about', id=c.group_dict.name %}
</p>
{% else %}
<p class="empty">{{ _('There is no description for this group') }}</p>
{% endif %}
<div class="nums">
<dl>
<dt>{{ _('Followers') }}</dt>
<dd>{{ h.SI_number_span(c.group_dict.num_followers) }}</dd>
</dl>
<dl>
<dt>{{ _('Datasets') }}</dt>
<dd>{{ h.SI_number_span(c.group_dict.packages|length) }}</dd>
</dl>
</div>
<div class="follow_button">
{{ h.follow_button('group', c.group_dict.id) }}
</div>
</section>
</div>
{% endblock %}
{% block links %}
{{ super() }}
{% include "group/snippets/feeds.html" %}
{% endblock %}