Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Florian Hardy Vogel
cards
Commits
f0cb711c
Commit
f0cb711c
authored
Jun 27, 2018
by
Curtis Adam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the settings files to load the welcome page title
parent
2a526a56
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
2 deletions
+30
-2
imports/ui/main/main.js
imports/ui/main/main.js
+4
-0
imports/ui/welcome/welcome.html
imports/ui/welcome/welcome.html
+2
-2
imports/ui/welcome/welcome.js
imports/ui/welcome/welcome.js
+6
-0
settings.json
settings.json
+6
-0
settings_debug.json
settings_debug.json
+6
-0
settings_review.json
settings_review.json
+6
-0
No files found.
imports/ui/main/main.js
View file @
f0cb711c
...
...
@@ -243,6 +243,10 @@ Template.main.helpers({
}
});
Template
.
main
.
onCreated
(
function
()
{
document
.
title
=
Meteor
.
settings
.
public
.
welcome
.
title
.
first
+
"
.
"
+
Meteor
.
settings
.
public
.
welcome
.
title
.
last
;
});
Template
.
main
.
onRendered
(
function
()
{
Session
.
set
(
"
searchValue
"
,
undefined
);
Meteor
.
call
(
"
initUser
"
);
...
...
imports/ui/welcome/welcome.html
View file @
f0cb711c
...
...
@@ -4,9 +4,9 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<div
class=
"text-center"
>
<span
class=
"color-cards logo-header-chars"
>
informatik
</span>
<span
class=
"color-cards logo-header-chars"
>
{{getFirstTitleWord}}
</span>
<span
class=
"color-dot logo-header-dot"
></span>
<span
class=
"color-cards logo-header-chars"
>
cards
</span>
<span
class=
"color-cards logo-header-chars"
>
{{getLastTitleWord}}
</span>
</div>
<span
id=
"slogan"
>
...
...
imports/ui/welcome/welcome.js
View file @
f0cb711c
...
...
@@ -199,6 +199,12 @@ Template.welcome.helpers({
}
loginButtons
+=
"
</span>
"
;
return
loginButtons
;
},
getFirstTitleWord
:
function
()
{
return
Meteor
.
settings
.
public
.
welcome
.
title
.
first
;
},
getLastTitleWord
:
function
()
{
return
Meteor
.
settings
.
public
.
welcome
.
title
.
last
;
}
});
...
...
settings.json
View file @
f0cb711c
...
...
@@ -20,6 +20,12 @@
"singleUniversity"
:
true
,
"default"
:
"THM"
},
"welcome"
:
{
"title"
:
{
"first"
:
"informatik"
,
"last"
:
"cards"
}
},
"env"
:
"Sandbox"
,
"BT_MERCHANT_ID"
:
"7jspbjz7zk4vkh67"
,
"BT_PUBLIC_KEY"
:
"bf7p9crbdv2359gv"
...
...
settings_debug.json
View file @
f0cb711c
...
...
@@ -21,6 +21,12 @@
"singleUniversity"
:
false
,
"default"
:
"THM"
},
"welcome"
:
{
"title"
:
{
"first"
:
"debug"
,
"last"
:
"cards"
}
},
"env"
:
"Sandbox"
,
"BT_MERCHANT_ID"
:
"7jspbjz7zk4vkh67"
,
"BT_PUBLIC_KEY"
:
"bf7p9crbdv2359gv"
...
...
settings_review.json
View file @
f0cb711c
...
...
@@ -21,6 +21,12 @@
"singleUniversity"
:
false
,
"default"
:
"THM"
},
"welcome"
:
{
"title"
:
{
"first"
:
"review"
,
"last"
:
"cards"
}
},
"env"
:
"Sandbox"
,
"BT_MERCHANT_ID"
:
"7jspbjz7zk4vkh67"
,
"BT_PUBLIC_KEY"
:
"bf7p9crbdv2359gv"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment