diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-30 19:31:09 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-01 00:31:38 +0200 |
commit | be192931ce450ea6c5310bf858517ef391a2a2b3 (patch) | |
tree | 2a2937e9fd72c3d7b1291b3db9bd4e4f4e47993b /templates/part.listfolder.php | |
parent | f19d8f0e1399a7da1beff6df5282a0d8991d1852 (diff) |
merged
Diffstat (limited to 'templates/part.listfolder.php')
-rw-r--r-- | templates/part.listfolder.php | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/templates/part.listfolder.php b/templates/part.listfolder.php index c24d9ae72..0f02198f1 100644 --- a/templates/part.listfolder.php +++ b/templates/part.listfolder.php @@ -1,20 +1,15 @@ <?php $folder = isset($_['folder']) ? $_['folder'] : null; -$is_root = ($folder->getId() == 0); $l = new OC_l10n('news'); -echo '<li class="collapsable_container" data-id="' . $folder->getId() . '"' . (($is_root) ? 'style="margin-left: 0px !important;"' : '') . '>' . - '<div class="collapsable" >' . - '<button class="collapsable_trigger action" title="' . $folder->getName() . '"></button>' . - '<a href="#" class="collapsable_title">' . - $folder->getName() . - '</a>' . - ( ($is_root) ? - '' - : - '<button class="svg action feeds_edit" title="' . $l->t('Rename folder') . '"></button>' . - '<button class="svg action feeds_delete" onClick="(News.Folder.delete(' . $folder->getId(). '))" title="' . $l->t('Delete folder') . '"></button>' ) . - '</div>' . - '<ul>';
\ No newline at end of file +echo '<li class="folder open" data-id="' . $folder->getId() . '">'; + echo '<button class="collapsable_trigger" title="' . $l->t('Collapse') . '"></button>'; + echo '<a href="#" class="title">' . $folder->getName() . '</a>'; + echo '<span class="buttons">'; + echo '<button class="svg action feeds_delete" title="' . $l->t('Delete folder') . '"></button>'; + echo '<button class="svg action feeds_edit" title="' . $l->t('Rename folder') . '"></button>'; + echo '<button class="svg action feeds_markread" title="' . $l->t('Mark all read') . '"></button>'; + echo '</span>'; + echo '<ul data-id="' . $folder->getId() . '">';
\ No newline at end of file |