1
0
Fork 0

Enable cmdable

pull/2/head
Ambrose Chua 2018-03-12 00:35:50 +09:00
parent fe78962db0
commit d878234f77
2 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,7 @@
</main> </main>
</div> </div>
{{> toolbar shellable=shellable}} {{> toolbar shellable=shellable cmdable=cmdable}}
{{> dialogue-upload}} {{> dialogue-upload}}
{{> dialogue-mkdir}} {{> dialogue-mkdir}}

View File

@ -8,11 +8,13 @@
<span class="octicon octicon-file-directory"></span> <span class="octicon octicon-file-directory"></span>
New folder New folder
</a> </a>
{{#if shellable}} {{#if cmdable}}
{{!-- <a class="btn btn-warning" href="@cmd" data-toggle="modal" data-target="#cmd"> <a class="btn btn-warning" href="@cmd" data-toggle="modal" data-target="#cmd">
<span class="octicon octicon-terminal"></span> <span class="octicon octicon-terminal"></span>
Run command Run command
</a> --}} </a>
{{/if}}
{{#if shellable}}
<a class="btn btn-warning" href="@shell"> <a class="btn btn-warning" href="@shell">
<span class="octicon octicon-terminal"></span> <span class="octicon octicon-terminal"></span>
Open shell Open shell