diff --git a/app/templates/list_topics.html b/app/templates/list_topics.html index c8abb7ee..e63f796f 100644 --- a/app/templates/list_topics.html +++ b/app/templates/list_topics.html @@ -34,4 +34,5 @@
{{ _('There are no communities yet.') }}
{% endif -%}{{ _('Explore communities') }}
+ {% endblock -%} diff --git a/app/templates/topic/suggest_topics.html b/app/templates/topic/suggest_topics.html new file mode 100644 index 00000000..ac3e54a4 --- /dev/null +++ b/app/templates/topic/suggest_topics.html @@ -0,0 +1,22 @@ +{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} + {% extends 'themes/' + theme() + '/base.html' %} +{% else %} + {% extends "base.html" %} +{% endif %} %} +{% set active_child = 'suggest_topics' %} +{% from 'bootstrap/form.html' import render_form %} + +{% block app_content %} +{{ _('You have not been using PieFed long enough to be allowed to suggest Topics.') }}
+{current_user.user_name} suggested the new Topic "{tn}", containing the communities: {cft}
' + send_email(sub, send, recip, text_body=text_body, html_body=html_body) + flash(_(f'Thank you for the Topic Suggestion! Your suggestion has been sent to the site administrator(s)')) + return redirect(url_for('main.list_topics')) + else: + return render_template('topic/suggest_topics.html', form=form, title=_('Suggest A Topic!"'), + moderating_communities=moderating_communities(current_user.get_id()), + joined_communities=joined_communities(current_user.get_id()), + menu_topics=menu_topics(), + site=g.site) + +@bp.route('/topic/suggestion-denied', methods=['GET']) +@login_required +def suggestion_denied(): + return render_template('topic/suggestion_denied.html') + def topics_for_form(): topics = Topic.query.filter_by(parent_id=None).order_by(Topic.name).all()