| {#- |
| 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. |
| -#} |
| {% extends g.theme.master %} |
| |
| {% block title %} |
| {{c.project.name}} / {{c.app.config.options.mount_label}} / |
| {{thread.subject and '%s:%s' % (thread.discussion.name, (thread.subject or '(no subject)')) or thread.discussion.name}} |
| {% endblock %} |
| |
| {% block header %}{{'subject' in thread and thread.subject or '(no subject)'}}{% endblock %} |
| |
| {% block actions %} |
| {% if show_moderate and h.has_access(thread, 'moderate')() %} |
| {{ g.icons['edit'].render(id='mod_thread_link') }} |
| {% endif %} |
| {# {{ g.icons['tag'].render(title='Label This', extra_css='thread_tag') }} these labels aren't used anywhere ... #} |
| {{ g.icons['feed'].render(href='feed.rss', title='Follow This', extra_css='thread_feed0') }} |
| {{ c.thread_subscription_form.display(value=thread.subscribed(), action='subscribe', style='icon', thing='thread') }} |
| {% endblock %} |
| |
| {% block edit_box %} |
| <div class="editbox">{{c.thread_header.display(value=thread, page=page, limit=limit, count=count)}}</div> |
| {% endblock %} |
| |
| {% block content %} |
| {{c.thread.display(value=thread, page=page, limit=limit, count=count)}} |
| {% endblock %} |