dyno-bot/Dyno-web-admin/views/commands.hbs
2020-09-12 19:08:48 +01:00

75 lines
2.9 KiB
Handlebars

<div class="page-commands">
<div class="container">
<div class="columns is-centered">
<div class="column is-2 commands-category-selector">
<div class="command-title-container has-text-centered">
<h1 class="is-size-3 has-text-weight-bold">Commands</h1>
<span class="has-text-grey">List of bot commands</span>
</div>
<aside class="menu">
<ul class="menu-list">
{{#each commands}}
<li><a href="#/{{this.name}}"
class="tab-control-legacy{{#if this.isActive}} is-active{{/if}}">{{this.name}}</a></li>
{{/each}}
</ul>
</aside>
<div class="ad-container">
<div id='div-gpt-ad-1559171433538-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1559171433538-0'); });
</script>
</div>
</div>
</div>
<div class="column is-6 commands-table-container">
<div class="top-ad-container" style="display: flex; align-items: center; justify-content: center; height: 90px;">
<div id='div-gpt-ad-1559171339966-0'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1559171339966-0'); });
</script>
</div>
</div>
<script>(function () { if (typeof _bsa !== 'undefined' && _bsa) { _bsa.init('default', 'CKYD4KQU', 'placement:dynobotnet', { target: '.bsa-cpc', align: 'horizontal', disable_css: 'true' }); } })();</script>
{{#each commands}}
<div id="{{this.name}}" class="container tab-content{{#if this.isActive}} is-active{{/if}}">
<div class="columns commands-header-container">
<div class="column is-2 commands-header">Command</div>
<div class="column is-6 commands-header is-hidden-touch">Description</div>
<div class="column is-4 commands-header is-hidden-touch">Usage</div>
</div>
<div class="commands-container columns is-multiline">
{{#each this.commands}}
<div class="commands-line column is-12">
<div class="columns">
<div class="column is-2 has-text-primary">{{this.name}}</div>
<div class="column is-6">{{this.description}}</div>
{{#unlessArray this.usage}}
<div class="column is-4 has-text-grey">?{{this.usage}}</div>
{{/unlessArray}}
{{#ifArray this.usage}}
{{#if this.defaultUsage}}<div class="column is-4 has-text-grey">?{{this.defaultUsage}}
</div>{{/if}}
{{/ifArray}}
</div>
</div>
{{#ifArray this.commands}}
{{#each this.commands}}
<div class="commands-line column is-12">
<div class="columns">
<div class="column is-2 has-text-primary">{{../name}} {{this.name}}</div>
<div class="column is-6">{{this.desc}}</div>
{{#if this.usage}}<div class="column is-4 has-text-grey">?{{../this.name}}
{{this.usage}}</div>{{/if}}
</div>
</div>
{{/each}}
{{/ifArray}}
{{/each}}
</div>
</div>
{{/each}}
</div>
</div>
</div>
</div>