remove App management top bar and move buttons more contextually in the interface

This commit is contained in:
Jan-Christoph Borchardt 2013-06-11 17:24:47 +02:00 committed by Morris Jobke
parent a39ecd5ea9
commit c0568e0443
2 changed files with 17 additions and 6 deletions

View File

@ -61,7 +61,13 @@ select.quota.active { background: #fff; }
/* APPS */ /* APPS */
.appinfo { margin: 1em; } .appinfo { margin: 1em; }
h3 { font-size: 1.4em; font-weight: bold; } h3 { font-size: 1.4em; font-weight: bold; }
ul.applist li { height: 2.2em; padding: 0.2em 0.2em 0.2em 0.8em !important; } ul.applist a {
height: 2.2em;
padding: 0.2em 0.2em 0.2em 0.8em !important;
}
ul.applist .app-external {
width: 100%;
}
li { color:#888; } li { color:#888; }
li.active { color:#000; } li.active { color:#000; }
small.externalapp { color:#FFF; background-color:#BBB; font-weight:bold; font-size: 0.6em; margin: 0; padding: 0.1em 0.2em; border-radius: 4px;} small.externalapp { color:#FFF; background-color:#BBB; font-weight:bold; font-size: 0.6em; margin: 0; padding: 0.1em 0.2em; border-radius: 4px;}

View File

@ -7,11 +7,12 @@
src="<?php print_unescaped(OC_Helper::linkToRoute('apps_custom'));?>?appid=<?php p($_['appid']); ?>"></script> src="<?php print_unescaped(OC_Helper::linkToRoute('apps_custom'));?>?appid=<?php p($_['appid']); ?>"></script>
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('settings/js', 'apps.js'));?>"></script> <script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('settings/js', 'apps.js'));?>"></script>
<div id="controls">
<a class="button" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?></a> <ul id="leftcontent" class="applist">
<a class="button" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?></a> <li>
</div> <a class="app-external" target="_blank" href="http://owncloud.org/dev">+ <?php p($l->t('Add your App'));?></a>
<ul id="leftcontent" class="applist hascontrols"> </li>
<?php foreach($_['apps'] as $app):?> <?php foreach($_['apps'] as $app):?>
<li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>" <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>"
<?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?> <?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?>
@ -22,6 +23,10 @@
print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?> print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
</li> </li>
<?php endforeach;?> <?php endforeach;?>
<li>
<a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
</li>
</ul> </ul>
<div id="rightcontent"> <div id="rightcontent">
<div class="appinfo"> <div class="appinfo">