Modified view for edit debnate and added edit funtion to space template
[e_cidadania.git] / src / core / spaces / templates / spaces / space_index.html
blob67bbbfca2dc2ecbc46fc865469ade521052f7b35
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load comments %}
5 {% block title %}{{ get_place.name }} - {% trans "Index" %}{% endblock %}
6 {% block logo %}<a href="{{ get_place.get_absolute_url }}"><img src="{{ MEDIA_URL }}{{ get_place.logo }}" /></a>{% endblock %}
7 {% block banner %}<img src="{{ MEDIA_URL }}{{ get_place.banner }}" />{% endblock %}
9 {% block space %}
10 <a class="brand" href="{{ get_place.get_absolute_url }}">{{ get_place.name }}</a>
11 {% endblock %}
13 {% block extrajs %}
14 <script type="text/javascript" src="{{ STATIC_URL }}js/jqueryui-datepicker-{{ LANGUAGE_CODE }}.js"></script>
15 <script type="text/javascript">
16 $.datepicker.setDefaults({
17 onSelect: function(dateText) {
18 var date = $(this).datepicker("getDate");
19 var month = date.getMonth() + 1;
20 var year = date.getFullYear();
21 window.location = "calendar/" + year + "/" + month + "/";
23 });
24 $( "#datepicker" ).datepicker( $.datepicker.regional[ "{{ LANGUAGE_CODE }}" ] );
25 </script>
26 {% endblock %}
28 {% block content %}
30 <div class="row">
31 <div class="span12">
32 <ul class="nav nav-tabs">
33 <li class="e"><a href="#overview" da
34 ta-toggle="tab">{% trans "Overview" %}</a></li>
35 {% if get_place.mod_news %}
36 <li><a href="#news" data-toggle="tab">{% trans "News" %}</a></li>
37 {% endif %}
38 {% if get_place.mod_debate %}
39 <li><a href="#debates" data-toggle="tab">{% trans "Debates" %}</a></li>
40 {% endif %}
41 {% if get_place.mod_proposals %}
42 <li><a href="#proposals" data-toggle="tab">{% trans "Proposals" %}</a></li>
43 {% endif %}
44 {% if get_place.mod_docs %}
45 <li><a href="#docs" data-toggle="tab">{% trans "Documents" %}</a></li>
46 {% endif %}
47 {% if get_place.mod_cal %}
48 <li><a href="#events" data-toggle="tab">{% trans "Events" %}</a></li>
49 {% endif %}
50 {% if get_place.mod_voting %}
51 <li><a href="#voting" data-toggle="tab">{% trans "Voting" %}</a></li>
52 {% endif %}
53 {% if user_is_admin %}
54 <li class="dropdown">
55 <a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Administration" %} <b class="caret"></b></a>
56 <ul class="dropdown-menu">
57 {% if perms.news.add_post %}
58 <li><a href="{% url 'add-post' get_place.url %}" title="{% trans 'Add new post' %}">
59 <i class="icon-plus" style="font-size:16px;"></i> {% trans 'Add new post' %}
60 </a></li>
61 {% endif %}
62 <li class="divider"></li>
63 {% if perms.spaces.change_space %}
64 <li><a href="{% url 'edit-space' get_place.url %}" title="{% trans 'Edit space' %}">
65 <i class="icon-edit" style="font-size:16px;"></i> {% trans 'Edit space' %}
66 </a></li>
67 <li><a href="{% url 'edit-roles' get_place.url %}" title="{% trans 'Edit user roles' %}">
68 <i class="icon-edit" style="font-size:16px;"></i> {% trans 'Edit user roles' %}
69 </a></li>
70 {% if perms.spaces.delete_space %}
71 <li><a href="{% url 'delete-space' get_place.url %}" title="{% trans 'Delete space' %}">
72 <i class="icon-trash" style="font-size:16px;"></i> {% trans 'Delete space' %}
73 </a></li>
74 {% endif %}
75 <li class="divider"></li>
76 <li><a href="{% url 'add_fields' get_place.url %}" title="{% trans 'Add form field'%}">
77 <i class="icon-plus" style="font-size:16px;"></i> {% trans 'Add form fields '%}
78 </a></li>
79 <li><a href="{% url 'delete_fields' get_place.url %}" title="{% trans 'Delete form field'%}">
80 <i class="icon-trash" style="font-size:16px;"></i> {% trans 'Delete form field '%}
81 </a></li>
82 {% endif %}
83 </ul>
84 </li>
85 {% endif %}
86 <li class="pull-left">
87 <a href="{% url 'space-feed' get_place.url %}"><i class="icon-rss" style="font-size:16px;"></i> RSS</a>
88 </li>
89 </ul>
90 <div id="my-tab-content" class="tab-content">
91 <div class="tab-pane active" id="overview">
92 <div class="row">
93 <div class="span8">
94 {% if get_place.description %}
95 <p><strong>{% trans "Description:" %}</strong> {{ get_place.description|removetags:'p'|safe }}</p>
96 {% endif %}
97 <p><strong>{% trans "Current status:" %}</strong> Not implemented</p>
98 <p><strong><a href="#myModal" role="button" data-toggle="modal">{% trans "Participants:" %}</a></strong> {{ get_place.users.count|add:get_place.admins.count|add:get_place.mods.count }}</p>
99 <div class="modal hide fade" id="myModal">
100 <div class="modal-header">
101 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
102 <h3>{% trans "Participants for" %} {{ get_place.name }}</h3>
103 </div>
104 <div class="modal-body">
105 <p>{% trans "Administrators:" %} {{ get_place.admins.count }}</p>
106 <p>{% trans "Moderators:" %} {{ get_place.mods.count }}</p>
107 <p>{% trans "Users:" %} {{ get_place.users.count }}</p>
108 </div>
109 </div>
110 <hr />
111 <h4>{% trans "Recent activity" %}</h4>
113 {% if get_place.mod_news %}
114 <h6>{% trans "News"%}</h6>
115 <ul class="unstyled">
116 {% for news in publication|slice:":3" %}
117 <li><a href="{% url 'profile_public' news.author %}">{{ news.author }}</a> {% trans "posted" %} <a href="{{ news.get_absolute_url }}">{{ news.title }}</a> {% trans "on" %} {{ news.pub_date|date:"d F Y" }}</li>
118 {% empty %}
119 <li>{% trans "Nothing published yet." %}</li>
120 {% endfor %}
121 {% if publication %}
122 <li><a href="{% url 'list-space-news' get_place.url %}">{% trans "more..." %}</a></li>
123 {% endif %}
124 </ul>
125 {% endif %}
127 {% if get_place.mod_debate %}
128 <h6>{% trans "Debates" %}</h6>
129 <ul class="unstyled">
130 {% for debate in debates|slice:":3" %}
131 <li><a href="{% url 'profile_public' debate.author %}">{{ debate.author }}</a> {% trans "created debate" %} <a href="{{ debate.get_absolute_url }}">{{ debate.title }}</a> {% trans "on" %} {{ debate.date|date:"d F Y" }}</li>
132 {% empty %}
133 <li>{% trans "No debates started." %}</li>
134 {% endfor %}
135 {% if debates %}
136 <li><a href="{% url 'list-debates' get_place.url %}">{% trans "more..." %}</a></li>
137 {% endif %}
138 </ul>
139 {% endif %}
141 {% if get_place.mod_proposals %}
142 <h6>{% trans "Proposals" %}</h6>
143 <ul class="unstyled">
144 {% for proposal in proposals|slice:":3" %}
145 <li><a href="{% url 'profile_public' proposal.author %}">{{ proposal.author }}</a> {% trans "proposed" %} <a href="{{ proposal.get_absolute_url }}">{{ proposal.title }}</a> {% trans "on" %} {{ proposal.pub_date|date:"d F Y" }}</li>
146 {% empty %}
147 <li>{% trans "No proposals available." %}</li>
148 {% endfor %}
149 {% if proposals %}
150 <li><a href="{% url 'list-proposals' get_place.url %}">{% trans "more..." %}</a></li>
151 {% endif %}
152 </ul>
153 {% endif %}
155 {% if get_place.mod_cal %}
156 <h6>{% trans "Events" %}</h6>
157 <ul class="unstyled">
158 {% for m in event|slice:":3" %}
159 <li><a href="{{ m.get_absolute_url }}">{{ m.title }}</a> {% trans "on" %} {{ m.event_date|date:"d F Y" }}</li>
160 {% empty %}
161 <li>{% trans "No events registered." %}</li>
162 {% endfor %}
163 {% if event %}
164 <li><a href="{% url 'list-events' get_place.url %}">{% trans "View all events" %}</a></li>
165 {% endif %}
166 </ul>
167 {% endif %}
168 {% if get_place.mod_voting %}
169 <h6>{% trans "Polls" %}</h6>
170 <ul class="unstyled">
171 {% for p in polls|slice:":3" %}
172 <li><a href="{% url 'view-poll' get_place.url p.id %}">{{ p.question }}</a> {% trans "on" %} {{ p.pub_date|date:"d F Y" }}</li>
173 {% empty %}
174 <li>{% trans "No events registered." %}</li>
175 {% endfor %}
176 </ul>
177 <h6>{% trans "Votings" %}</h6>
178 <ul class="unstyled">
179 {% for v in votings %}
180 <li><a href="#">{{ v.title }}</a> {% trans "on" %} {{ p.pub_date|date:"d F Y" }}</li>
181 {% empty %}
182 <li>{% trans "There are no votings." %}</li>
183 {% endfor %}
184 </ul>
185 {% endif %}
186 </div>
187 <div class="span4 space-sidebar">
188 <h4>{% trans "Next events" %}</h4>
189 <ul class="unstyled">
190 {% for m in event %}
191 <li><a href="{{ m.get_absolute_url }}">{{ m.title }}</a></li>
192 {% empty %}
193 <li>{% trans "There are no events." %}</li>
194 {% endfor %}
195 </ul>
196 </div>
197 </div>
198 </div>
199 {% if get_place.mod_voting %}
200 <div class="tab-pane" id="voting">
201 <div class="row">
202 <div class="span8">
203 <h4>{% trans "Polls" %}</h4>
204 <ul class="unstyled">
205 {% for poll in polls %}
206 <li><a href="{% url 'view-poll' get_place.url poll.id %}">{{ poll.question }}</a>
207 {% if user_is_admin %}
208 {% if perms.voting.change_poll %}
209 <a href="{% url 'edit-poll' get_place.url poll.id %}" title="{% trans 'Edit' %}">
210 <i class="icon-edit" style="font-size:16px;"></i>
211 </a>
212 {% endif %}
213 {% if perms.voting.delete_poll %}
214 <a href="{% url 'delete-poll' get_place.url poll.id %}" title="{% trans 'Delete' %}">
215 <i class="icon-trash" style="font-size:16px;"></i>
216 </a>
217 {% endif %}
218 {% endif %}
219 <a href="{% url 'view-result' get_place.url poll.id %}" title="{% trans 'Results' %}">
220 <i class="icon-tasks" style="font-size:16px;"></i>
221 </a>
222 </li>
223 {% empty %}
224 <li>{% trans "There are no polls at this moment." %}</li>
225 {% endfor %}
226 </ul>
228 <h4>{% trans "Voting" %}</h4>
229 <ul class="unstyled">
230 {% for voting in votings %}
231 <li><a href="{% url 'view-voting' get_place.url voting.id %}">{{ voting.title }}</a></li>
232 {% if user_is_admin %}
233 {% if perms.voting.change_voting %}
234 <a href="{% url 'edit-voting' get_place.url voting.id %}" title="{% trans 'Edit' %}">
235 <i class="icon-edit" style="font-size:16px;"></i>
236 </a>
237 {% endif %}
238 {% if perms.voting.delete_voting %}
239 <a href="{% url 'delete-voting' get_place.url voting.id %}" title="{% trans 'Delete' %}">
240 <i class="icon-trash" style="font-size:16px;"></i>
241 </a>
242 {% endif %}
243 {% endif %}
244 {% empty %}
245 <li>{% trans "There are no votings at this moment." %}</li>
246 {% endfor %}
247 </ul>
248 </div>
249 <div class="span4 space-sidebar">
250 {% if user_is_admin %}
251 <h4>{% trans "Administration" %}</h4>
252 {% if perms.voting.add_poll %}
253 <ul class="unstyled">
254 <li><i class="icon-plus" style="font-size:16px;"></i> <a href="{% url 'add-poll' get_place.url %}" title="{% trans 'Add new poll' %}">
255 {% trans 'Add new poll' %}
256 </a></li>
257 </ul>
258 {% endif %}
259 {% if perms.voting.add_voting %}
260 <ul class="unstyled">
261 <li><i class="icon-plus" style="font-size:16px;"></i> <a href="{% url 'add-voting' get_place.url %}" title="{% trans 'Add new voting process' %}">
262 {% trans 'Add new voting process' %}
263 </a></li>
264 </ul>
265 {% endif %}
266 {% endif %}
267 <ul class="unstyled">
268 <h4>{% trans "Actions" %}</h4>
269 <li><a href="{% url 'list-polls' get_place.url %}">{% trans "List polls" %}</a></li>
270 <li><a href="{% url 'list-votings' get_place.url %}">{% trans "List voting" %}</a></li>
271 </ul>
272 </div>
273 </div>
274 <div class="row">
275 <div class="span8">
277 </div>
278 <div class="span4">
280 </div>
281 </div>
282 </div>
283 {% endif %}
285 {% if get_place.mod_news %}
286 <div class="tab-pane" id="news">
287 <div class="row">
288 <div class="span8">
289 {% for news in publication %}
290 <h3 class="posttitle"><a href="{{ news.get_absolute_url }}">{{ news.title }}</a>
291 {% if user_is_admin %}
292 {% if perms.news.change_post %}
293 <a href="{% url 'edit-post' get_place.url news.id %}" title="{% trans 'Edit post' %}">
294 <i class="icon-edit" style="font-size:16px;"></i>
295 </a>
296 {% endif %}
297 {% if perms.news.delete_post %}
298 <a href="{% url 'delete-post' get_place.url news.id %}" title="{% trans 'Delete post' %}">
299 <i class="icon-trash" style="font-size:16px;"></i>
300 </a>
301 {% endif %}
302 {% endif %}
303 </h2>
304 {% get_comment_count for news as comment_count %}
305 <p class="postinfo">{% trans "Written by" %} {{ news.author }} {% trans "on" %} {{ news.pub_date }} | {% if news.views %}{{ news.views }} {% trans "views" %} |{% endif %} <a href="{{ news.get_absolute_url }}">{{ comment_count }} {% trans "comments" %}</a></p>
306 {{ news.description|safe }}
307 <div style="margin-bottom:30px;"></div>
308 {% empty %}
309 <ul class="unstyled">
310 <li>{% trans "There are no news for this space." %}</li>
311 </ul>
312 {% endfor %}
313 </div>
314 <div class="span4 space-sidebar">
315 {% if user_is_admin %}
316 {% if perms.news.add_post %}
317 <h4>{% trans "Administration" %}</h4>
318 <ul class="unstyled">
319 <li><a href="{% url 'add-post' get_place.url %}" title="{% trans 'Add new post' %}">
320 <i class="icon-plus" style="font-size:16px;"></i> {% trans 'Add new post' %}
321 </a></li>
322 </ul>
323 {% endif %}
324 {% endif %}
325 <h4>{% trans "Most viewed" %}</h4>
326 {% for p in mostviewed %}
327 <ul class="unstyled">
328 <li><a href="{% url 'view-post' get_place.url p.id %}">{{ p.title }}</a></li>
329 </ul>
330 {% endfor %}
331 <h4>{% trans "Most commented" %}</h4>
332 {% for c in mostcommented %}
333 <ul class="unstyled">
334 <li><a href="{% url 'view-post' get_place.url c %}">{{ c }}</a></li>
335 </ul>
336 {% endfor %}
337 <h4>{% trans "View monthly archive" %}</h4>
338 <ul class="unstyled">
339 <li><a href="{% url 'list-space-news' get_place.url %}">{% trans "News archive" %}</a></li>
340 </ul>
341 </div>
342 </div>
343 </div>
344 {% endif %}
346 {% if get_place.mod_debate %}
347 <div class="tab-pane" id="debates">
348 <div class="row">
349 <div class="span8">
350 <h4>{% trans "Active debates" %}</h4>
351 <ul class="unstyled">
352 {% for debate in debates %}
353 {% if debate.is_active %}
354 <li><a href="{{ debate.get_absolute_url }}">{{ debate.title }}</a>
355 <a href="{% url 'edit-debate' get_place.url debate.id %}" title="{% trans 'Edit debate' %}">
356 <i class="icon-edit" style="font-size:16px;"></i></a>
357 {% comment %}
358 <a href="{% url 'delete-debate' get_place.url debate.id %}" title="{% trans 'Delete debate' %}">
359 <i class="icon-trash" style="font-size:16px;"></i></a>
360 {% endcomment %}
361 {% endif %}
362 {% empty %}
363 <li>{% trans "No debates started." %}</li>
364 {% endfor %}
365 </ul>
366 <h4>{% trans "Closed debates" %}</h4>
367 <ul class="unstyled">
368 {% for debate in debates %}
369 {% if not debate.is_active %}
370 <li><a href="{{ debate.get_absolute_url }}">{{ debate.title }}</a></li>
371 {% endif %}
372 {% empty %}
373 <li>{% trans "No debates closed yet." %}</li>
374 {% endfor %}
375 </ul>
376 </div>
377 <div class="span4">
378 {% if user_is_admin %}
379 <h4>{% trans "Administration" %}</h4>
380 <ul class="unstyled">
381 {% if perms.debate.add_debate %}
382 <li><a href="{% url 'add-debate' get_place.url %}" title="{% trans 'Add debate' %}">
383 <i class="icon-plus" style="font-size:16px;"></i> {% trans "Add debate" %}
384 </a></li>
385 {% endif %}
386 {% comment %}
387 {% if perms.debate.change_debate %}
388 <li><a href="{% url 'edit-debate' get_place.url debate.id %}" title="{% trans 'Edit debate' %}">
389 <i class="icon-edit" style="font-size:16px;"></i> {% trans 'Edit debate' %}
390 </a></li>
391 {% endif %}
392 {% if perms.debate.delete_debate %}
393 <li><a href="{% url 'delete-debate' get_place.url %}" title="{% trans 'Delete debate' %}">
394 <i class="icon-trash" style="font-size:16px;"></i>
395 </a></li>
396 {% endif %}
397 {% endcomment %}
398 </ul>
399 {% endif %}
400 <h4>{% trans "Actions" %}</h4>
401 <ul class="unstyled">
402 <li><a href="{% url 'list-debates' get_place.url %}">{% trans "View all debates" %}</a></li>
403 </ul>
405 </div>
406 </div>
407 </div>
408 {% endif %}
410 {% if get_place.mod_proposals %}
411 <div class="tab-pane" id="proposals">
412 <div class="row">
413 <div class="span8">
414 <h4>{% trans "New proposals" %}</h4>
415 <ul class="unstyled">
416 {% for proposal in proposals %}
417 {% if not proposal.merged %}
418 <li><a href="{{ proposal.get_absolute_url }}">{{ proposal.title }}</a>
419 {% trans "by" %} {{ proposal.author }} {% if proposal.proposalset %}
420 {% trans "on" %} <a href="{{ proposal.proposalset.get_absolute_url }}">{{ proposal.proposalset }}</a> {% endif %}
421 {% trans "at" %} {{ proposal.pub_date|date:"d F Y" }}
422 {% if perms.proposals.change_proposal %}
423 <a href="{% url 'edit-proposal' get_place.url proposal.id %}" title="{% trans 'Edit proposal' %}">
424 <i class="icon-edit" style="font-size:16px;"></i>
425 </a>
426 {% endif %}
427 {% if perms.debate.delete_debate %}
428 <a href="{% url 'delete-proposal' get_place.url proposal.id %}" title="{% trans 'Delete proposal' %}">
429 <i class="icon-trash" style="font-size:16px;"></i>
430 </a>
431 {% endif %}
432 </li>
433 {% endif %}
434 {% empty %}
435 <li>{% trans "No proposals available." %}</li>
436 {% endfor %}
437 </ul>
438 <h4>{% trans "New proposal sets" %}</h4>
439 <ul class="unstyled">
440 {% for proposalset in proposalsets %}
441 <li><a href="{{ proposalset.get_absolute_url }}">{{ proposalset.name }}</a> {% trans "by" %} {{ proposalset.author }} {% trans "at" %} {{ proposalset.pub_date|date:"d F Y"}}</li>
442 {% empty %}
443 <li>{% trans "No proposal sets available."%}</li>
444 {% endfor %}
445 </ul>
446 <h4>{% trans "Merged proposals" %}</h4>
447 <ul class="unstyled">
448 {% for proposal in proposals %}
449 {% if proposal.merged %}
450 <li><a href="{{ proposal.get_absolute_url}}">{{ proposal.title }}</a> {% trans "by" %} {{ proposal.author }} {% trans "on" %} <a href="{{ proposal.proposalset.get_absolute_url }}">{{ proposalset }}</a> {% trans "at" %} {{ proposal.pub_date|date:"d F Y"}}</li>
451 {% endif %}
452 {% empty %}
453 <li>{% trans "No merged proposals" %}</li>
454 {% endfor %}
455 </ul>
456 <h4>{% trans "Most commented" %}</h4>
457 <h4>{% trans "Highlighted proposals" %}</h4>
458 </div>
459 <div class="span4">
460 {% if user_is_admin %}
461 <h4>{% trans "Administration" %}</h4>
462 <ul class="unstyled">
463 {% if perms.proposalsets.add_proposalset %}
464 <li>
465 <a href="{% url 'add-proposalset' get_place.url %}" title="{% trans 'Add proposal set' %}">
466 <i class="icon-plus" style="font-size:16px;"></i> {% trans "Add proposal set" %}
467 </a>
468 </li>
469 {% endif %}
470 </ul>
471 <ul class="unstyled">
472 {% if perms.proposals.add_proposal %}
473 <li>
474 <a href="{% url 'select_set' get_place.url %}" title="{% trans 'Add new proposal' %}">
475 <i class="icon-plus" style="font-size:16px;"></i> {% trans 'Add new proposal' %}
476 </a>
477 </li>
478 {% endif %}
479 </ul>
480 <ul class="unstyled">
481 {% if perms.proposals.add_proposalset %}
482 <li>
483 <a href="{% url 'merge_proposal' get_place.url %}" title="{% trans 'Merge proposal' %}">
484 <i class="icon-plus" style="font-size:16px;"></i> {% trans "Create merged proposal" %}
485 </a>
486 </li>
487 {% endif %}
488 </ul>
489 {% endif %}
490 <h4>{% trans "Actions" %}</h4>
491 <ul class="unstyled">
492 <li><a href="{% url 'list-proposals' get_place.url %}">{% trans "View all proposals" %}</a></li>
493 <li><a href="{% url 'list-proposalset' get_place.url %}">{% trans "View all proposal sets" %}</a></li>
494 </ul>
495 </div>
496 </div>
497 </div>
498 {% endif %}
500 {% if get_place.mod_docs %}
501 <div class="tab-pane" id="docs">
502 <div class="row">
503 <div class="span8">
504 <ul class="unstyled">
505 {% for doc in documents %}
506 <li><a href="{{ doc.docfile.url }}">{{ doc.title }} ({{ doc.get_file_ext }}, {{ doc.get_file_size }})</a>
507 {% if perms.spaces.change_document %}
508 <a href="{% url 'edit-document' get_place.url doc.id %}" title="{% trans 'Edit document' %}">
509 <i class="icon-edit" style="font-size:16px;"></i>
510 </a>
511 {% endif %}
512 {% if perms.spaces.delete_document %}
513 <a href="{% url 'delete-document' get_place.url doc.id %}" title="{% trans 'Delete document' %}">
514 <i class="icon-trash" style="font-size:16px;"></i>
515 </a>
516 {% endif %}
517 </li>
518 {% empty %}
519 <li>{% trans "No documents or files available." %}</li>
520 {% endfor %}
521 </ul>
522 </div>
523 <div class="span4">
524 {% if user_is_admin %}
525 <h4>{% trans "Administration" %}</h4>
526 <ul class="unstyled">
527 {% if perms.spaces.add_document %}
528 <li><a href="{% url 'add-document' get_place.url %}" title="{% trans 'Add new document' %}">
529 <i class="icon-plus" style="font-size:16px;"></i> {% trans "Add documents"%}
530 </a>
531 </li>
532 {% endif %}
533 </ul>
534 {% endif %}
535 <h4>{% trans "Actions" %}</h4>
536 <ul class="unstyled">
537 <li><a href="{% url 'list-documents' get_place.url %}">{% trans "View all documents" %}</a></li>
538 </ul>
539 </div>
540 </div>
541 </div>
542 {% endif %}
544 <div class="tab-pane" id="events">
545 <div class="row">
546 <div class="span8">
547 <h4>{% trans "Next events" %}</h4>
548 <ul class="unstyled">
549 {% for e in event %}
550 {% if not e.is_due %}
551 <li><a href="{% url 'view-event' get_place.url e.id %}">{{ e.title }}</a></li>
552 {% endif %}
553 {% endfor %}
554 </ul>
555 <h4>{% trans "Past events" %}</h4>
556 <ul class="unstyled">
557 {% for e in event %}
558 {% if e.is_due %}
559 <li><a href="{% url 'view-event' get_place.url e.id %}">{{ e.title }}</a></li>
560 {% endif %}
561 {% endfor %}
562 </ul>
563 </div>
564 <div class="span4">
565 <div class="alert fade in">
566 <button type="button" class="close" data-dismiss="alert">×</button>
567 {% trans "<strong>Hey!</strong> You can click on a day to see a bigger calendar with the events." %}
568 </div>
569 <div id="datepicker"></div>
570 {% if user_is_admin %}
571 <h4>{% trans "Administration" %}</h4>
572 <ul class="unstyled">
573 {% if perms.spaces.add_event %}
574 <li><a href="{% url 'add-event' get_place.url %}" title="{% trans 'Add new event' %}">
575 <i class="icon-plus" style="font-size:16px;"></i> {% trans "Add event"%}
576 </a></li>
577 {% endif %}
578 </ul>
579 {% endif %}
580 <h4>{% trans "Actions" %}</h4>
581 <ul class="unstyled">
582 <li><a href="{% url 'list-events' get_place.url %}">{% trans "View all events" %}</a></li>
583 </ul>
584 </div>
585 </div>
586 </div>
587 </div>
588 </div>
589 </div>
591 {% comment %}
592 <div class="row">
593 <div class="span12">
594 <h4>{% trans "Share" %}</h4>
595 <!-- Facebook -->
596 <div id="fb-root"></div>
597 <script>(function(d, s, id) {
598 var js, fjs = d.getElementsByTagName(s)[0];
599 if (d.getElementById(id)) {return;}
600 js = d.createElement(s); js.id = id;
601 js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1";
602 fjs.parentNode.insertBefore(js, fjs);
603 }(document, 'script', 'facebook-jssdk'));
604 </script>
605 <div style="float:left;" class="fb-like" data-href="http://ecidadania.org" data-send="false" data-layout="box_count" data-width="85" data-show-faces="false"></div>
606 <!-- End Facebook -->
608 <!-- Google Plus -->
609 <g:plusone size="tall" href="http://ecidadania.org"></g:plusone>
610 <script type="text/javascript">
611 window.___gcfg = {lang: 'es'};
613 (function() {
614 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
615 po.src = 'https://apis.google.com/js/plusone.js';
616 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
617 })();
618 </script>
619 <!-- End Google Plus -->
621 <!-- LinkedIn -->
622 <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
623 <script type="IN/Share" data-url="http://ecidadania.org" data-counter="top"></script>
624 <!-- End LinkedIn -->
626 <!-- Identi.ca -->
627 <div id="identishare" style="vertical-align: bottom;"></div>
628 <script type="text/javascript" src="http://www.tildehash.com/identishare.php?style2&title='e-cidadania open source e-democracy platform'" defer="defer"></script>
629 <!-- End Identi.ca -->
631 <!-- Twitter -->
632 <a href="https://twitter.com/ecidadaniafloss" class="twitter-share-button" date-url="http://ecidadania.org" data-counturl="http://ecidadania.org" data-count="vertical" data-lang="es">{% trans "Tweet" %}</a>
633 <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
634 <!-- End Twitter -->
636 <!-- Tuenti -->
637 <script type="text/javascript" src="http://widgets.tuenti.com/widgets.js"></script>
638 <a href="http://www.tuenti.com/share" class="tuenti-share-button" icon-style="light" share-url="http://ecidadania.org"></a>
639 <!-- End Tuenti -->
641 <a href="rss/"><img src="{{ STATIC_URL }}/assets/logos/rss_logo.png" alt="Feed RSS"/>RSS de este espacio</a>
642 </div>
643 </div>
644 {% endcomment %}
646 {% endblock %}
648 {% block footerimg %}
649 {% for e in entities %}
650 {% if e.logo %}
651 <a href="{{ e.website }}"><img src="{{ MEDIA_URL }}/{{ e.logo }}" alt="Logo"/></a>
652 {% else %}
653 {% if e.website %}
654 <a href="{{ e.website }}">{{ e.name }}</a> -
655 {% else %}
656 {{ e.name }} -
657 {% endif %}
658 {% endif %}
659 {% endfor %}
660 {% endblock %}
662 {% block footer %}
663 {% for p in page %}
664 <a href="/{{ p.uri }}" title="{{ p.name }}">{{ p.name }}</a><br /> |
665 {% endfor %}
666 {% endblock %}