aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/webpagelist.tpl
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-08-01 18:40:50 +0100
committerThomas Willingham <founder@kakste.com>2013-08-01 18:40:50 +0100
commitf3791d48b0249bd6e782c1f7968a42888cec28b5 (patch)
tree3e6ce93decd45e582cb61131c9d4c9fa00767448 /view/tpl/webpagelist.tpl
parent2a848c0d3704ac7a4dbce71947c5cb1b362dd749 (diff)
downloadvolse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.tar.gz
volse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.tar.bz2
volse-hubzilla-f3791d48b0249bd6e782c1f7968a42888cec28b5.zip
"Can edit my webpages" permissions
Diffstat (limited to 'view/tpl/webpagelist.tpl')
-rw-r--r--view/tpl/webpagelist.tpl13
1 files changed, 12 insertions, 1 deletions
diff --git a/view/tpl/webpagelist.tpl b/view/tpl/webpagelist.tpl
index 5c00dee6b..d94d78067 100644
--- a/view/tpl/webpagelist.tpl
+++ b/view/tpl/webpagelist.tpl
@@ -1,9 +1,20 @@
+<script type="text/javascript" charset="utf-8">
+ $(document).ready(function(){
+ $("a[rel^='prettyPhoto']").prettyPhoto({theme: 'dark_rounded'});
+ });
+</script>
+
{{if $pages}}
<div id="pagelist-content-wrapper">
{{foreach $pages as $key => $items}}
{{foreach $items as $item}}
- <div class="page-list-item"><a href="editwebpage/{{$item.url}}">{{$editlink}}</a> | <a href="page/{{$channel}}/{{$item.title}}">{{$view}}</a> {{$item.title}}</div>
+ <div class="page-list-item"><a href="{{$baseurl}}/{{$item.url}}">{{$edit}}</a> |
+ <a href="page/{{$channel}}/{{$item.title}}">{{$view}}</a>
+ {{$item.title}} |
+ <a href="page/{{$channel}}/{{$item.title}}?iframe=true&width=80%&height=80%" rel="prettyPhoto[iframes]">Preview</a>
+
+</div>
{{/foreach}}
{{/foreach}}
</div>