Skip to content

Commit 633a232

Browse files
authored
Merge pull request #37 from remotemobprogramming/improve-footer
Improve footer
2 parents a09162e + 5070c38 commit 633a232

File tree

8 files changed

+49
-71
lines changed

8 files changed

+49
-71
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,7 @@ dist
162162
.yarn/unplugged
163163
.yarn/build-state.yml
164164
.yarn/install-state.gz
165-
.pnp.*
165+
.pnp.*
166+
167+
# macOS
168+
.DS_STORE
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<footer th:fragment="footer" class="text-center text-muted small mt-5">
2+
<p>
3+
<th:block th:if="${room}">
4+
<a href="#" onclick="enableAudio()" id="audio-interaction">Activate Audio</a>
5+
<span id="audio-speaker" onclick="toggleAudio()"></span>
6+
<a href="#" onclick="testAudio()" id="audio-test">Test Audio</a>
7+
|
8+
</th:block>
9+
<a href="/help">Help</a>
10+
|
11+
<a href="/stats">Stats</a>
12+
|
13+
<a href="https://github.com/remotemobprogramming/timer">View on Github</a>
14+
|
15+
<a href="https://mob.sh">mob.sh</a>
16+
|
17+
<a target="_blank" href="https://www.innoq.com/en/impressum/">Legal Notice</a>
18+
|
19+
<a target="_blank" href="https://www.innoq.com/en/datenschutz/">Privacy</a>
20+
</p>
21+
22+
<p>
23+
Crafted by <a href="https://twitter.com/simonharrer">Dr. Simon Harrer</a> &amp; <a href="https://twitter.com/jochen_christ">Jochen Christ</a>
24+
</p>
25+
<p>
26+
<a href="https://www.innoq.com/" target="_blank">
27+
<picture>
28+
<source srcset="/supported-by-innoq--white.svg" media="(prefers-color-scheme:dark)">
29+
<img class="m-3" style="width: 150px; height: auto;" src="/supported-by-innoq--black.svg">
30+
</picture>
31+
</a>
32+
</p>
33+
</footer>

src/main/resources/templates/help.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,9 @@ <h5>Activate Audio</h5>
7979

8080
</div>
8181

82-
<footer class="text-center text-muted small mt-5">
83-
<p>
84-
<a href="/help">Help</a>
85-
|
86-
<a href="/stats">Stats</a>
87-
|
88-
<a href="https://github.com/remotemobprogramming/timer">View on Github</a>
89-
|
90-
<a href="https://mob.sh">mob.sh</a>
91-
</p>
92-
93-
<p>
94-
Crafted by <a href="https://twitter.com/simonharrer">Dr. Simon Harrer</a> &amp; <a href="https://twitter.com/jochen_christ">Jochen Christ</a>
95-
</p>
96-
</footer>
82+
<footer th:replace="~{fragments/footer}"></footer>
9783

98-
<div th:replace="fragments/github-corner"></div>
84+
<div th:replace="~{fragments/github-corner}"></div>
9985
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
10086
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
10187
</body>

src/main/resources/templates/index.html

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,14 @@
4444

4545
<p id="active-users"></p>
4646
<p id="active-timers"></p>
47-
</main>
48-
<footer class="text-center text-muted small mt-5">
4947
<p>
5048
<a href="https://apps.apple.com/us/app/mob-timer/id1594924856?mt=12&amp;itsct=apps_box_badge&amp;itscg=30200" style="display: inline-block; overflow: hidden; border-top-left-radius: 13px; border-top-right-radius: 13px; border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; width: 175px; height: 58px;"><img src="/appstore.svg" alt="Download on the Mac App Store" style="border-top-left-radius: 13px; border-top-right-radius: 13px; border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; width: 175px; height: 58px;"></a>
5149
</p>
52-
<p>
53-
<a href="/help">Help</a>
54-
|
55-
<a href="/stats">Stats</a>
56-
|
57-
<a href="https://github.com/remotemobprogramming/timer">View on Github</a>
58-
|
59-
<a href="https://mob.sh">mob.sh</a>
60-
</p>
61-
62-
<p>
63-
Crafted by <a href="https://twitter.com/simonharrer">Dr. Simon Harrer</a> &amp; <a href="https://twitter.com/jochen_christ">Jochen Christ</a>
64-
</p>
65-
</footer>
50+
</main>
51+
<footer th:replace="~{fragments/footer}"></footer>
6652
</div>
6753

68-
<div th:replace="fragments/github-corner"></div>
54+
<div th:replace="~{fragments/github-corner}"></div>
6955
<script type="text/javascript">
7056
if ("Notification" in window) {
7157
Notification.requestPermission();

src/main/resources/templates/room.html

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -173,27 +173,9 @@ <h5>Integration with the mob tool</h5>
173173

174174
</main>
175175

176-
<footer class="text-center text-muted small mt-5">
177-
<p>
178-
<a href="#" onclick="enableAudio()" id="audio-interaction">Activate Audio</a>
179-
<span id="audio-speaker" onclick="toggleAudio()"></span>
180-
<a href="#" onclick="testAudio()" id="audio-test">Test Audio</a>
181-
|
182-
<a href="/help">Help</a>
183-
|
184-
<a href="/stats">Stats</a>
185-
|
186-
<a href="https://github.com/remotemobprogramming/timer">View on Github</a>
187-
|
188-
<a href="https://mob.sh">mob.sh</a>
189-
</p>
190-
191-
<p>
192-
Crafted by <a href="https://twitter.com/simonharrer">Dr. Simon Harrer</a> &amp; <a href="https://twitter.com/jochen_christ">Jochen Christ</a>
193-
</p>
194-
</footer>
195-
196-
<div th:replace="fragments/github-corner"></div>
176+
<footer th:replace="~{fragments/footer}"></footer>
177+
178+
<div th:replace="~{fragments/github-corner}"></div>
197179
<script src="/howler.min.js"></script>
198180
<script type="text/javascript">
199181
if ("Notification" in window) {

src/main/resources/templates/stats.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,9 @@ <h2 class="mb-4">Stats</h2>
5757

5858
</div>
5959

60-
<footer class="text-center text-muted small mt-5">
61-
<p>
62-
<a href="/help">Help</a>
63-
|
64-
<a href="/stats">Stats</a>
65-
|
66-
<a href="https://github.com/remotemobprogramming/timer">View on Github</a>
67-
|
68-
<a href="https://mob.sh">mob.sh</a>
69-
</p>
60+
<footer th:replace="~{fragments/footer}"></footer>
7061

71-
<p>
72-
Crafted by <a href="https://twitter.com/simonharrer">Dr. Simon Harrer</a> &amp; <a href="https://twitter.com/jochen_christ">Jochen Christ</a>
73-
</p>
74-
</footer>
75-
76-
<div th:replace="fragments/github-corner"></div>
62+
<div th:replace="~{fragments/github-corner}"></div>
7763
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
7864
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
7965
</body>

0 commit comments

Comments
 (0)