fix: layouts cleanup
This commit is contained in:
parent
4e5c6b4bd8
commit
e3f7a38dba
|
@ -2,6 +2,7 @@ package routes
|
||||||
|
|
||||||
type baseData struct {
|
type baseData struct {
|
||||||
Title string
|
Title string
|
||||||
|
LoggedIn bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type headerData struct {
|
type headerData struct {
|
||||||
|
|
|
@ -269,6 +269,7 @@ func roomPageRoute(
|
||||||
data := pageData{
|
data := pageData{
|
||||||
Base: baseData{
|
Base: baseData{
|
||||||
Title: "room-lala-from-base",
|
Title: "room-lala-from-base",
|
||||||
|
LoggedIn: true,
|
||||||
},
|
},
|
||||||
Content: contentData,
|
Content: contentData,
|
||||||
Header: headerData{
|
Header: headerData{
|
||||||
|
|
|
@ -24,7 +24,9 @@
|
||||||
<a href="https://git.sunshine.industries/efim/some-automoderation">
|
<a href="https://git.sunshine.industries/efim/some-automoderation">
|
||||||
<img src="/static/images/agplv3-with-text-100x42.png" alt="AGPLv3 Free as in Freedom" title="Link to source code of this program, as required by AGPLv3" />
|
<img src="/static/images/agplv3-with-text-100x42.png" alt="AGPLv3 Free as in Freedom" title="Link to source code of this program, as required by AGPLv3" />
|
||||||
</a>
|
</a>
|
||||||
|
{{ if .Base.LoggedIn }}
|
||||||
<a class="bg-white border-2 rounded py-1 px-2 h-8" href="/logout">Logout</a>
|
<a class="bg-white border-2 rounded py-1 px-2 h-8" href="/logout">Logout</a>
|
||||||
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
<!--[if lt IE 8]>
|
<!--[if lt IE 8]>
|
||||||
<p class="browserupgrade">
|
<p class="browserupgrade">
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
>
|
>
|
||||||
</section>
|
</section>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<section class="border">
|
<section class="border grid place-content-center">
|
||||||
<h2>hoho, the session is missing. let's do the auth section</h2>
|
|
||||||
<div class="h-fit w-fit">
|
<div class="h-fit w-fit">
|
||||||
{{ template "loginSection" .LoginSectionData }}
|
{{ template "loginSection" .LoginSectionData }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue