fixed some login and booking bugs
This commit is contained in:
@@ -27,10 +27,17 @@
|
||||
<svg class="drawer-nav-icon"><use href="/static/icons.svg#icon-calendar"/></svg>
|
||||
Book
|
||||
</a>
|
||||
{{if .Authenticated}}
|
||||
<a href="/profile" {{if eq .ActivePage "profile"}}class="active"{{end}}>
|
||||
<svg class="drawer-nav-icon"><use href="/static/icons.svg#icon-user"/></svg>
|
||||
Profile
|
||||
</a>
|
||||
{{else}}
|
||||
<a href="{{.OryLoginURL}}">
|
||||
<svg class="drawer-nav-icon"><use href="/static/icons.svg#icon-user"/></svg>
|
||||
Login
|
||||
</a>
|
||||
{{end}}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,7 +65,11 @@
|
||||
<a href="/catalog" {{if eq .ActivePage "catalog"}}class="active"{{end}}>Catalog</a>
|
||||
<a href="/gallery" {{if eq .ActivePage "gallery"}}class="active"{{end}}>Gallery</a>
|
||||
<a href="/booking" {{if eq .ActivePage "booking"}}class="active"{{end}}>Book</a>
|
||||
{{if .Authenticated}}
|
||||
<a href="/profile" {{if eq .ActivePage "profile"}}class="active"{{end}}>Profile</a>
|
||||
{{else}}
|
||||
<a href="{{.OryLoginURL}}" class="btn btn-primary" style="padding: 0.5rem 1rem; text-decoration: none;">Login</a>
|
||||
{{end}}
|
||||
</nav>
|
||||
<button id="themeToggle" class="btn btn-outline" aria-label="Toggle theme">
|
||||
<svg id="sunIcon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
|
||||
|
||||
Reference in New Issue
Block a user