Skip to content

Commit

Permalink
Added Wiki href to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiWrn committed Aug 9, 2024
1 parent 0a2f3ac commit a0cf6a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions web/template/home.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
</button>
</template>
</article>
{{template "mobile_footer" .VersionTag}}
{{template "mobile_footer" .}}
</section>

<!-- views -->
Expand Down Expand Up @@ -809,7 +809,7 @@
</template>
</article>
</main>
{{template "footer" .VersionTag}}
{{template "footer" .}}
</body>
</html>

Expand Down
4 changes: 2 additions & 2 deletions web/template/login.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</template>
</section>
</main>
{{template "footer" .VersionTag}}
{{template "mobile_footer" .VersionTag}}
{{template "footer" .}}
{{template "mobile_footer" .}}
</body>
</html>
11 changes: 8 additions & 3 deletions web/template/partial/footer.gohtml
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{{define "footer"}}
<footer id="desktop-footer"
{{- /*gotype: github.com/TUM-Dev/gocast/web.IndexData*/ -}}
<footer id="desktop-footer"
class="tum-live-footer justify-between space-x-3 items-center hidden md:flex">
<div class="flex space-x-3">
<a href="/about">About</a>
<a href="/privacy">Data Privacy</a>
<a href="/imprint">Imprint</a>
{{if .WikiURL}}
<a target="_blank" rel="noopener noreferrer" href="{{.WikiURL}}">Wiki</a>
{{end}}
</div>
<a href="https://github.com/TUM-Dev/gocast" class="">gocast@{{.}} <i class="fa-brands fa-github"></i></a>
<a href="https://github.com/TUM-Dev/gocast" class="">gocast@{{.VersionTag}} <i class="fa-brands fa-github"></i></a>
</footer>
{{end}}

{{define "mobile_footer"}}
{{- /*gotype: github.com/TUM-Dev/gocast/web.IndexData*/ -}}
<footer class="tum-live-footer w-full md:hidden">
<div class="grid divide-y dark:divide-gray-800">
<a href="/about">About</a>
<a href="/privacy">Data Privacy</a>
<a href="/imprint">Imprint</a>
</div>
<a href="https://github.com/TUM-Dev/gocast" class="block mt-1 text-center">
gocast@{{.}} <i class="fa-brands fa-github"></i>
gocast@{{.VersionTag}} <i class="fa-brands fa-github"></i>
</a>
</footer>
{{end}}

0 comments on commit a0cf6a3

Please sign in to comment.