Commit 326001b7 authored by Ivanq's avatar Ivanq

Don't show 'Settings' if user is not admin

parent eaa887b3
......@@ -22,4 +22,8 @@
.tab > img {
vertical-align: bottom;
}
.settings-link {
display: none;
}
\ No newline at end of file
......@@ -55,7 +55,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -55,7 +55,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -53,7 +53,7 @@
<img src="../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../img/settings.svg" width="16">
Settings
</a>
......
......@@ -54,7 +54,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -55,7 +55,7 @@
<img src="../../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -55,7 +55,7 @@
<img src="../../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -21,6 +21,13 @@ function showTabs(level) {
"settings/" +
"?" + address
);
zeroPage.isSignable("merged-GitCenter/" + address + "/content.json")
.then(signable => {
if(signable) {
document.getElementById("settings_link").style.display = "inline-block";
}
});
}
function showTitle(title) {
......
......@@ -55,7 +55,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -54,7 +54,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab">
<a id="settings_link" class="settings-link tab">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
......@@ -54,7 +54,7 @@
<img src="../../img/pr-merged.svg" width="16">
Pull requests
</a>
<a id="settings_link" class="tab tab-current">
<a id="settings_link" class="settings-link tab tab-current">
<img src="../../img/settings.svg" width="16">
Settings
</a>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment