differentiate Answer questions page
This commit is contained in:
parent
e18cddae86
commit
ef3f58e999
|
@ -1854,6 +1854,9 @@ msgstr "FAQ \"%s\" löschen"
|
||||||
msgid "question.questions"
|
msgid "question.questions"
|
||||||
msgstr "Fragen"
|
msgstr "Fragen"
|
||||||
|
|
||||||
|
msgid "question.admin"
|
||||||
|
msgstr "Fragen beantworten"
|
||||||
|
|
||||||
msgid "question.faq_link"
|
msgid "question.faq_link"
|
||||||
msgstr "Hast du eine generelle Frage? Vielleicht ist diese schon in den <a href=\"%s\">FAQ</a> beantwortet."
|
msgstr "Hast du eine generelle Frage? Vielleicht ist diese schon in den <a href=\"%s\">FAQ</a> beantwortet."
|
||||||
|
|
||||||
|
|
|
@ -555,6 +555,9 @@ msgstr "Delete FAQ \"%s\""
|
||||||
msgid "question.questions"
|
msgid "question.questions"
|
||||||
msgstr "Questions"
|
msgstr "Questions"
|
||||||
|
|
||||||
|
msgid "question.admin"
|
||||||
|
msgstr "Answer questions"
|
||||||
|
|
||||||
msgid "question.faq_link"
|
msgid "question.faq_link"
|
||||||
msgstr "For general questions, have a look at our <a href=\"%s\">FAQ</a>."
|
msgstr "For general questions, have a look at our <a href=\"%s\">FAQ</a>."
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,24 @@
|
||||||
{% import 'macros/base.twig' as m %}
|
{% import 'macros/base.twig' as m %}
|
||||||
{% import 'macros/form.twig' as f %}
|
{% import 'macros/form.twig' as f %}
|
||||||
|
|
||||||
{% block title %}{{ __('question.questions') }}{% endblock %}
|
{% block title %}
|
||||||
|
{% if is_admin | default(false) %}
|
||||||
|
{{ __('question.admin') }}
|
||||||
|
{% else %}
|
||||||
|
{{ __('question.questions') }}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>
|
<h1>
|
||||||
{{ block('title') }}
|
{{ block('title') }}
|
||||||
{{ m.button(m.icon('plus-lg'), url('/questions/new'), 'secondary') }}
|
{% if is_admin | default(false) %}
|
||||||
|
{{ m.button(m.icon('question-lg'), url('/faq'), 'secondary', null, __('faq.faq')) }}
|
||||||
|
{% else %}
|
||||||
|
{{ m.button(m.icon('plus-lg'), url('/questions/new'), 'secondary') }}
|
||||||
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -21,7 +31,9 @@
|
||||||
{% block questions %}
|
{% block questions %}
|
||||||
{% block faq_text %}
|
{% block faq_text %}
|
||||||
{% if has_permission_to('faq.view') %}
|
{% if has_permission_to('faq.view') %}
|
||||||
<p>{{ __('question.faq_link', [url('/faq')]) | raw }}</p>
|
{% if not is_admin | default(false) %}
|
||||||
|
<p>{{ __('question.faq_link', [url('/faq')]) | raw }}</p>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue