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);
|
formatYunoHostStyleArguments(action.arguments, c.params);
|
||||||
|
|
||||||
// Multilingual description
|
// Multilingual description
|
||||||
action.description = (typeof action.description[y18n.locale] !== 'undefined') ?
|
if (action.description && Array.isArray(action.description))
|
||||||
action.description[y18n.locale] :
|
action.description = (typeof action.description[y18n.locale] !== 'undefined') ?
|
||||||
action.description['en']
|
action.description[y18n.locale] :
|
||||||
;
|
action.description['en']
|
||||||
|
;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
<h2 class="panel-title">{{name}}</h2>
|
<h2 class="panel-title">{{name}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
{{#if description}}
|
||||||
<p>{{description}}</p>
|
<p>{{description}}</p>
|
||||||
|
{{/if}}
|
||||||
{{#if arguments}}
|
{{#if arguments}}
|
||||||
{{#arguments}}
|
{{#arguments}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Add table
Reference in a new issue