show on API keys page wether api access is allowed
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
13
templates/Sparkle/api_keys/keys_list.tpl
vendored
13
templates/Sparkle/api_keys/keys_list.tpl
vendored
@@ -16,6 +16,15 @@
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<if (int)$userinfo['api_allowed'] != 1>
|
||||
<div class="messagewrapperfull">
|
||||
<div class="warningcontainer bradius">
|
||||
<div class="warningtitle">{$lng['admin']['warning']}</div>
|
||||
<div class="warning">{$lng['usersettings']['api_allowed']['notice']}</div>
|
||||
</div>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<section>
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'index', 'page' => $page))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
@@ -26,10 +35,12 @@
|
||||
{$searchcode}
|
||||
</div>
|
||||
|
||||
<if (int)$userinfo['api_allowed'] == 1>
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<table class="full hl">
|
||||
<thead>
|
||||
@@ -58,11 +69,13 @@
|
||||
</form>
|
||||
|
||||
<if 15 < $count >
|
||||
<if (int)$userinfo['api_allowed'] == 1>
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||
</div>
|
||||
</if>
|
||||
</if>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
|
||||
Reference in New Issue
Block a user