apps.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <script id="categories-template" type="text/x-handlebars-template">
  2. {{#each this}}
  3. <li id="app-category-{{id}}" data-category-id="{{id}}"><a>{{displayName}}</a></li>
  4. {{/each}}
  5. <?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
  6. <li>
  7. <a class="app-external" target="_blank" href="http://apps.owncloud.com/?xsortmode=high"><?php p($l->t('More apps'));?> …</a>
  8. </li>
  9. <li>
  10. <a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your app'));?> …</a>
  11. </li>
  12. <?php endif; ?>
  13. </script>
  14. <script id="app-template" type="text/x-handlebars">
  15. <div class="section" id="app-{{id}}">
  16. {{#if preview}}
  17. <div class="app-image{{#if previewAsIcon}} app-image-icon{{/if}} hidden">
  18. </div>
  19. {{/if}}
  20. <h2 class="app-name"><a href="{{detailpage}}" target="_blank">{{name}}</a></h2>
  21. <div class="app-version"> {{version}}</div>
  22. <div class="app-author"><?php p($l->t('by')); ?> {{author}}
  23. {{#if license}}
  24. ({{license}}-<?php p($l->t('licensed')); ?>)
  25. {{/if}}
  26. </div>
  27. {{#if score}}
  28. <div class="app-score">{{{score}}}</div>
  29. {{/if}}
  30. {{#if internalclass}}
  31. <div class="{{internalclass}} icon-checkmark">{{internallabel}}</div>
  32. {{/if}}
  33. <div class="app-detailpage"></div>
  34. <div class="app-description"><pre>{{description}}</pre></div>
  35. <!--<div class="app-changed">{{changed}}</div>-->
  36. {{#if documentation}}
  37. <p class="documentation">
  38. <?php p($l->t("Documentation:"));?>
  39. {{#if documentation.user}}
  40. <span class="userDocumentation appslink">
  41. <a id='userDocumentation' href='{{documentation.user}}' target="_blank"><?php p($l->t("User Documentation"));?></a>
  42. </span>
  43. {{/if}}
  44. {{#if documentation.admin}}
  45. <span class="adminDocumentation appslink">
  46. <a id='adminDocumentation' href='{{documentation.admin}}' target="_blank"><?php p($l->t("Admin Documentation"));?></a>
  47. </span>
  48. {{/if}}
  49. </p>
  50. {{/if}}
  51. {{#if update}}
  52. <input class="update" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
  53. {{/if}}
  54. {{#if active}}
  55. <input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
  56. <input type="checkbox" class="groups-enable" id="groups_enable-{{id}}"/>
  57. <label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
  58. <br />
  59. <input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
  60. {{else}}
  61. <input class="enable" type="submit" data-appid="{{id}}" data-active="false" value="<?php p($l->t("Enable"));?>"/>
  62. {{/if}}
  63. {{#if canUnInstall}}
  64. <input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" />
  65. {{/if}}
  66. <div class="warning hidden"></div>
  67. </div>
  68. </script>
  69. <div id="app-navigation" class="icon-loading">
  70. <ul id="apps-categories">
  71. </ul>
  72. </div>
  73. <div id="app-content">
  74. <div id="apps-list" class="icon-loading"></div>
  75. </div>