Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate
1
        {%- if not _pjax %}
2
        <div class="resource-scrollable" id="resource-scrollable">
3
            <div class="items">
4
            {%- for item in range(page-1) %}
5
            <ul class='browser-page' id="resource-page-{{item+1}}">
6
                <div id='throbber-box'>
7
                    <img id='throbber' src="/static/images/throbber10.gif" />
8
                </div>
9
            </ul>
10
            {%- endfor %}
11
            <ul class="browser-page" id='resource-page-{{page}}'>
12
        {%- endif %}
13
                {%- for item in result %}
14
                <li class="resource-list">
15
                    <div class="icon-column">
16
                        {%- if item['author'] %}
17
                        <img src="/static/icons/sugar-xo.png"/>
18
                        {%- endif %}
19
                    </div>
20
                    <div class="icon-column res_type_col">
21
                        <a href="/context/{{item['type']}}s/{{item['context']}}">
22
                        <img class="tab-button" src="/static/icons/button-{{item['type']}}.png"/>
23
                        </a>
24
                    </div>
25
                    <div class="summary-column-context">
26
                        <div class="resource-title">
27
                        <a href="/{{resource_type}}/{{item['guid']}}"
28
                            class="solution-link" 
29
                            data-href="/{{resource_type}}/{{item['guid']}}">
30
                        {{item['title']}}</a>
31
                        </div>
32
                        <div class="resource-content-row">
33
                        {{item['content']}}
34
                        </div>
35
                        <div class="mtime">
36
                            {{_('by %(author)s on %(date)s', author=item['author'][0], date=item['mtime']|timedelta)}}
37
                        </div>
38
                        <div class="resource-meta">
39
                        {%- for tag in item['tags'] %}
40
                            <span class="tag">{{tag}}</span>
41
                        {%- endfor %}
42
                        </div>
43
                        <!--div class="meta-column">
44
                            <div>
45
                            {{_('followers')}}
46
                            </div>
47
                            <div>
48
                            {{_('comments')}}
49
                            </div>
50
                            <div>
51
                            {{_('solutions')}}
52
                            </div>
53
                        </div-->    
54
                    </div>
55
                </li>
56
                {%- endfor %}
57
                {%- if not result %}
58
                <div id="notice-window">
59
                    <div class="notice">{{_('No %(resource)s have been shared yet for this context.<br><br>Be the first to contribute with the community!', resource=resource_label )}}
60
                    </div>
61
                </div>
62
                {%- endif %}
63
        {%- if not _pjax %}
64
            </ul>
65
            {%- for item in range(total_pages-page) %}
66
            <ul class='browser-page' id="resource-page-{{item+page+1}}">
67
                <div id='throbber-box'>
68
                    <img id='throbber' src="/static/images/throbber10.gif" />
69
                </div>
70
            </ul>
71
            {%- endfor %}
72
            </div>
73
        </div>
74
        
75
        <div id="mejorar-sistema">
76
                <!--img onclick="location='/new/resource?cursor_offset={{context_offset}}'" class="toolbar-icon white-button" src="/static/icons/list-add.png" /--> 
77
                <img onclick="improve_the_system('{{context['guid']}}')" class="toolbar-icon white-button" src="/static/icons/list-add.png" /> 
78
        </div>
79
        {%- endif %}