mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Add a restart button for services
This commit is contained in:
parent
4f47481202
commit
0fc46cc3bb
3 changed files with 7 additions and 3 deletions
|
@ -81,7 +81,7 @@ body {
|
|||
}
|
||||
|
||||
.btn {
|
||||
& + .btn {margin-left: 8px;}
|
||||
& + .btn {margin-left: 8px;margin-right: 8px;}
|
||||
}
|
||||
button {
|
||||
&:extend(.btn all);
|
||||
|
|
|
@ -245,6 +245,7 @@
|
|||
"request_help": "need help",
|
||||
"request_help_details": "The current maintainer would like some help with the maintainance of this app. Feel free to come contribute on it!",
|
||||
"restore": "Restore",
|
||||
"restart": "Restart",
|
||||
"run": "Run",
|
||||
"save": "Save",
|
||||
"search_for_apps": "Search for apps...",
|
||||
|
|
|
@ -12,11 +12,14 @@
|
|||
<h2 class="panel-title" style="display: inline-block; margin-right: 10px;"><span class="fa-fw fa-info-circle"></span> {{name}}</h2>
|
||||
{{#if (eq status "running")}}
|
||||
<button class="btn btn-sm btn-danger pull-right" data-service="{{name}}" data-action="stop">
|
||||
<span class="fa-stop"></span> {{t 'stop'}}
|
||||
<span class="fa-fw fa-warning"></span> {{t 'stop'}}
|
||||
</button>
|
||||
<button class="btn btn-sm btn-warning pull-right" data-service="{{name}}" data-action="restart">
|
||||
<span class="fa-fw fa-refresh"></span> {{t 'restart'}}
|
||||
</button>
|
||||
{{else}}
|
||||
<button class="btn btn-sm btn-success pull-right" data-service="{{name}}" data-action="start">
|
||||
<span class="fa-play"></span> {{t 'start'}}
|
||||
<span class="fa-fw fa-play"></span> {{t 'start'}}
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue