index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
-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; ?> |