navbar change
This commit is contained in:
parent
d390817934
commit
f23f00231c
|
@ -95,7 +95,6 @@ func registerSubmit(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
||||||
fmt.Printf("%v", errr)
|
|
||||||
if errr.Scan(new(int)) == sql.ErrNoRows {
|
if errr.Scan(new(int)) == sql.ErrNoRows {
|
||||||
registerResp(c, errorMessage{T(c, "key bad.")})
|
registerResp(c, errorMessage{T(c, "key bad.")})
|
||||||
return
|
return
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="ui secondary fixed-height stackable white background main menu no margin bottom{{ if .DisableHH }} dropped{{ end }}" id="navbar">
|
<div class="ui secondary fixed-height stackable white background main menu no margin bottom{{ if .DisableHH }} dropped{{ end }}" id="navbar">
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<b><a href="/" title="{{ .T "Home page" }}"><img class="ripple logo" src="/static/logos/text-{{ if $ds }}white{{ else }}black{{ end }}.png" alt="Ripple"></a></b>
|
<b><a href="/" title="{{ .T "Home page" }}"><img class="ripple logo" src="/static/logos/text-{{ if $ds }}white{{ else }}black{{ end }}.png" alt="Yozora"></a></b>
|
||||||
</div>
|
</div>
|
||||||
{{ if $isRAP }}
|
{{ if $isRAP }}
|
||||||
{{/*
|
{{/*
|
||||||
|
@ -15,17 +15,22 @@
|
||||||
the current RAP's sidebar.
|
the current RAP's sidebar.
|
||||||
*/}}
|
*/}}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
<div class="ui dropdown item">
|
||||||
|
<span> Leaderboards </span>
|
||||||
|
<div class="menu">
|
||||||
{{ navbarItem .Path (.T "Leaderboard") "/leaderboard" }}
|
{{ navbarItem .Path (.T "Leaderboard") "/leaderboard" }}
|
||||||
|
{{ navbarItem .Path (.T "Relax Leaderboard") "/relaxboard" }}
|
||||||
|
{{ navbarItem .Path (.T "Autopilot Leaderboard") "/autoboard" }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ui dropdown item">
|
<div class="ui dropdown item">
|
||||||
<span>{{ .T "Help" }}</span>
|
<span>{{ .T "Help" }}</span>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
{{ navbarItem .Path (.T "About") "/about" }}
|
{{ navbarItem .Path (.T "About") "/about" }}
|
||||||
{{ navbarItem .Path (.T "Rules") "/doc/rules" }}
|
{{ navbarItem .Path (.T "Server switcher") "/static/switcher.exe" }}
|
||||||
{{ navbarItem .Path (.T "Documentation") "/doc" }}
|
|
||||||
{{ navbarItem .Path (.T "Server switcher") "https://mu.nyodev.xyz/upd.php?id=18" }}
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
{{ navbarItem .Path (.T "Chat (Discord)") .Conf.DiscordServer }}
|
{{ navbarItem .Path (.T "Chat (Discord)") .Conf.DiscordServer }}
|
||||||
{{ navbarItem .Path (.T "Contact support") "https://support.ripple.moe" }}
|
{{ navbarItem .Path (.T "Contact support") "/help" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ if .Context.User.Username }}
|
{{ if .Context.User.Username }}
|
||||||
|
@ -37,7 +42,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ navbarItem .Path (.T "Donate" | printf "<i class=\"red heart icon\"></i>%s") "/donate" }}
|
{{ navbarItem .Path (.T "Donate" | printf "<i class=\"red heart icon\"></i>%s") "/donate" }}
|
||||||
{{ if $isAdmin }}{{ navbarItem .Path (.T "RAP" | printf "<b>%s</b>") "https://old.ripple.moe/index.php?p=100" }}{{ end }}
|
{{ if $isAdmin }}{{ navbarItem .Path (.T "RAP" | printf "<b>%s</b>") "https://old.yozora.pw/p/100" }}{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="firetrucking-right-menu">
|
<div class="firetrucking-right-menu">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user