Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate
1
    <ul class="resource-list" id="resource-page-{{page}}">
2
        {%- for item in result %}
3
        <li class="resource-list">
4
            <div class="icon-column">
5
                <a href="/context/all/{{item['context']}}">
6
                <img src="/context/icon/{{item['context']}}"/>
7
                </a>
8
            </div>
9
            <div class="icon-column">
10
                {%- if item['author'] %}
11
                <img src="/static/icons/sugar-xo.png"/>
12
                {%- endif %}
13
            </div>
14
            <div class="icon-column res_type_col">
15
                <a href="/context/{{item['type']}}s/{{item['context']}}">
16
                <img class="tab-button" src="/static/icons/button-{{item['type']}}.png"/>
17
                </a>
18
            </div>
19
            <div class="summary-column">
20
                {%- if resource_type!='review' %}
21
                <div class="resource-title">
22
                <a href="/{{item['type']}}/{{item['guid']}}">
23
                {{item['title']}}</a>
24
                </div>
25
                {%- endif %}
26
                <div class="resource-content-row">
27
                <a href="/{{item['type']}}/{{item['guid']}}">
28
                {{item['content']}}</a>
29
                </div>
30
                <div class="resource-meta">
31
                {{_('by %(author)s on %(date)s', author=item['author'][0], date=item['mtime']|timedelta)}}
32
                {%- for tag in item['tags'] %}
33
                    <span class="tag">{{tag}}</span>
34
                {%- endfor %}
35
                </div>
36
            </div>
37
            <!--
38
            <div class="icon-column">
39
                %- if item['keep'] %
40
                <img class="star" src="/static/icons/emblem-favorite.png"/>
41
                %- else %
42
                <img class="star" src="/static/icons/add-link.png"/>
43
                %- endif %
44
            </div>
45
            -->
46
            {%- if resource_type!='review' %}
47
            <div class="meta-column">
48
                <div>
49
                {{_('followers')}}
50
                </div>
51
                <div>
52
                {{_('comments')}}
53
                </div>
54
                <div>
55
                {{_('solutions')}}
56
                </div>
57
            </div>    
58
            {%- endif %}
59
        </li>
60
61
        {%- endfor %}
62
    </ul>