31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
#wiki-history
|
|
%ul.actions
|
|
%li.minibutton
|
|
= link_to t("layout.wiki.compare_revisions"), "javascript:void(0);",
|
|
:class => "action-compare-revision"
|
|
|
|
= form_tag compare_project_wiki_path(@project, escaped_name), :name => "compare-versions", :id => "version-form" do
|
|
%fieldset
|
|
%table
|
|
%tbody
|
|
- @versions.each do |v|
|
|
%tr{:class => cycle("odd", "even")}
|
|
%td.checkbox
|
|
= check_box_tag "versions[]", v.id
|
|
%td.author
|
|
= link_to "javascript:void(0)" do
|
|
%img{:src => gravatar_url(v.author.email), :alt => "avatar: #{v.author.name}", :class => "mini-gravatar"}
|
|
%span.username= v.author.name
|
|
%td.commit-name
|
|
%span.time-elapsed= "#{v.committed_date.strftime("%B %d, %Y")}:"
|
|
|
|
= v.message
|
|
= raw "[#{link_to v.id[0..6], versioned_project_wiki_path(@project, escaped_name, v.id), :title => t("layout.wiki.view_commit")}]"
|
|
|
|
#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"
|