summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-19 18:40:48 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-19 18:40:48 -0400
commit4fd557478736c83cc378262754b1a0bb9682398c (patch)
tree9e8004c154164fc6f05cc7fac58a293ff4c85584 /templates
parentc739eebba3f52d828b8b65e77e2964b1d9d022a9 (diff)
fix folder indentation and counter equals to 0
Diffstat (limited to 'templates')
-rw-r--r--templates/part.feeds.php2
-rw-r--r--templates/part.itemcounter.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index 7d14afe45..3ddbcaab8 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -2,7 +2,7 @@
function print_folder(OC_News_Folder $folder, $depth){
$l = new OC_l10n('news');
- echo '<ul style="margin-left:' . 10*$depth . 'px;"> <li class="folder_list" >' .
+ echo '<ul class="folders"' . (($depth == 0) ? 'style="margin-left: 0px !important;"' : '') .'> <li class="folder_list" >' .
'<div class="collapsable" >' . strtoupper($folder->getName()) .
( ($depth != 0) ? '<button class="svg action" id="feeds_delete" onClick="(News.Folder.delete(' . $folder->getId(). '))" title="' . $l->t('Delete folder') . '"></button>' .
'<button class="svg action" id="feeds_edit" title="' . $l->t('Rename folder') . '"></button>': '' ) .
diff --git a/templates/part.itemcounter.php b/templates/part.itemcounter.php
index aea9a3b37..ad24a991b 100644
--- a/templates/part.itemcounter.php
+++ b/templates/part.itemcounter.php
@@ -9,7 +9,9 @@ function countUnreadItems($feedid) {
if(!$item->isRead())
++$counter;
}
- echo '<span id="unreaditemcounter">' . $counter . '</span>';
+ if ($counter > 0) {
+ echo '<span id="unreaditemcounter">' . $counter . '</span>';
+ }
}
?> \ No newline at end of file