forked from NeonSwan/nexudus-spaces-default-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.htm
105 lines (99 loc) · 4.26 KB
/
events.htm
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
{% extends master.master %}
{% block content %}
<div id="wrapper">
<!-- CONTAINER -->
<div id="main" class="container">
<!-- BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="{% Url PublicHome, Index %}">{% T Home %}</a> <span class="divider">/</span></li>
<li class="active">{% T Events %}</li>
</ul>
<!-- END BREADCRUMB -->
<div class="row">
<!-- CONTENT -->
<section id="content" class="span9">
{% if data.Local.CalendarEvents.size == 0 %}
<h3 class="well">{% T There are no more events. %}</h3>
<a class="btn btn-orange" href="{% Url Blog, Index, page: data.Local.Page | Minus: 1 %}">{% T Go back %}</a>
{% endif %}
{% for ev in data.Local.CalendarEvents %}
<article class="post">
<h2 class="page-title"><a href="{% Url Events, View, Id: ev.Id, title: ev.Name | Clean %}">{{ ev.Name | StripHtml }}</a></h2>
<!-- POST INFO -->
<ul class="post-info">
<li>
<span aria-hidden="true" class="icon i-16 icon-calendar"></span> <a href="{% Url Events, ICal, Id: ev.Id %}">{{ ev.StartDate | Date: 'd MMMM' }}</a>
</li>
<li>
<span aria-hidden="true" class="icon i-16 icon-bubble"></span> <a href="{% Url Events, View, Id: ev.Id, title: ev.Name | Clean %}#comments">{% T {0} Comment(s) || ev.Comments.size %}</a>
</li>
</ul>
<!-- END POST INFO -->
<!-- POST CONTENT -->
<div class="event-content">
<div class="row">
{% if ev.HasSmallImage %}
<div class="span2">
<a href="{% Url Events, View, Id: ev.Id, title: ev.Name | Clean %}" class="thumbnail pull-left">
<img style="width:100%" src="{% Url Events, GetSmallImage, id: ev.Id, h: 200, w: 200 %}" alt="{{ ev.Title | StripHtml }}" class="entry-image" />
</a>
<div class="clearfix"></div>
</div>
{% endif %}
<div class="{% if ev.HasSmallImage %}span7{%else%}span9{%endif%}">
{{ ev.ShortDescription | StripHtml | MarkDown }}
<p>
<a class="btn btn-orange" href="{% Url Events, View, Id: ev.Id, title: ev.Name | Clean %}">{% T Read more %}</a>
<a class="btn btn-grey" href="{% Url Events, ICal, Id: ev.Id, title: ev.Name | Clean %}">
<i class="icon-calendar"></i>
{% T Add to Calendar %}</a>
</p>
</div>
</div>
</div>
<!-- END POST CONTENT -->
</article>
{% endfor %}
<!-- PAGINATION -->
<div class="pagination pagination-centered">
<ul>
{% if(data.Local.Page == 1 %}
<li class="disabled"><a href="#">‹</a></li>
{% else %}
<li><a href="{% Url Events, Index, page: data.Local.Page | Minus: 1 %}">‹</a></li>
<li><a href="{% Url Events, Index, page: data.Local.Page | Minus: 1 %}">{{ data.Local.Page | Minus: 1 }}</a></li>
{% endif %}
<li class="active"><a href="#">{{ data.Local.Page }}</a></li>
{% if data.Local.CalendarEvents.size == 0 %}
<li class="disabled"><a href="#">›</a></li>
{% else %}
<li><a href="{% Url Events, Index, page: data.Local.Page | Plus: 1 %}">{{ data.Local.Page | Plus: 1 }}</a></li>
<li><a href="{% Url Events, Index, page: data.Local.Page | Plus: 1 %}" class="next">›</a></li>
{% endif %}
</ul>
</div>
<!-- END PAGINATION -->
</section>
<!-- END CONTENT -->
<!-- SIDEBAR -->
<aside id="sidebar-right" class="span3">
{% if data.Setting_Social_Flickr != "" %}
<!-- WIDGET FLICKR -->
<div class="widget widget-flickr">
<div class="widget-title">
<h3>{% T Flickr Feed %}</h3>
</div>
<div class="widget-body">
<ul>
</ul>
</div>
</div>
<!-- END WIDGET FLICKR -->
{% endif %}
</aside>
<!-- END SIDEBAR -->
</div>
</div>
<!-- END CONTAINER -->
</div>
{% endblock %}