Commit 37b02ac9 authored by Curtis Adam's avatar Curtis Adam

Insert another info tab "Hilfe" between "Lernen" and "FAQ"

parent 5eb1abcb
......@@ -40,12 +40,12 @@
"search": "Suche",
"frontend": "Frontend",
"backend": "Backend",
"help": "Hilfe",
"none": "Ohne"
},
"contact": {
"about": "THMcards",
"learning": "Lernen",
"help": "Hilfe",
"faq": "FAQ",
"impressum": "Impressum",
"datenschutz": "Datenschutz",
......
......@@ -48,12 +48,12 @@
"search": "Search",
"frontend": "Front end",
"backend": "Back end",
"help": "Help",
"none": "None"
},
"contact": {
"about": "THMcards",
"learning": "Learning",
"help": "Help",
"faq": "FAQ",
"impressum": "Legal Notice",
"datenschutz": "Data Protection",
......
......@@ -34,6 +34,11 @@ Router.route('learning', {
template: 'contact'
});
Router.route('help', {
name: 'help',
template: 'contact'
});
Router.route('faq', {
name: 'faq',
template: 'contact'
......@@ -294,6 +299,7 @@ Router.onBeforeAction(isSignedIn, {
'about',
'learning',
'faq',
'help',
'impressum',
'agb',
'datenschutz'
......
......@@ -14,6 +14,10 @@
href="{{pathFor
route='learning'}}">{{_
"contact.learning"}}</a></li>
<li class="sm-12 md-2 {{#unless isActiveRoute 'help'}}inactive{{/unless}}"><a id="help"
href="{{pathFor
route='help'}}">{{_
"contact.help"}}</a></li>
<li class="sm-12 md-2 {{#unless isActiveRoute 'faq'}}inactive{{/unless}}"><a id="faq" href="{{pathFor
route='faq'}}">{{_ "contact.faq"}}</a></li>
<li class="sm-12 md-2 {{#unless isActiveRoute 'impressum'}}inactive{{/unless}}"><a id="impressum"
......@@ -36,6 +40,9 @@
{{#if isActiveRoute 'learning'}}
{{> learning}}
{{/if}}
{{#if isActiveRoute 'help'}}
{{> help}}
{{/if}}
{{#if isActiveRoute 'faq'}}
{{> faq}}
{{/if}}
......@@ -213,6 +220,17 @@
</div>
</template>
<template name="help">
<div class="panel panel-default">
<div class="panel-heading">
Hilfe
</div>
<div class="panel-body">
</div>
</div>
</template>
<template name="faq">
<div class="panel panel-default">
<div class="panel-heading">
......
......@@ -80,9 +80,9 @@
<ul class="nav navbar-nav navbar-right">
<li id="helpBtn">
<a href="{{#if isActiveRoute
regex='box|memo'}}/learn{{else}}/about{{/if}}"
target="_blank">{{_ "navbar-collapse.help"}}</a>
<a href="{{pathFor
route='help'}}"
target="_blank">{{_ "contact.help"}}</a>
</li>
{{#if isInRole 'admin, editor'}}
<li id="navbar-adminpanel">
......
......@@ -566,6 +566,7 @@ button:disabled {
border-radius: 0;
margin-bottom: 0;
outline: none;
padding: 10px;
}
#contact .nav-tabs .inactive a {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment