aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-14 20:56:49 -0700
committerfriendica <info@friendica.com>2013-08-14 20:56:49 -0700
commit7d0b1506a8b4e476cdabb33b6cc945b4f4113fff (patch)
tree45ff2b6d3bef287b2ccd98ec35a5ec43b5f70972 /view/tpl
parentac541a7d3246e1c5c60ae752326c1b9ba5ccd78f (diff)
parent608e04c65eb2433a1cece9b5798f8577b611a288 (diff)
downloadvolse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.tar.gz
volse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.tar.bz2
volse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.zip
Merge pull request #96 from beardy-unixer/master
Webpages
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/webpagelist.tpl9
-rw-r--r--view/tpl/write_pages.tpl3
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>