Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
ab189ce6
Commit
ab189ce6
authored
Jan 27, 2021
by
Robert Czechowski
Browse files
Add configuration option for notification messages on the index page
parent
58395420
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
ab189ce6
...
...
@@ -138,6 +138,7 @@ pub fn index<T: MedalConnection>(conn: &T, session_token: Option<String>, login_
fill_oauth_data
(
login_info
,
&
mut
data
);
data
.insert
(
"parent"
.to_string
(),
to_json
(
&
"base"
));
data
.insert
(
"index"
.to_string
(),
to_json
(
&
true
));
Ok
((
"index"
.to_owned
(),
data
))
}
...
...
templates/jwinf/base.hbs
View file @
ab189ce6
...
...
@@ -107,6 +107,18 @@
{{/if}}
{{/if}}
{{#if
config
.
notification
}}
{{#if
index
}}
<div
class=
"columns"
>
<div
class=
"column is-8 is-offset-2"
>
<div
class=
"notification is-info"
>
{{{
config
.
notification
}}}
</div>
</div>
</div>
{{/if}}
{{/if}}
{{~>
page
}}
</div>
<footer
class=
"footer"
style=
"margin-top: 150px;"
>
...
...
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