Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/common.editlinks.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CleanFS/templates/common.editlinks.tpl')
-rw-r--r--themes/CleanFS/templates/common.editlinks.tpl15
1 files changed, 15 insertions, 0 deletions
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; ?>