summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/common.links.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CleanFS/templates/common.links.tpl')
-rw-r--r--themes/CleanFS/templates/common.links.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/CleanFS/templates/common.links.tpl b/themes/CleanFS/templates/common.links.tpl
new file mode 100644
index 0000000..146bf67
--- /dev/null
+++ b/themes/CleanFS/templates/common.links.tpl
@@ -0,0 +1,10 @@
+<?php if ($links && $user->can_view_task($task_details)): ?>
+ <div class="links">
+ <?php echo Filters::noXSS(L('referencelinks')); ?><br>
+ <?php foreach ($links as $link): ?>
+ <a href="<?php echo Filters::noXSS($link['url']); ?>"><?php echo Filters::noXSS($link['url']); ?></a><br>
+ <?php endforeach; ?>
+ </div>
+<?php elseif (count($links)): ?>
+ <div class="links"><?php echo Filters::noXSS(L('linknoperms')); ?></div>
+<?php endif; ?>