lib/gitdocs/views/revisions.haml in gitdocs-0.4.13 vs lib/gitdocs/views/revisions.haml in gitdocs-0.4.14
- old
+ new
@@ -8,18 +8,21 @@
%tr
%th Commit
%th Subject
%th Author
%th Committed
+ %th Revert
%tbody
- revisions.each_with_index do |r, i|
%tr
%td.commit
%a{ :href => "?revision=#{r[:commit]}" }
= r[:commit]
%td.subject= r[:subject]
%td.author= r[:author]
%td.date.reldate= r[:date]
-
+ %td.revert
+ %a{ :href => "?mode=revert&revision=#{r[:commit]}", :onclick => "javascript:return confirm('Are you sure?')" }
+ = r[:commit]
- if revisions.empty?
%p No revisions for this file could be found.