{#- 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 %} {% import 'allura:templates/jinja_master/lib.html' as lib with context %} {% block title %}{{c.project.name}} / {{app.config.options.mount_label}} / Admin Forums{% endblock %} {% block header %}{{app.config.options.mount_label}} Admin Forums{% endblock %} {% block content %}
{% for forum in app.forums if not forum.deleted %} {% endfor %}
ForumTopicsPostsLast Post
{{h.really_unicode(forum.name)}} {{lib.text_field('forum-%s.name' % loop.index0, 'Forum Title', h.really_unicode(forum.name))}}
{{h.really_unicode(forum.shortname)}} {{lib.text_field('forum-%s.shortname' % loop.index0, 'Forum Short Name', h.really_unicode(forum.shortname))}}
{% if forum.monitoring_email %}{{h.really_unicode(forum.monitoring_email)}}{% else %}No monitoring email set.{% endif %} {{lib.text_field('forum-%s.monitoring_email' % loop.index0, 'Monitoring Email', h.really_unicode(forum.monitoring_email))}}
{% if forum.members_only %}Only viewable by members{% else %}Viewable by anyone{% endif %}
{% if forum.anon_posts %}Anonymous posting allowed{% else %}Anonymous posting not allowed{% endif %}
{{g.markdown.cached_convert(forum, 'description')}}
{{lib.text_area('forum-%s.description' % loop.index0, 'Description', h.really_unicode(forum.description))}}
{% if forum.subforums %} Subforums: {% for sf in forum.subforums %} {% if loop.index1 != 0 %}, {% endif %} {{sf.name}} {% endfor %} {% endif %}
{{forum.num_topics}} {{forum.num_posts}} {{lib.post_summary(forum.last_post)}}
{{lib.csrf_token()}}
{{c.add_forum.display(method='POST',action='add_forum',app=app, value=c.add_forum)}} {% endblock %} {% block extra_js %} {% endblock %}