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 all commits
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
46 changes: 46 additions & 0 deletions inyoka_theme_default/templates/portal/configuration.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{#
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', 'license_note', 'team_icon']) }}

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

<h1>{% trans %}Ikhaya{% endtrans %}</h1>
{{ macros.inner_form(form, ['ikhaya_description', 'planet_description']) }}

<h1>{% trans %}Wiki{% endtrans %}</h1>
{{ macros.inner_form(form, ['wiki_newpage_template', 'wiki_newpage_root',
'wiki_newpage_infopage', 'wiki_edit_note']) }}

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