Skip to content
Snippets Groups Projects
Commit 078c5f51 authored by Cédric Willekens's avatar Cédric Willekens
Browse files

Create initial about page

Creates the initial about page and fixes all the routing towards it.
parent 1d06d05b
Branches
No related tags found
No related merge requests found
......@@ -159,6 +159,7 @@ public class SamlWebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/saml/**").permitAll()
.antMatchers("/lab/submit*").permitAll()
.antMatchers("/privacy").permitAll()
.antMatchers("/about").permitAll()
.anyRequest()
.authenticated();
......
......@@ -74,6 +74,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/saml/**").permitAll()
.antMatchers("/lab/submit").permitAll()
.antMatchers("/privacy").permitAll()
.antMatchers("/about").permitAll()
.anyRequest()
.authenticated()
.and()
......
......@@ -58,6 +58,14 @@ public class HomeController {
return "privacy";
}
/**
* @return The path for the about page.
*/
@RequestMapping("/about")
public String aboutPage() {
return "about";
}
/**
* Maps the index/root url to a page. When the user is logged in correctly with an
* AnonymousAuthenticationToken, the user is directed to a dashboard view of the Queue. When the user is
......
<!--
Queue - A Queueing system that can be used to handle labs in higher education
Copyright (C) 2016-2019 Delft University of Technology
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="container">
<head>
</head>
<body>
<section layout:fragment="container">
<div class="page-header">
<h1>About</h1>
</div>
</section>
</body>
</html>
\ No newline at end of file
......@@ -118,7 +118,7 @@
<p>Page content goes here</p>
</th:block>
<footer class="footer mt-md-3">
<footer class="footer mt-md-4">
<div class="container">
<div class="row">
<div class="col-sm">
......@@ -127,6 +127,9 @@
<div class="col-sm">
<a class="text-muted nav-link" th:href="@{/privacy}">Privacy Statement</a>
</div>
<div class="col-sm">
<a class="text-muted nav-link" th:href="@{/about}">About</a>
</div>
<div class="col-sm">
<img src="/img/tudelft-logo.png" class="pull-right" height="50px"/>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment