diff options
Diffstat (limited to 'settings/templates/apps.php')
-rw-r--r-- | settings/templates/apps.php | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 7642ab7fb89..83d63b6b417 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -3,25 +3,31 @@ * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */?> - +<script type='text/javascript'> + var appid = '<?php echo $_['appid']; ?>'; +</script> <div id="controls"> - <a class="button" target="_blank" href="http://owncloud.org/dev/writing-apps/"><?php echo $l->t('Add your App');?></a> + <a class="button" target="_blank" href="http://owncloud.org/dev/apps/getting-started/"><?php echo $l->t('Add your App');?></a> </div> -<ul id="leftcontent"> +<ul id="leftcontent" class="applist"> <?php foreach($_['apps'] as $app):?> - <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"> - <a href="?appid=<?php echo $app['id'] ?>"><?php echo $app['name'] ?></a> + <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>" + data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1"> + <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a> <span class="hidden"> <?php OC_JSON::encodedPrint($app,false) ?> </span> - <?php if(!$app['internal']) echo '<small class="externalapp">3rd party</small>' ?> + <?php if(!$app['internal']) echo '<small class="externalapp list">3rd party</small>' ?> </li> <?php endforeach;?> </ul> <div id="rightcontent"> + <div class="appinfo"> <h3><strong><span class="name"><?php echo $l->t('Select an App');?></span></strong><span class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3> <p class="description"></p> <img src="" class="preview" /> - <p class="hidden"><span class="licence"></span><?php echo $l->t('-licensed');?> <?php echo $l->t('by');?> <span class="author"></span></p> + <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p> + <p class="license hidden"><span class="licence"></span><?php echo $l->t('-licensed');?> <?php echo $l->t('by');?> <span class="author"></span></p> <input class="enable hidden" type="submit" /> + </div> </div> |