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-02-03 00:04:20 +00:00
|
|
|
- user = User.where(:email => v.author.email).first
|
|
|
|
= link_to user_path_by_user(user) do
|
|
|
|
%img{:src => gravatar_url(v.author.email),
|
|
|
|
:alt => "avatar: #{v.author.name.force_encoding(Encoding.default_internal || Encoding::UTF_8)}",
|
|
|
|
:class => "mini-gravatar"}
|
2012-02-03 00:23:29 +00:00
|
|
|
%span.username= user.present? ? user.uname : v.author.name
|
2012-01-17 23:30:54 +00:00
|
|
|
%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
|
|
|
|
2012-01-31 23:20:42 +00:00
|
|
|
= v.message.force_encoding(Encoding.default_internal)
|
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"
|