| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| {% import 'allura:templates/jinja_master/lib.html' as lib with context %} |
| |
| <div> |
| <div class="row"> |
| <div class="column grid_12"> |
| {% if limit %} |
| {{widgets.page_list.display(limit=limit, page=page, count=count)}} |
| {% endif %} |
| <div id="comment"> |
| {% set posts = value.find_posts(page=page, limit=limit) %} |
| {% if posts %} |
| {% for t in value.create_post_threads(posts) %} |
| <ul> |
| {{widgets.post_thread.display(value=t['post'], children=t['children'], |
| indent=0, show_subject=show_subject, |
| page=page, limit=limit)}} |
| </ul> |
| {% endfor %} |
| {% endif %} |
| {% if h.has_access(value, 'moderate')() %} |
| <div id="allow_moderate"></div> |
| {% endif %} |
| </div> |
| <div style="clear:both"></div> |
| {% if limit and count>limit %} |
| <div> |
| {{widgets.page_list.display(limit=limit, page=page, count=count)}} |
| </div> |
| {% endif %} |
| <div style="clear:both"></div> |
| </div> |
| </div> |
| </div> |
| {% if h.has_access(value, 'post')() %} |
| <div id="new_post_holder"> |
| <span id="add_comment"></span> |
| <div class="row reply"> |
| <div class="grid-2 tcenter"> |
| <p class="gravatar"> |
| {{lib.gravatar(c.user, size=48)}}<br> |
| <small> |
| {{lib.user_link(c.user)}} |
| </small> |
| </p> |
| </div> |
| <div class="grid-17"> |
| {{widgets.edit_post.display(submit_text='Post', action=value.url() + 'post')}} |
| </div> |
| </div> |
| </div> |
| {% endif %} |