2015-03-30 16:58:20 +03:00
|
|
|
<?php
|
|
|
|
style('settings', 'settings');
|
|
|
|
vendor_style(
|
|
|
|
'core',
|
|
|
|
[
|
|
|
|
'select2/select2',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
vendor_script(
|
|
|
|
'core',
|
|
|
|
[
|
|
|
|
'handlebars/handlebars',
|
|
|
|
'select2/select2'
|
|
|
|
]
|
|
|
|
);
|
|
|
|
script(
|
|
|
|
'settings',
|
|
|
|
[
|
|
|
|
'settings',
|
|
|
|
'apps',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
/** @var array $_ */
|
|
|
|
?>
|
2014-08-14 17:48:38 +04:00
|
|
|
<script id="categories-template" type="text/x-handlebars-template">
|
|
|
|
{{#each this}}
|
2015-03-26 12:28:49 +03:00
|
|
|
<li id="app-category-{{id}}" data-category-id="{{id}}" tabindex="0">
|
|
|
|
<a>{{displayName}}</a>
|
|
|
|
</li>
|
2014-08-14 17:48:38 +04:00
|
|
|
{{/each}}
|
2013-01-22 01:18:42 +04:00
|
|
|
|
2014-08-14 17:48:38 +04:00
|
|
|
<?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
|
|
|
|
<li>
|
2014-12-19 17:53:56 +03:00
|
|
|
<a class="app-external" target="_blank" href="https://apps.owncloud.com/?xsortmode=high"><?php p($l->t('More apps'));?> …</a>
|
2014-08-14 17:48:38 +04:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-02-26 12:58:35 +03:00
|
|
|
<a class="app-external" target="_blank" href="https://owncloud.org/dev"><?php p($l->t('Developer documentation'));?> …</a>
|
2014-08-14 17:48:38 +04:00
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
</script>
|
2013-06-11 19:24:47 +04:00
|
|
|
|
2014-08-14 17:48:38 +04:00
|
|
|
<script id="app-template" type="text/x-handlebars">
|
2015-03-30 16:58:20 +03:00
|
|
|
{{#if firstExperimental}}
|
|
|
|
<div style="background-color: lightyellow; border-top:1px solid black; border-bottom: 1px solid black;">
|
|
|
|
<h2><?php p($l->t('Experimental applications ahead')) ?></h2>
|
|
|
|
<p>
|
|
|
|
<?php p($l->t('Experimental apps are not checked for security ' .
|
|
|
|
'issues and are new or known to be unstable and under heavy ' .
|
|
|
|
'development. Installing these can cause data loss or security ' .
|
|
|
|
'breaches.')) ?>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2014-08-14 17:48:38 +04:00
|
|
|
<div class="section" id="app-{{id}}">
|
|
|
|
{{#if preview}}
|
|
|
|
<div class="app-image{{#if previewAsIcon}} app-image-icon{{/if}} hidden">
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<h2 class="app-name"><a href="{{detailpage}}" target="_blank">{{name}}</a></h2>
|
|
|
|
<div class="app-version"> {{version}}</div>
|
2015-03-30 16:58:20 +03:00
|
|
|
<div class="app-level">
|
|
|
|
{{{level}}}
|
|
|
|
</div>
|
2014-08-14 17:48:38 +04:00
|
|
|
<div class="app-author"><?php p($l->t('by')); ?> {{author}}
|
2015-01-06 15:07:17 +03:00
|
|
|
{{#if licence}}
|
|
|
|
({{licence}}-<?php p($l->t('licensed')); ?>)
|
2014-08-14 17:48:38 +04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{#if score}}
|
|
|
|
<div class="app-score">{{{score}}}</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if internalclass}}
|
|
|
|
<div class="{{internalclass}} icon-checkmark">{{internallabel}}</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="app-detailpage"></div>
|
|
|
|
|
2015-03-06 18:28:38 +03: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}}
|
|
|
|
<span class="userDocumentation appslink">
|
|
|
|
<a id='userDocumentation' href='{{documentation.user}}' target="_blank"><?php p($l->t("User Documentation"));?></a>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if documentation.admin}}
|
|
|
|
<span class="adminDocumentation appslink">
|
|
|
|
<a id='adminDocumentation' href='{{documentation.admin}}' target="_blank"><?php p($l->t("Admin Documentation"));?></a>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
2014-08-14 17:48:38 +04:00
|
|
|
{{/if}}
|
2015-03-06 18:28:38 +03:00
|
|
|
</div><!-- end app-description-container -->
|
|
|
|
<div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div>
|
|
|
|
<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div>
|
|
|
|
|
2014-12-02 01:07:16 +03:00
|
|
|
{{#unless canInstall}}
|
2014-12-11 17:24:36 +03: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-02 01:07:16 +03:00
|
|
|
<ul class="missing-dependencies">
|
|
|
|
{{#each missingDependencies}}
|
|
|
|
<li>{{this}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2014-12-11 17:24:36 +03:00
|
|
|
</div>
|
2014-12-02 01:07:16 +03:00
|
|
|
{{/unless}}
|
|
|
|
|
2014-08-14 17:48:38 +04:00
|
|
|
{{#if update}}
|
|
|
|
<input class="update" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
|
|
|
|
{{/if}}
|
|
|
|
{{#if active}}
|
|
|
|
<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
|
|
|
|
<input type="checkbox" class="groups-enable" id="groups_enable-{{id}}"/>
|
|
|
|
<label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
|
2014-06-03 14:48:36 +04:00
|
|
|
<br />
|
2014-09-09 20:00:53 +04:00
|
|
|
<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
|
2014-08-14 17:48:38 +04:00
|
|
|
{{else}}
|
2014-12-11 17:24:36 +03:00
|
|
|
<input class="enable" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>
|
2014-12-02 01:07:16 +03:00
|
|
|
{{/if}}
|
2014-08-14 17: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 21:26:20 +04:00
|
|
|
|
2013-08-18 19:37:22 +04:00
|
|
|
<div class="warning hidden"></div>
|
2014-08-14 17:48:38 +04:00
|
|
|
|
2012-08-05 03:41:55 +04:00
|
|
|
</div>
|
2014-08-14 17:48:38 +04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="app-navigation" class="icon-loading">
|
|
|
|
<ul id="apps-categories">
|
|
|
|
|
|
|
|
</ul>
|
2015-03-30 16:58:20 +03:00
|
|
|
<div id="app-settings">
|
|
|
|
<div id="app-settings-header">
|
|
|
|
<button class="settings-button" data-apps-slide-toggle="#app-settings-content"></button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="app-settings-content" style="color: #c33">
|
|
|
|
<input type="checkbox" id="enable-experimental-apps" <?php if($_['experimentalEnabled']) { print_unescaped('checked="checked"'); }?>>
|
|
|
|
<label for="enable-experimental-apps"><?php p($l->t('Enable experimental apps')) ?></label>
|
|
|
|
<p>
|
|
|
|
<small>
|
|
|
|
<?php p($l->t('Experimental apps are not checked for security ' .
|
|
|
|
'issues and are new or known to be unstable and under heavy ' .
|
|
|
|
'development. Installing these can cause data loss or security ' .
|
|
|
|
'breaches.')) ?>
|
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-14 17:48:38 +04:00
|
|
|
</div>
|
|
|
|
<div id="app-content">
|
|
|
|
<div id="apps-list" class="icon-loading"></div>
|
2015-03-24 12:27:00 +03:00
|
|
|
<div id="apps-list-empty" class="hidden emptycontent">
|
|
|
|
<div class="icon-search"></div>
|
|
|
|
<h2><?php p($l->t('No apps found for your version')) ?></h2>
|
|
|
|
</div>
|
2011-08-10 14:20:43 +04:00
|
|
|
</div>
|