Add Beatmap Ranking Button to Beatmap Pages
Hello Mr Howl, I love you very much so. If this works, give me a cookie.
thx
Original pull request patch:
From d6fce4410b5ef7025dae90e8e6bdd4b4a1f1bd24 Mon Sep 17 00:00:00 2001
From: MaxKruse <maxkruse1996@gmail.com>
Date: Tue, 31 Jul 2018 09:11:45 +0200
Subject: [PATCH] Add Ranking button to Beatmap Pages
---
templates/beatmap.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/templates/beatmap.html b/templates/beatmap.html
index c7ed5dc..70e0531 100644
--- a/templates/beatmap.html
+++ b/templates/beatmap.html
@@ -49,6 +49,9 @@
{{ if .Beatmapset.HasVideo }}
<a href="http://storage.ripple.moe/d/{{ .Beatmapset.ID }}?novideo" class="ui gray labeled icon button"><i class="download icon"></i>{{ $.T "download (no video)" }}</a>
{{ end }}
+ {{ if $isAdmin }}
+ <a href="https://old.ripple.moe/index.php?p=124&bsid={{ .Beatmapset.ID }}" class="ui gray labeled icon button"><i class="download icon"></i>{{ $.T "Rank in RAP"}}</a>
+ {{ end }}
</div>
</div>
</div>
--
2.20.1