index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/common.editlinks.tpl |
-rw-r--r-- | themes/CleanFS/templates/common.editlinks.tpl | 15 |
diff --git a/themes/CleanFS/templates/common.editlinks.tpl b/themes/CleanFS/templates/common.editlinks.tpl new file mode 100644 index 0000000..395d388 --- /dev/null +++ b/themes/CleanFS/templates/common.editlinks.tpl @@ -0,0 +1,15 @@ +<?php if($links): ?> +<table class="links"> +<thead> + <tr><th><?php echo Filters::noXSS(L('link')); ?></th><th<?php echo $user->perms('delete_attachments') ? '' : ' style="color:#999"'; ?>><?php echo Filters::noXSS(L('delete')); ?></th></tr> +</thead> +<tbody> +<?php foreach ($links as $link): ?> + <tr> + <td><a href="<?php echo Filters::noXSS($link['url']); ?>"><?php echo Filters::noXSS($link['url']); ?></a></td> + <td><input type="checkbox" <?php echo Filters::noXSS(tpl_disableif(!$user->perms('delete_attachments'))); ?> name="delete_link[]" value="<?php echo $link['link_id']; ?>" /></td> + </tr> +<?php endforeach; ?> +</tbody> +</table> +<?php endif; ?> |