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 {
|
||||||
& + .btn {margin-left: 8px;}
|
& + .btn {margin-left: 8px;margin-right: 8px;}
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
&:extend(.btn all);
|
&:extend(.btn all);
|
||||||
|
|
|
@ -245,6 +245,7 @@
|
||||||
"request_help": "need help",
|
"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!",
|
"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",
|
"restore": "Restore",
|
||||||
|
"restart": "Restart",
|
||||||
"run": "Run",
|
"run": "Run",
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"search_for_apps": "Search for apps...",
|
"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>
|
<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")}}
|
{{#if (eq status "running")}}
|
||||||
<button class="btn btn-sm btn-danger pull-right" data-service="{{name}}" data-action="stop">
|
<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>
|
</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class="btn btn-sm btn-success pull-right" data-service="{{name}}" data-action="start">
|
<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>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue