From 8d284bab474c7e669ae9a639bdb22f7b28b95cc3 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Mon, 30 May 2016 20:59:54 -0400 Subject: Created page history widget to dynamically fetch and display the git commit history for wiki pages. --- view/tpl/wiki_page_history.tpl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 view/tpl/wiki_page_history.tpl (limited to 'view/tpl/wiki_page_history.tpl') diff --git a/view/tpl/wiki_page_history.tpl b/view/tpl/wiki_page_history.tpl new file mode 100644 index 000000000..7efc4aa96 --- /dev/null +++ b/view/tpl/wiki_page_history.tpl @@ -0,0 +1,11 @@ + + {{foreach $pageHistory as $commit}} + + {{/foreach}} +
+ + + + +
Date{{$commit.date}}
Name{{$commit.name}}
Message{{$commit.title}}
+
\ No newline at end of file -- cgit v1.2.3 From 0a3fbdd128dd3b80868c93cb93901b501edf576c Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 5 Jun 2016 16:32:03 -0400 Subject: Basic page reversion implemented. The revert button on the history view replaces the editor text but does not save the page. --- view/tpl/wiki_page_history.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'view/tpl/wiki_page_history.tpl') diff --git a/view/tpl/wiki_page_history.tpl b/view/tpl/wiki_page_history.tpl index 7efc4aa96..b124d4cb5 100644 --- a/view/tpl/wiki_page_history.tpl +++ b/view/tpl/wiki_page_history.tpl @@ -1,8 +1,9 @@ {{foreach $pageHistory as $commit}}
- - +
Date{{$commit.date}}
+
Date{{$commit.date}} +
Name{{$commit.name}}
Message{{$commit.title}}
-- cgit v1.2.3 From b8b50bdb5abb5403f3f8a8662b7db0703b39073b Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 5 Jun 2016 20:30:45 -0400 Subject: Custom commit message available. Improved history viewer and feedback from revert buttons. --- view/tpl/wiki_page_history.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view/tpl/wiki_page_history.tpl') diff --git a/view/tpl/wiki_page_history.tpl b/view/tpl/wiki_page_history.tpl index b124d4cb5..6ce3ce204 100644 --- a/view/tpl/wiki_page_history.tpl +++ b/view/tpl/wiki_page_history.tpl @@ -1,10 +1,10 @@ {{foreach $pageHistory as $commit}} -- cgit v1.2.3
- - - +
Date{{$commit.date}} -
Name{{$commit.name}}
+ +
Date{{$commit.date}} +
Name{{$commit.name}} <{{$commit.email}}>
Message{{$commit.title}}