2015-03-30 09:58:20 -04:00
|
|
|
<?php
|
|
|
|
|
style('settings', 'settings');
|
|
|
|
|
vendor_script(
|
|
|
|
|
'core',
|
|
|
|
|
[
|
2016-10-20 12:29:57 -04:00
|
|
|
'handlebars/handlebars'
|
2015-03-30 09:58:20 -04:00
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
script(
|
|
|
|
|
'settings',
|
|
|
|
|
[
|
|
|
|
|
'settings',
|
|
|
|
|
'apps',
|
|
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
/** @var array $_ */
|
|
|
|
|
?>
|
2014-08-14 09:48:38 -04:00
|
|
|
<script id="categories-template" type="text/x-handlebars-template">
|
|
|
|
|
{{#each this}}
|
2015-10-20 06:02:08 -04:00
|
|
|
<li id="app-category-{{ident}}" data-category-id="{{ident}}" tabindex="0">
|
2016-04-19 13:49:31 -04:00
|
|
|
<a href="#">{{displayName}}</a>
|
2015-03-26 05:28:49 -04:00
|
|
|
</li>
|
2014-08-14 09:48:38 -04:00
|
|
|
{{/each}}
|
2013-01-21 16:18:42 -05:00
|
|
|
|
2015-12-02 08:35:38 -05:00
|
|
|
<?php if($_['appstoreEnabled']): ?>
|
2014-08-14 09:48:38 -04:00
|
|
|
<li>
|
2016-07-20 20:15:14 -04:00
|
|
|
<a class="app-external" target="_blank" rel="noreferrer" href="https://docs.nextcloud.org/server/10/developer_manual/"><?php p($l->t('Developer documentation'));?> ↗</a>
|
2014-08-14 09:48:38 -04:00
|
|
|
</li>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</script>
|
2013-06-11 11:24:47 -04:00
|
|
|
|
2014-08-14 09:48:38 -04:00
|
|
|
<script id="app-template" type="text/x-handlebars">
|
|
|
|
|
<div class="section" id="app-{{id}}">
|
|
|
|
|
{{#if preview}}
|
|
|
|
|
<div class="app-image{{#if previewAsIcon}} app-image-icon{{/if}} hidden">
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
2015-05-04 05:35:30 -04:00
|
|
|
<h2 class="app-name">
|
|
|
|
|
{{#if detailpage}}
|
2016-03-20 06:38:14 -04:00
|
|
|
<a href="{{detailpage}}" target="_blank" rel="noreferrer">{{name}}</a>
|
2015-05-04 05:35:30 -04:00
|
|
|
{{else}}
|
|
|
|
|
{{name}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</h2>
|
2014-08-14 09:48:38 -04:00
|
|
|
<div class="app-version"> {{version}}</div>
|
2015-04-03 07:33:27 -04:00
|
|
|
{{#if profilepage}}<a href="{{profilepage}}" target="_blank" rel="noreferrer">{{/if}}
|
2016-01-25 02:44:43 -05:00
|
|
|
<div class="app-author"><?php p($l->t('by %s', ['{{author}}']));?>
|
2015-01-06 07:07:17 -05:00
|
|
|
{{#if licence}}
|
2016-01-25 02:44:43 -05:00
|
|
|
(<?php p($l->t('%s-licensed', ['{{licence}}'])); ?>)
|
2014-08-14 09:48:38 -04:00
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2015-04-03 07:33:27 -04:00
|
|
|
{{#if profilepage}}</a>{{/if}}
|
2015-04-07 05:55:10 -04:00
|
|
|
<div class="app-level">
|
|
|
|
|
{{{level}}}
|
|
|
|
|
</div>
|
2015-04-07 06:27:39 -04:00
|
|
|
{{#if score}}
|
|
|
|
|
<div class="app-score">{{{score}}}</div>
|
|
|
|
|
{{/if}}
|
2014-08-14 09:48:38 -04:00
|
|
|
<div class="app-detailpage"></div>
|
|
|
|
|
|
2015-03-06 10:28:38 -05:00
|
|
|
<div class="app-description-container hidden">
|
|
|
|
|
<div class="app-description"><pre>{{description}}</pre></div>
|
|
|
|
|
<!--<div class="app-changed">{{changed}}</div>-->
|
|
|
|
|
{{#if documentation}}
|
|
|
|
|
<p class="documentation">
|
|
|
|
|
<?php p($l->t("Documentation:"));?>
|
|
|
|
|
{{#if documentation.user}}
|
2015-07-22 08:02:43 -04:00
|
|
|
<span class="userDocumentation">
|
2016-03-20 06:38:14 -04:00
|
|
|
<a id="userDocumentation" class="appslink" href="{{documentation.user}}" target="_blank" rel="noreferrer"><?php p($l->t('User documentation'));?> ↗</a>
|
2015-03-06 10:28:38 -05:00
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if documentation.admin}}
|
2015-07-22 08:02:43 -04:00
|
|
|
<span class="adminDocumentation">
|
2016-03-20 06:38:14 -04:00
|
|
|
<a id="adminDocumentation" class="appslink" href="{{documentation.admin}}" target="_blank" rel="noreferrer"><?php p($l->t('Admin documentation'));?> ↗</a>
|
2015-03-06 10:28:38 -05:00
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2016-06-10 09:15:27 -04:00
|
|
|
|
|
|
|
|
{{#if documentation.developer}}
|
|
|
|
|
<span class="developerDocumentation">
|
|
|
|
|
<a id="developerDocumentation" class="appslink" href="{{documentation.developer}}" target="_blank" rel="noreferrer"><?php p($l->t('Developer documentation'));?> ↗</a>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2015-03-06 10:28:38 -05:00
|
|
|
</p>
|
2014-08-14 09:48:38 -04:00
|
|
|
{{/if}}
|
2016-06-10 09:15:27 -04:00
|
|
|
|
|
|
|
|
{{#if website}}
|
|
|
|
|
<a id="userDocumentation" class="appslink" href="{{website}}" target="_blank" rel="noreferrer"><?php p($l->t('Visit website'));?> ↗</a>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if bugs}}
|
|
|
|
|
<a id="adminDocumentation" class="appslink" href="{{bugs}}" target="_blank" rel="noreferrer"><?php p($l->t('Report a bug'));?> ↗</a>
|
|
|
|
|
{{/if}}
|
2015-03-06 10:28:38 -05:00
|
|
|
</div><!-- end app-description-container -->
|
2016-04-19 13:49:31 -04:00
|
|
|
<div class="app-description-toggle-show" role="link"><?php p($l->t("Show description …"));?></div>
|
|
|
|
|
<div class="app-description-toggle-hide hidden" role="link"><?php p($l->t("Hide description …"));?></div>
|
2015-03-06 10:28:38 -05:00
|
|
|
|
2016-02-16 06:59:24 -05:00
|
|
|
<div class="app-dependencies update hidden">
|
|
|
|
|
<p><?php p($l->t('This app has an update available.')); ?></p>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-01-07 08:55:23 -05:00
|
|
|
{{#if missingMinOwnCloudVersion}}
|
|
|
|
|
<div class="app-dependencies">
|
2016-06-20 04:38:37 -04:00
|
|
|
<p><?php p($l->t('This app has no minimum Nextcloud version assigned. This will be an error in the future.')); ?></p>
|
2016-01-07 08:55:23 -05:00
|
|
|
</div>
|
|
|
|
|
{{else}}
|
|
|
|
|
{{#if missingMaxOwnCloudVersion}}
|
|
|
|
|
<div class="app-dependencies">
|
2016-06-20 04:38:37 -04:00
|
|
|
<p><?php p($l->t('This app has no maximum Nextcloud version assigned. This will be an error in the future.')); ?></p>
|
2016-01-07 08:55:23 -05:00
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2014-12-01 17:07:16 -05:00
|
|
|
{{#unless canInstall}}
|
2014-12-11 09:24:36 -05:00
|
|
|
<div class="app-dependencies">
|
|
|
|
|
<p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p>
|
2014-12-01 17:07:16 -05:00
|
|
|
<ul class="missing-dependencies">
|
|
|
|
|
{{#each missingDependencies}}
|
|
|
|
|
<li>{{this}}</li>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</ul>
|
2014-12-11 09:24:36 -05:00
|
|
|
</div>
|
2014-12-01 17:07:16 -05:00
|
|
|
{{/unless}}
|
|
|
|
|
|
2015-06-10 06:01:54 -04:00
|
|
|
<input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
|
2014-08-14 09:48:38 -04:00
|
|
|
{{#if active}}
|
|
|
|
|
<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
|
2015-10-31 12:02:30 -04:00
|
|
|
<span class="groups-enable">
|
|
|
|
|
<input type="checkbox" class="groups-enable__checkbox checkbox" id="groups_enable-{{id}}"/>
|
|
|
|
|
<label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
|
|
|
|
|
</span>
|
2014-06-03 06:48:36 -04:00
|
|
|
<br />
|
2014-09-09 12:00:53 -04:00
|
|
|
<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
|
2014-08-14 09:48:38 -04:00
|
|
|
{{else}}
|
2016-04-11 10:48:07 -04:00
|
|
|
<input class="enable{{#if needsDownload}} needs-download{{/if}}" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>
|
2014-12-01 17:07:16 -05:00
|
|
|
{{/if}}
|
2014-08-14 09:48:38 -04:00
|
|
|
{{#if canUnInstall}}
|
|
|
|
|
<input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" />
|
|
|
|
|
{{/if}}
|
2014-05-08 13:26:20 -04:00
|
|
|
|
2013-08-18 11:37:22 -04:00
|
|
|
<div class="warning hidden"></div>
|
2014-08-14 09:48:38 -04:00
|
|
|
|
2012-08-04 19:41:55 -04:00
|
|
|
</div>
|
2014-08-14 09:48:38 -04:00
|
|
|
</script>
|
|
|
|
|
|
2015-10-15 10:15:42 -04:00
|
|
|
<div id="app-navigation" class="icon-loading" data-category="<?php p($_['category']);?>">
|
2014-08-14 09:48:38 -04:00
|
|
|
<ul id="apps-categories">
|
|
|
|
|
|
|
|
|
|
</ul>
|
2015-03-30 09:58:20 -04:00
|
|
|
<div id="app-settings">
|
|
|
|
|
<div id="app-settings-header">
|
|
|
|
|
<button class="settings-button" data-apps-slide-toggle="#app-settings-content"></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-08-14 09:48:38 -04:00
|
|
|
</div>
|
|
|
|
|
<div id="app-content">
|
2016-08-18 09:54:19 -04:00
|
|
|
<svg height="0">
|
|
|
|
|
<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
|
|
|
|
</svg>
|
2014-08-14 09:48:38 -04:00
|
|
|
<div id="apps-list" class="icon-loading"></div>
|
2016-03-31 09:26:37 -04:00
|
|
|
<div id="apps-list-empty" class="hidden emptycontent emptycontent-search">
|
2015-03-24 05:27:00 -04:00
|
|
|
<div class="icon-search"></div>
|
|
|
|
|
<h2><?php p($l->t('No apps found for your version')) ?></h2>
|
|
|
|
|
</div>
|
2011-08-10 06:20:43 -04:00
|
|
|
</div>
|