summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 16:05:31 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 16:05:31 +0100
commit7af8c6c3cbf00444b81a6d3d0c4cede983ff8edc (patch)
tree7e114ae3b43017a4f765fef7f793aca67b657263 /apps
parentf2f2b8ba3b315365591784dcc1c172625768f241 (diff)
downloadnextcloud-server-7af8c6c3cbf00444b81a6d3d0c4cede983ff8edc.tar.gz
nextcloud-server-7af8c6c3cbf00444b81a6d3d0c4cede983ff8edc.zip
first version of breadcrumb 'root', still have a weird feeling about this
Diffstat (limited to 'apps')
-rw-r--r--apps/files/appinfo/app.php2
-rw-r--r--apps/files/css/files.css4
-rw-r--r--apps/files/templates/part.breadcrumb.php11
3 files changed, 10 insertions, 7 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php
index b431ddfec02..3f437679e05 100644
--- a/apps/files/appinfo/app.php
+++ b/apps/files/appinfo/app.php
@@ -3,6 +3,6 @@ $l=OC_L10N::get('files');
OCP\App::registerAdmin('files', 'admin');
-OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
+OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/files.svg" ), "name" => $l->t("Files") ));
OC_Search::registerProvider('OC_Search_Provider_File');
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index 0b886fc3fa9..64e49d687d3 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -81,10 +81,6 @@ a.action>img { max-height:16px; max-width:16px; vertical-align:text-bottom; }
.selectedActions a { display:inline; margin:-.5em 0; padding:.5em !important; }
.selectedActions a img { position:relative; top:.3em; }
-/* add breadcrumb divider to the File item in navigation panel */
-#navigation>ul>li:first-child { background:url('%webroot%/core/img/breadcrumb-start.svg') no-repeat 12.5em 0px; width:12.5em; padding-right:1em; position:fixed; }
-#navigation>ul>li:first-child+li { padding-top:2.9em; }
#scanning-message{ top:40%; left:40%; position:absolute; display:none; }
-div.crumb a{ padding: 0.9em 0 0.7em 0; }
diff --git a/apps/files/templates/part.breadcrumb.php b/apps/files/templates/part.breadcrumb.php
index 71b695f65f8..37b6b63eabd 100644
--- a/apps/files/templates/part.breadcrumb.php
+++ b/apps/files/templates/part.breadcrumb.php
@@ -1,6 +1,13 @@
+ <?php if(count($_["breadcrumb"])):?>
+ <div class="crumb">
+ <a href="<?php echo $_['baseURL'].urlencode($crumb['dir']); ?>">
+ <img src="<?php echo OCP\image_path('core','places/home.svg');?>" />
+ </a>
+ </div>
+ <?php endif;?>
<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
$crumb = $_["breadcrumb"][$i]; ?>
- <div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo urlencode($crumb["dir"]);?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'>
- <a href="<?php echo $_['baseURL'].urlencode($crumb["dir"]); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
+ <div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo urlencode($crumb["dir"]);?>'>
+ <a href="<?php echo $_['baseURL'].urlencode($crumb['dir']); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
</div>
<?php endfor;?>