Add dropdown menu for login/signup/irc
Cette révision appartient à :
Parent
d96a35d031
révision
2d6f1837da
2 fichiers modifiés avec 7 ajouts et 6 suppressions
|
@ -1,6 +1,5 @@
|
||||||
{{define "badge_user"}}
|
{{define "badge_user"}}
|
||||||
{{with .User}}
|
{{with .User}}
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
{{if gt .Id 0}}
|
{{if gt .Id 0}}
|
||||||
<a href="{{ genRoute "user_profile" "id" (print .Id) }}" class="dropdown-toggle" data-toggle="dropdown">
|
<a href="{{ genRoute "user_profile" "id" (print .Id) }}" class="dropdown-toggle" data-toggle="dropdown">
|
||||||
|
@ -11,10 +10,13 @@
|
||||||
<li><a href="#soon"><i class="fa fa-sign-out"></i> Sign-out</a></li>
|
<li><a href="#soon"><i class="fa fa-sign-out"></i> Sign-out</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li><a href="{{ genRoute "user_login" }}"><i class="fa fa-sign-out"></i> Sign in</a></li>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Other<span class="caret"></span></a>
|
||||||
<li><a href="{{ genRoute "user_register" }}"><i class="fa fa-cog"></i> Sign Up</a></li>
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="{{ genRoute "user_login" }}"><i class="fa fa-sign-out"></i> Sign in</a></li>
|
||||||
|
<li><a href="{{ genRoute "user_register" }}"><i class="fa fa-cog"></i> Sign Up</a></li>
|
||||||
|
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
|
||||||
|
</ul>
|
||||||
{{end}}
|
{{end}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -44,9 +44,9 @@
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><a href="{{.URL.Parse "/upload"}}">Upload</a/></li>
|
<li><a href="{{.URL.Parse "/upload"}}">Upload</a/></li>
|
||||||
<li><a href="{{.URL.Parse "/faq"}}">FAQ</a></li>
|
<li><a href="{{.URL.Parse "/faq"}}">FAQ</a></li>
|
||||||
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
|
|
||||||
<li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li>
|
<li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li>
|
||||||
<li><a href="https://sukebei.pantsu.cat">Fap</a></li>
|
<li><a href="https://sukebei.pantsu.cat">Fap</a></li>
|
||||||
|
{{block "badge_user" .}}{{end}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<form class="navbar-form navbar-right" role="search" action="/search" method="get">
|
<form class="navbar-form navbar-right" role="search" action="/search" method="get">
|
||||||
|
@ -55,7 +55,6 @@
|
||||||
{{block "search_button" .}}{{end}}
|
{{block "search_button" .}}{{end}}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{{block "badge_user" .}}{{end}}
|
|
||||||
<div class="nightswitch">
|
<div class="nightswitch">
|
||||||
<a href="javascript:toggleNightMode();" ><img id="nighticon" src="/img/moon.png"></a>
|
<a href="javascript:toggleNightMode();" ><img id="nighticon" src="/img/moon.png"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Référencer dans un nouveau ticket