mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #289 from YunoHost/fix-action-description
[fix] action description
This commit is contained in:
commit
3c234f73df
2 changed files with 7 additions and 4 deletions
|
@ -302,10 +302,11 @@
|
|||
formatYunoHostStyleArguments(action.arguments, c.params);
|
||||
|
||||
// Multilingual description
|
||||
action.description = (typeof action.description[y18n.locale] !== 'undefined') ?
|
||||
action.description[y18n.locale] :
|
||||
action.description['en']
|
||||
;
|
||||
if (action.description && Array.isArray(action.description))
|
||||
action.description = (typeof action.description[y18n.locale] !== 'undefined') ?
|
||||
action.description[y18n.locale] :
|
||||
action.description['en']
|
||||
;
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
<h2 class="panel-title">{{name}}</h2>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{#if description}}
|
||||
<p>{{description}}</p>
|
||||
{{/if}}
|
||||
{{#if arguments}}
|
||||
{{#arguments}}
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Add table
Reference in a new issue