-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
79 lines (76 loc) · 2.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
layout: default
---
{% for post in paginator.posts %}
<div class="panel well">
<div class="row">
<div class="col-md-1 hidden-xs">
{% capture cat %}{{ post.category | downcase }}{% endcapture %}
<span class="lead">{% include icon_cat.html %}</span>
</div>
<div class="col-md-8">
<h2>
<a href="{{ site.baseurl}}{{ post.url }}">{{ post.title }}</a>
</h2>
<i class="glyphicon glyphicon-calendar" aria-hidden="true"></i>Last Update: {{ post.date | date: "%d %b %Y" }}
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Title</dt>
<dd>{{ post.title }}</dd>
<dt>Summary</dt>
<dd>{{ post.short }}<sup><a href="{{ site.baseurl}}{{ post.url }}"><i class="glyphicon glyphicon-plus-sign text-info"></i></a></sup></dd>
<dt>Requires</dt>
<dd>ElkArte {% if post.elkversion %}{{ post.elkversion }}{% else %}1.0{% endif %} (+)</dd>
<dt>Category</dt>
<dd>
{% include pretty_cat.html %}
{{ cat }}
</dd>
<dt>Author</dt>
<dd>{{ post.author }}</dd>
<dt>License</dt>
<dd>{{ post.license }}
{% capture osi %}{{ post.license | upcase | truncate: 3, '' }}{% endcapture %}
{% if osi == 'BSD' or osi == 'MPL' or osi == 'GNU' or osi == 'MIT' or osi == 'APA' or osi == 'WTF' %}
<img class="img-circle" style="padding-bottom: 1px;" src="{{ site.baseurl }}/assets/images/osi-icon.png" title="Open Source License" alt="OSI">
{% endif %}
</dd>
<dt>Version</dt>
<dd>{{ post.version }}</dd>
{% if post.link %}
<dt>Link</dt>
<dd>{{ post.link }}</dd>
{% endif %}
</dl>
</div>
</div>
<div class="col-md-3 hidden-xs">
{% if post.thumbnail %}
<div class="thumbnail">
<a href="{{ site.baseurl}}{{ post.url }}">
{% if post.thumbnail contains 'http://' or post.thumbnail contains 'https://' %}
<img class="img-rounded" src="{{ post.thumbnail }}" alt="details">
{% else %}
<img class="img-rounded" src="{{ site.baseurl }}{{ post.thumbnail }}" alt="details">
{% endif %}
</a>
</div>
{% else %}
<div class="media media-right">
<img class="img-rounded" src="{{ site.baseurl }}/assets/images/addons.png" alt="thumbnail">
</div>
{% endif %}
<a href="{{ post.download }}" class="btn btn-info btn-block"><i class="glyphicon glyphicon-save pull-left"></i> Download</a>
{% if post.support and post.support != '' %}
<a href="{{ post.support }}" class="btn btn-info btn-block"><i class="glyphicon glyphicon-bullhorn pull-left"></i> Support</a>
{% endif %}
{% if post.bugs and post.bugs != '' %}
<a href="{{ post.bugs }}" class="btn btn-info btn-block"><i class="glyphicon glyphicon-fire pull-left text-danger"></i> Issues</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
<div class="text-center">
{% include pager.html %}
</div>