blob: 1349b1d22f8ce5c4ba3a1252186c74e68e27432f (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}
{% block title %} {{groups_category}} {% endblock %}
{% block meta_content %}
<h2 class="subheader">
{% if app_gst.altnames and app_gst.altnames != "None" %}
{{app_gst.altnames}}
{% else %}
{{app_gst.name}}
{% endif%}
</h2>
{{app_gst.content|default_if_none:''|safe}}
{% endblock %}
{% block help_content %}
{% endblock %}
{% block search_content %}
{% include "ndf/node_search_base.html" %}
{% endblock %}
{% block related_content %}
{% if user.is_authenticated %}
{% user_access_policy groupid request.user as user_access %}
{% if user_access == "allow" %}
<br/>
<div class="create card">
<div class="group">
<br/>
<a class="button medium"
{% if groups_category == "Partners" %}
href="{% url 'create_partner' group_name_tag %}">
{% else%}
href="{% url 'create_group' group_name_tag %}">
{% endif %}
<span class="fi-plus"> {% blocktrans %} New {{groups_category}} {% endblocktrans %}</span>
</a>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}
{% block body_content %}
{% get_group_name groupid as group_name_tag %}
<header class="row">
<dl class="tabs" data-tab data-options="deep_linking:true">
<dd class="active"><a href="#panel2-1"><i class="fi-eye"></i> {% trans "All" %} {{ groups_category }} {% if group_nodes_count %}({{ group_nodes_count }}){% endif %}</a></dd>
<!--<dd><a href="#panel2-3"><i class="fi-trophy"></i> Popular Groups</a></dd>-->
</dl>
</header>
<div class="content row">
{% if searching and group_nodes_count > 0 %}
<div class="small-12 columns end">
<p>{% trans "Search Results:" %} <span class="label success round">Found {{group_nodes_count}} {{title|lower}}{{group_nodes_count|pluralize}}.</span></p>
</div>
{% elif searching and group_nodes_count == 0 %}
<div class="small-12 columns">
<p>{% trans "Search Results:" %} <span class="label alert">No {{title|lower}}{{group_nodes_count|pluralize}} matched your search criteria!!!</span></p>
</div>
{% endif %}
<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
<!-- Existing card list-->
<!-- #{#% get_group_type request.path request.user as group_type %} -->
{% group_type_info groupid request.user as grouptype %}
{% autopaginate group_nodes 23 %}
{% for node in group_nodes %}
{% if node.name != request.user.username %}
<li class="card">
{% if grouptype == "Moderated" %}
{% if node.status == "DRAFT" %}
<div class="draft group">
{% elif node.status == "PUBLISHED" %}
<div class="published group">
{% endif %}
{% else %}
<div class='{% if node.status == "PUBLISHED" %}published{% endif %} group'>
{% endif %}
{% if node.name in "Schools, Teachers, Interest Groups"%}
<a href="/{{node.name}}">
{% else %}
<a href="{% url 'partnerlist' node.name %}">
{% endif %}
<div class="row">
<div class="small-10 columns">
<b>
{{ node.name }}{% if node.collection_set %} <i class="fi-page-multiple"></i> {% endif %}
</b>
</div>
</div>
<hr/>
<span style="font-size:12px;">{{ node.html_content|default_if_none:"Add some description."|safe|striptags|truncatechars:75 }}</span><br/>
<footer>
<div class="age">
{% blocktrans %}{{ node.agency_type}} created {% endblocktrans %}{{node.created_at|timesince}} ago by <span class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</span>
</div>
<span><strong>{{node.author_set|length}}</strong> {% trans "Members" %}</span>
{% get_group_resources node as obj_count %}
<span class="right"><strong>{{obj_count}}</strong> {% trans "Objects" %}</span>
</footer>
</a>
<div class="label-list small-12 columns">
{% for tag in node.tags|slice:":3" %}
<a href="{% url 'tag_info' groupid tag %}"><span class="label" style="background-color:yellow;">{{tag}}</span></a>
{% endfor %}
</div>
</div>
</li>
{% endif %}
{% empty %}
{% if not searching %}
<div class="row">
<div class="small-12 columns">
{% blocktrans with groups_category as grps_category %}
<h5>There are no partners created yet.<b>Be the first to create a {{ grps_category }}!</b></h5>
{% endblocktrans %}
</div>
</div>
{% endif %}
{% endfor %}
</ul>
{% paginate %}
{% endblock %}
|