summaryrefslogtreecommitdiffstats
path: root/templates/part.listfolder.php
blob: 26763090fae325f3519777f839250b5cc8370271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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>' .
			'<span class="collapsable_title">' .
				$folder->getName() .
			'</span>' .
			( ($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>';