diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/webpagelist.tpl | 9 | ||||
-rw-r--r-- | view/tpl/write_pages.tpl | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/view/tpl/webpagelist.tpl b/view/tpl/webpagelist.tpl index f3fe90da5..b09dc9f38 100644 --- a/view/tpl/webpagelist.tpl +++ b/view/tpl/webpagelist.tpl @@ -5,10 +5,11 @@ <div id="pagelist-content-wrapper"> {{foreach $pages as $key => $items}} {{foreach $items as $item}} - <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 class="page-list-item"> + {{if $edit}}<a href="{{$baseurl}}/{{$item.url}}">{{$edit}}</a> | {{/if}} + {{if $view}}<a href="page/{{$channel}}/{{$item.title}}">{{$view}}</a> {{$item.title}} | {{/if}} + {{if $preview}} <a href="page/{{$channel}}/{{$item.title}}?iframe=true&width=80%&height=80%" rel="prettyPhoto[iframes]">Preview</a> {{/if}} + {{if $widget}}<a href="page/{{$channel}}/{{$item.title}}">{{$item.title}}</a>{{/if}} </div> {{/foreach}} diff --git a/view/tpl/write_pages.tpl b/view/tpl/write_pages.tpl new file mode 100644 index 000000000..f6668ceb1 --- /dev/null +++ b/view/tpl/write_pages.tpl @@ -0,0 +1,3 @@ +<div id="write-pages" class="bigwidget"> +<center><span id="wp-new"><a href="{{$newurl}}">{{$new}}</a></span> <span id="wp-edit"><a href="{{$editurl}}">{{$edit}}</a></span></center> +</div> |