Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Add portal/configuration.html #207

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions inyoka_theme_default/templates/portal/configuration.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{#
templates.portal.configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On this page the administrator can set general configuration values.

:copyright: (c) 2013-2017 by the Inyoka Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
#}
{% extends 'portal/base.html' %}

{% block title %}
{% trans %}Configuration{% endtrans %} – {{ super() }}
{% endblock title %}

{% block breadcrumb %}
{{ super() }}

{{ macros.breadcrumb_item(_('Configuration'), href('portal', 'config')) }}
{% endblock %}

{% block content %}
{% call macros.outer_form(csrf_token(), form, manually_rendered=True) %}
<h1>{% trans %}General settings{% endtrans %}</h1>
{{ macros.inner_form(form, ['global_message', 'welcome_message',
'blocked_hosts', 'wiki_newpage_template', 'wiki_newpage_root',
'wiki_newpage_infopage', 'wiki_edit_note', 'license_note',
'ikhaya_description', 'planet_description', 'team_icon']) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you think about grouping the wiki settings ( 'wiki_newpage_template', 'wiki_newpage_root', 'wiki_newpage_infopage', 'wiki_edit_note' ) and the ikhaya ones ( 'ikhaya_description', 'planet_description') into there own sub sections like it is done for the release count down?


{% if team_icon_url %}
<img src="{{ team_icon_url }}"
alt="{% trans %}Preview of Team Icon{% endtrans%}" />
{% endif %}

<h1>Release-Countdown</h1>
{{ macros.inner_form(form, ['countdown_active',
'countdown_target_page',
'countdown_image_url',
'countdown_date']) }}
{% endcall %}
{% endblock %}