Commit bae084c0 authored by Robert Czechowski's avatar Robert Czechowski

Add link to issue tracker and version number in footer (currently for logged...

Add link to issue tracker and version number in footer (currently for logged in users only). Fixes #111 and #112
parent ce1102f1
Pipeline #764 passed with stages
in 27 minutes and 58 seconds
......@@ -72,6 +72,8 @@ fn fill_user_data(session: &SessionUser, data: &mut json_val::Map<String, serde_
data.insert("teacher".to_string(), to_json(&session.is_teacher));
data.insert("csrf_token".to_string(), to_json(&session.csrf_token));
data.insert("parent".to_string(), to_json(&"base"));
data.insert("medal_version".to_string(), to_json(&env!("CARGO_PKG_VERSION")));
}
fn fill_oauth_data((self_url, oauth_providers): (Option<String>, Option<Vec<OauthProvider>>),
......
......@@ -112,6 +112,10 @@
{{/if}}
</p>
<p>
{{#if medal_version}}
<nobr>Medal v{{medal_version}}</nobr>
&nbsp; &nbsp; · &nbsp; &nbsp;
{{/if}}
<a href="https://git.bwinf.de/bwinf/medal">Quellcode</a>
&nbsp; &nbsp; · &nbsp; &nbsp;
<a href="https://bwinf.de/jugendwettbewerb/datenschutz/">Datenschutz</a>
......@@ -120,8 +124,10 @@
&nbsp; &nbsp; · &nbsp; &nbsp;
<nobr>🖂 <a href="mailto:jugendwettbewerb@bwinf.de">jugendwettbewerb@bwinf.de</a></nobr>
{{#if teacher}}
&nbsp; &nbsp; · &nbsp; &nbsp;
<nobr>☏ 0228 9762 6999</nobr>
&nbsp; &nbsp; · &nbsp; &nbsp;
<nobr>☏ 0228 9762 6999</nobr>
&nbsp; &nbsp; · &nbsp; &nbsp;
<nobr><a href="https://git.bwinf.de/bwinf/medal/-/issues/new">Bug melden</a></nobr>
{{/if}}
</p>
<!-- <p>Diese Wettbewerbsplattform ist freie Software.</p> -->
......
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