diff options
Diffstat (limited to 'view/tpl/wiki_page_history.tpl')
-rw-r--r-- | view/tpl/wiki_page_history.tpl | 12 |
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..b124d4cb5 --- /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()"> + <tr><td>Date</td><td>{{$commit.date}}</td><td rowspan="3""> + <button id="revert-{{$commit.hash}}" class="btn btn-warning btn-xs" onclick="wiki_revert_page('{{$commit.hash}}')">Revert</button></td></tr> + <tr><td>Name</td><td>{{$commit.name}}</td></tr> + <tr><td>Message</td><td>{{$commit.title}}</td></tr> + </table> + </td></tr> + {{/foreach}} +</table>
\ No newline at end of file |