aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki_page_history.tpl
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-06-10 20:03:08 +1000
committerGitHub <noreply@github.com>2016-06-10 20:03:08 +1000
commitbeb55235c68feadabe3b647ebe14ae2cab94a2f8 (patch)
tree8a6d552f8658dd64e361e462b78734138624955b /view/tpl/wiki_page_history.tpl
parentcf415a4312f3a926c3b080fb49042752441f23b4 (diff)
parent7a242f829fac2b434726c2bbdca5dbf658404c76 (diff)
downloadvolse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.gz
volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.bz2
volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.zip
Merge pull request #410 from anaqreon/wiki
Wiki module: first iteration
Diffstat (limited to 'view/tpl/wiki_page_history.tpl')
-rw-r--r--view/tpl/wiki_page_history.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/tpl/wiki_page_history.tpl b/view/tpl/wiki_page_history.tpl
new file mode 100644
index 000000000..6ce3ce204
--- /dev/null
+++ b/view/tpl/wiki_page_history.tpl
@@ -0,0 +1,12 @@
+<table class="table-striped table-responsive table-hover" style="width: 100%;">
+ {{foreach $pageHistory as $commit}}
+ <tr><td>
+ <table id="rev-{{$commit.hash}}" onclick="$('#details-{{$commit.hash}}').show()" width="100%">
+ <tr><td width="10%">Date</td><td width="70%">{{$commit.date}}</td><td rowspan="3" width="20%" align="right">
+ <button id="revert-{{$commit.hash}}" class="btn btn-danger btn-xs" onclick="wiki_revert_page('{{$commit.hash}}')">Revert</button></td></tr>
+ <tr><td>Name</td><td>{{$commit.name}} &lt;{{$commit.email}}&gt;</td></tr>
+ <tr><td>Message</td><td>{{$commit.title}}</td></tr>
+ </table>
+ </td></tr>
+ {{/foreach}}
+</table> \ No newline at end of file