Commit ab189ce6 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Add configuration option for notification messages on the index page

parent 58395420
......@@ -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))
}
......
......@@ -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;">
......
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