gitlabhq/app/views/commits/show.html.haml
Cedric Gatay 443e21ed92 Autolinks to issues in commit message (see #155)
It matches #[0-9]+ in commit messages.
For example
 * Fix for #12
 * Code review for #56
 * Test for #15, Review on #54, Fix for #42

 It only links to valid issues (existing and belonging to the current project)
 It does not add any link to the commit in the issue page, it only consists in parsing the commit message when displayed.

 This can be considere as a primary work for the issue #155 on gitlabhq/gitlabhq.
2011-12-26 21:36:20 +01:00

27 lines
779 B
Plaintext

- content_for(:body_class, "project-page commits-page")
.commit
%span.commit-info
= link_to tree_project_ref_path(@project, @commit.id) do
%data.commit-button
Browse Code
%i
- if @commit.author_email
= image_tag gravatar_icon(@commit.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
- else
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
%span.commit-title
%strong
= truncate(@commit.id.to_s, :length => 60)
%span.commit-author
%strong= @commit.author_name
= @commit.created_at.stamp("Aug 21, 2011 9:23pm")
%hr
%pre.commit_message
= preserve get_commit_message_with_link_to_issues
.clear
%br
= render "commits/diff"
= render "notes/notes"