navbar change

This commit is contained in:
Alicia 2019-02-23 16:51:12 +00:00
parent d390817934
commit f23f00231c
2 changed files with 12 additions and 8 deletions

View File

@ -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")))
fmt.Printf("%v", errr)
if errr.Scan(new(int)) == sql.ErrNoRows {
registerResp(c, errorMessage{T(c, "key bad.")})
return

View File

@ -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 container">
<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>
{{ if $isRAP }}
{{/*
@ -15,17 +15,22 @@
the current RAP's sidebar.
*/}}
{{ else }}
{{ navbarItem .Path (.T "Leaderboard") "/leaderboard" }}
<div class="ui dropdown item">
<span> Leaderboards </span>
<div class="menu">
{{ navbarItem .Path (.T "Leaderboard") "/leaderboard" }}
{{ navbarItem .Path (.T "Relax Leaderboard") "/relaxboard" }}
{{ navbarItem .Path (.T "Autopilot Leaderboard") "/autoboard" }}
</div>
</div>
<div class="ui dropdown item">
<span>{{ .T "Help" }}</span>
<div class="menu">
{{ navbarItem .Path (.T "About") "/about" }}
{{ navbarItem .Path (.T "Rules") "/doc/rules" }}
{{ navbarItem .Path (.T "Documentation") "/doc" }}
{{ navbarItem .Path (.T "Server switcher") "https://mu.nyodev.xyz/upd.php?id=18" }}
{{ navbarItem .Path (.T "Server switcher") "/static/switcher.exe" }}
<div class="divider"></div>
{{ navbarItem .Path (.T "Chat (Discord)") .Conf.DiscordServer }}
{{ navbarItem .Path (.T "Contact support") "https://support.ripple.moe" }}
{{ navbarItem .Path (.T "Contact support") "/help" }}
</div>
</div>
{{ if .Context.User.Username }}
@ -37,7 +42,7 @@
</div>
{{ end }}
{{ 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 }}
<div class="firetrucking-right-menu">
<div class="item">