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:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
commit6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch)
tree350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/common.editlinks.tpl
initial checkin
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; ?>