mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Move license info the install form, don't show it on app market anymore
This commit is contained in:
parent
01cc551305
commit
da0d86603a
4 changed files with 7 additions and 5 deletions
|
@ -143,8 +143,6 @@
|
||||||
app.maintainedColor = maintainedStateToColor(app.maintained);
|
app.maintainedColor = maintainedStateToColor(app.maintained);
|
||||||
app.installColor = combineColors(app.stateColor, app.levelColor);
|
app.installColor = combineColors(app.stateColor, app.levelColor);
|
||||||
|
|
||||||
app.displayLicense = (app['manifest']['license'] !== undefined
|
|
||||||
&& app['manifest']['license'] !== 'free');
|
|
||||||
app.updateDate = app.lastUpdate * 1000 || 0;
|
app.updateDate = app.lastUpdate * 1000 || 0;
|
||||||
app.isSafe = (app.installColor !== 'danger');
|
app.isSafe = (app.installColor !== 'danger');
|
||||||
app.isWorking = isWorking ? "isworking" : "notFullyWorking";
|
app.isWorking = isWorking ? "isworking" : "notFullyWorking";
|
||||||
|
@ -542,7 +540,8 @@
|
||||||
app.helper('appInstallForm', function(appId, manifest, params) {
|
app.helper('appInstallForm', function(appId, manifest, params) {
|
||||||
var data = {
|
var data = {
|
||||||
id: appId,
|
id: appId,
|
||||||
manifest: manifest
|
manifest: manifest,
|
||||||
|
displayLicense: (manifest['license'] !== undefined && manifest['license'] !== 'free')
|
||||||
};
|
};
|
||||||
|
|
||||||
formatYunoHostStyleArguments(data.manifest.arguments.install, params);
|
formatYunoHostStyleArguments(data.manifest.arguments.install, params);
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
"app_install_cancel": "Installation cancelled.",
|
"app_install_cancel": "Installation cancelled.",
|
||||||
"app_install_custom_no_manifest": "No manifest.json file",
|
"app_install_custom_no_manifest": "No manifest.json file",
|
||||||
"app_list": "App list",
|
"app_list": "App list",
|
||||||
"app_license": "License of the app",
|
|
||||||
"app_level": "App level",
|
"app_level": "App level",
|
||||||
"app_make_default": "Make default",
|
"app_make_default": "Make default",
|
||||||
"app_no_actions": "This application doesn't have any actions",
|
"app_no_actions": "This application doesn't have any actions",
|
||||||
|
@ -192,6 +191,7 @@
|
||||||
"label": "Label",
|
"label": "Label",
|
||||||
"label_for_manifestname": "Label for %s",
|
"label_for_manifestname": "Label for %s",
|
||||||
"level": "level",
|
"level": "level",
|
||||||
|
"license": "License",
|
||||||
"loading": "Loading …",
|
"loading": "Loading …",
|
||||||
"local_archives": "Local archives",
|
"local_archives": "Local archives",
|
||||||
"local_ip": "Local IP",
|
"local_ip": "Local IP",
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
<dd>{{id}}</dd>
|
<dd>{{id}}</dd>
|
||||||
<dt>{{t 'description'}}</dt>
|
<dt>{{t 'description'}}</dt>
|
||||||
<dd>{{description}}</dd>
|
<dd>{{description}}</dd>
|
||||||
|
{{#displayLicense}}
|
||||||
|
<dt>{{t 'license'}}</dt>
|
||||||
|
<dd>{{manifest.license}}</dd>
|
||||||
|
{{/displayLicense}}
|
||||||
<dt>{{t 'version'}}</dt>
|
<dt>{{t 'version'}}</dt>
|
||||||
<dd>{{manifest.version}}</dd>
|
<dd>{{manifest.version}}</dd>
|
||||||
<dt>{{t 'multi_instance'}}</dt>
|
<dt>{{t 'multi_instance'}}</dt>
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
<span class="label label-{{stateColor}} label-as-badge app-state" title="{{t (concat 'app_state_' state '_explanation') }}">{{t (concat 'app_state_' state) }}</span>
|
<span class="label label-{{stateColor}} label-as-badge app-state" title="{{t (concat 'app_state_' state '_explanation') }}">{{t (concat 'app_state_' state) }}</span>
|
||||||
<a target="_BLANK" href="https://yunohost.org/#/packaging_apps_levels"><span class="label label-{{levelColor}} label-as-badge app-level" title="{{t 'app_level'}}">{{t 'level'}} {{levelFormatted}}</span></a>
|
<a target="_BLANK" href="https://yunohost.org/#/packaging_apps_levels"><span class="label label-{{levelColor}} label-as-badge app-level" title="{{t 'app_level'}}">{{t 'level'}} {{levelFormatted}}</span></a>
|
||||||
<span class="label label-{{maintainedColor}} label-as-badge maintained-status" title="{{t (concat maintained '_details') }}"> {{t maintained}}</span>
|
<span class="label label-{{maintainedColor}} label-as-badge maintained-status" title="{{t (concat maintained '_details') }}"> {{t maintained}}</span>
|
||||||
{{#displayLicense}}<span class="label label-default app-license" title="{{t 'app_license'}}">{{license}}</span>{{/displayLicense}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="app-card-desc">{{description}}</div>
|
<div class="app-card-desc">{{description}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue