Skip to content

Commit

Permalink
HTML cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rnavagamuwa committed Mar 29, 2019
1 parent 0a3e22c commit 8b06110
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 83 deletions.
6 changes: 0 additions & 6 deletions sample/src/main/resources/templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<!--
Source: https://github.com/vdenotaris/spring-boot-security-saml-sample
Copyright 2019 Vincenzo De Notaris
Licensed under the Apache License, Version 2.0 (the "License").
-->

<!doctype html>
<html lang="en" xmlns:th="http:https://www.thymeleaf.org" xmlns:layout="http:https://www.ultraq.net.nz/thymeleaf/layout">

Expand Down
8 changes: 4 additions & 4 deletions sample/src/main/resources/templates/pages/hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
<i class="fas fa-info-circle"></i> Submit Request
</button>

<a th:href="@{/saml/logout}" class="btn btn-spring btn-sm">
<i class="far fa-user-circle"></i> Global logout
<a th:href="@{/}" class="btn btn-spring btn-sm">
<i class="fas fa-home"></i> Landing Page
</a>

<a th:href="@{/saml/logout?local=true}" class="btn btn-spring btn-sm">
<i class="fas fa-sign-out-alt"></i> Local logout
<a th:href="@{/saml/logout}" class="btn btn-spring btn-sm">
<i class="far fa-user-circle"></i> Global logout
</a>


Expand Down
53 changes: 0 additions & 53 deletions sample/src/main/resources/templates/pages/index.html

This file was deleted.

41 changes: 21 additions & 20 deletions sample/src/main/resources/templates/pages/landing.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
<!doctype html>
<html
lang="en"
xmlns:th="http:https://www.thymeleaf.org"
xmlns:layout="http:https://www.ultraq.net.nz/thymeleaf/layout"
xmlns:sec="http:https://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
layout:decorate="~{layout}"
lang="en"
xmlns:th="http:https://www.thymeleaf.org"
xmlns:layout="http:https://www.ultraq.net.nz/thymeleaf/layout"
xmlns:sec="http:https://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
layout:decorate="~{layout}"
>

<body>
<!-- Content starts -->
<section class="my-3 p-3 bg-white rounded box-shadow" layout:fragment="content">
<div class="alert alert-success" role="alert">
<small><strong>You are successfully logged in.<br/>
Your SAML 2.0 authentication process works fine.</strong> </small>
</div>
<p>You are logged as <span class="badge badge-dark" th:text="${username}">null</span>.</p>
<small class="d-block text-right mt-3" id="sso-btn">
<a th:href="@{/saml/logout}" class="btn btn-spring btn-sm">
<i class="far fa-user-circle"></i> Global logout
<!-- Content starts -->
<section class="my-3 p-3 bg-white rounded box-shadow" layout:fragment="content">
<div class="alert alert-success" role="alert">
<small><strong>You are successfully logged in.<br/>
Your SAML 2.0 authentication process works fine.</strong></small>
</div>
<p>You are logged as <span class="badge badge-dark" th:text="${username}">null</span>.</p>
<small class="d-block text-right mt-3" id="sso-btn">
<a th:href="@{/hello}" class="btn btn-spring btn-sm">
<i class="far fa-arrow-alt-circle-right"></i> Hello
</a>
<a th:href="@{/saml/logout?local=true}" class="btn btn-spring btn-sm">
<i class="fas fa-sign-out-alt"></i> Local logout

<a th:href="@{/saml/logout}" class="btn btn-spring btn-sm">
<i class="far fa-user-circle"></i> Global logout
</a>
</small>
</section>
<!-- Content ends -->
</small>
</section>
<!-- Content ends -->
</body>

</html>

0 comments on commit 8b06110

Please sign in to comment.