2012-01-17 23:30:54 +00:00
|
|
|
#wiki-history
|
|
|
|
%ul.actions
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.compare_revisions"), "javascript:void(0);",
|
|
|
|
:class => "action-compare-revision"
|
|
|
|
|
2012-01-19 23:04:11 +00:00
|
|
|
= form_tag compare_path(@project, @name), :name => "compare-versions", :id => "version-form" do
|
2012-01-17 23:30:54 +00:00
|
|
|
%fieldset
|
|
|
|
%table
|
|
|
|
%tbody
|
|
|
|
- @versions.each do |v|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
|
|
|
%td.checkbox
|
|
|
|
= check_box_tag "versions[]", v.id
|
|
|
|
%td.author
|
2012-01-29 18:03:42 +00:00
|
|
|
= link_to user_path_by_email(v.author.email) do
|
2012-01-17 23:30:54 +00:00
|
|
|
%img{:src => gravatar_url(v.author.email), :alt => "avatar: #{v.author.name}", :class => "mini-gravatar"}
|
|
|
|
%span.username= v.author.name
|
|
|
|
%td.commit-name
|
2012-01-18 14:33:09 +00:00
|
|
|
%span.time-elapsed= "#{l v.committed_date.to_date, :format => :long}:"
|
2012-01-17 23:30:54 +00:00
|
|
|
|
|
|
|
= v.message
|
2012-01-19 23:04:11 +00:00
|
|
|
- if @name
|
|
|
|
= raw "[#{link_to v.id[0..6], versioned_project_wiki_path(@project, escaped_name, v.id), :title => t("layout.wiki.view_commit")}]"
|
|
|
|
- else
|
|
|
|
= "[#{v.id[0..6]}]"
|
2012-01-17 23:30:54 +00:00
|
|
|
|
|
|
|
#gollum-footer
|
|
|
|
%ul.actions
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.compare_revisions"), "javascript:void(0);", :class => "action-compare-revision"
|
|
|
|
%li.minibutton
|
|
|
|
= link_to t("layout.wiki.back_to_top"), "#wiki", :class => "action-back-to-top"
|