blob: 49a3a87c277e7967ed836a373df26f21b31f6974 (
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
|
<ul class="resource-list" id="resource-page-{{page}}">
{%- for item in result %}
<li class="resource-list">
<div class="icon-column">
<a href="/context/artifacts/{{item['context']}}">
<img class="has_tooltip" src="/context/icon/{{item['context']}}" title="{{_('context resources')}}" />
</a>
</div>
<div class="icon-column">
{%- if item['author'] %}
<img src="/static/icons/sugar-xo.png"/>
{%- endif %}
</div>
<div class="icon-column res_type_col">
<a href="/artifacts/download/{{item['guid']}}">
<img class="has_tooltip small_preview" src="/artifacts/preview/{{item['guid']}}" title="{{_('download artifact')}}"/>
</a>
</div>
<div class="summary-column">
{%- if resource_type!='review' %}
<div class="resource-title">
<a class="has_tooltip" title="{{_('see more')}}" href="/artifacts/download/{{item['guid']}}">
{{item['title']}}</a>
</div>
{%- endif %}
<div class="resource-content-row">
<a class="has_tooltip" title="{{_('see more')}}" href="/artifacts/download/{{item['guid']}}">
{{item['description']}}</a>
</div>
<div class="resource-meta">
{{_('by %(author)s on %(date)s', author=item['author'][0]['name'], date=item['mtime']|timedelta)}}
{%- for tag in item['tags'] %}
<span class="tag">{{tag}}</span>
{%- endfor %}
</div>
</div>
<!--
<div class="icon-column">
%- if item['favorite'] %
<img class="star" src="/static/icons/emblem-favorite.png"/>
%- else %
<img class="star" src="/static/icons/add-link.png"/>
%- endif %
</div>
-->
</li>
{%- endfor %}
</ul>
|