Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate
1
                <br /><form id="review-form" method="POST" data-guid="{{context['guid']}}" action="/submit_review">
2
                    <input type="hidden" name="resource_guid" value="{{context['guid']}}" /> 
3
                    <textarea id="textarea-solution" name="review"></textarea>
4
                    <br />
5
                    <input id="contribute-button" class="sugar-button" type="submit" value="{{_('contribute a review')}}" />
6
                </form>
7
                <br />
8
                <ul class='generic-list'>
9
                {%- if not result %}
10
                <div class="notice">{{_('No %(resource)s have been shared yet for this context.<br><br>Be the first to share with the community!', resource=resource_label )}}
11
                </div>
12
                {%- endif %}
13
                {%- for item in result %}
14
                <li class="resource-list">
15
                    <div class="solution-content-column">
16
                        <img class="watermark" src="/static/icons/button-review.png"/>
17
                        <div class="resource-content">
18
                        {{item['content']}}
19
                        </div>
20
                        <div class='mtime'>
21
                        {{_('by %(author)s on %(date)s', author=item['author'][0], date=item['mtime']|timedelta)}}
22
                        </div>
23
                        <div class="resource-meta">
24
                        {%- for tag in item['tags'] %}
25
                            <span class="tag">{{tag}}</span>
26
                        {%- endfor %}
27
                        </div>
28
                        {%- if item['user'][0]==userid -%}
29
                        <span class="comments-button" 
30
                            onclick='edit_resource("review",
31
                                            "{{item["guid"]}}",
32
                                            "{{item["content"]}}",
33
                                            false)'>
34
                            <img src="/static/icons/toolbar-edit.png">
35
                            </img>
36
                            </span>
37
                        {%- endif -%}
38
                        <span class="comments-button" 
39
                            id="comments-button-{{item['guid']}}" 
40
                            data-guid="{{item['guid']}}">
41
                            <img src="/static/icons/comments.png" />
42
                        </span>
43
                        <img class="resource-throbber" id="throbber_{{item['guid']}}" src="/static/images/throbber4.gif" />
44
                        <div class="comments" id="comments-{{item['guid']}}"></div>
45
                    </div>
46
                    <div class="icon-column">
47
                        {%- if item['author'] %}
48
                        <img src="/static/icons/sugar-xo.png"/>
49
                        {%- endif %}
50
                    </div>
51
                </li>
52
                {%- endfor %}
53
                </ul>