-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/62 Footer of application (#95)
* Add footer fragment and first couple styling elements * Add styling to footer * get version number from pom.xml --------- Co-authored-by: Nevio Di Gennaro <[email protected]>
- Loading branch information
1 parent
7d930c5
commit 759a993
Showing
9 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
spring.application.name=exam-feedback-tool | ||
server.servlet.session.cookie.same-site=strict | ||
server.error.path=redirect:/error | ||
|
||
spring.application.version[email protected]@ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<footer class="w-100 position-absolute z-1 bottom-0 bg-white"> | ||
<hr class="mt-0"> | ||
<div class="p-3 align-items-center justify-content-between d-flex"> | ||
<a href="https://www.swissuniversities.ch/" target="_blank"> | ||
<img alt="Swissuniversities logo" height="22px" th:src="@{images/swissuniversities.png}"> | ||
</a> | ||
<div class="d-flex justify-content-end gap-4"> | ||
<a class="link-primary" href="https://www.unilu.ch/impressum/" target="_blank">Impressum & Datenschutz</a> | ||
<span th:text="${'Version ' + @environment.getProperty('spring.application.version')}"></span> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
beforeEach(() => { | ||
cy.visit("/"); | ||
}) | ||
|
||
it('should display the right image', () => { | ||
cy.get("footer").find("img") | ||
.should('have.attr', 'src') | ||
.and('include', 'swissuniversities.png'); | ||
}) | ||
|
||
it('should redirect to swissuniversities', () => { | ||
cy.get("footer").find("a").eq(0) | ||
.should('have.attr', 'href') | ||
.and('include', 'https://www.swissuniversities.ch/'); | ||
}); | ||
|
||
it('should redirect to impressum', () => { | ||
cy.get("footer").find("a").eq(1) | ||
.should('have.attr', 'href') | ||
.and('include', 'https://www.unilu.ch/impressum/'); | ||
}); |