summaryrefslogtreecommitdiff
path: root/app/views/commits/show.html.haml
blob: 57ada2df40e73e371cd6804b32be4fd6943ccd8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- 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 @commit.safe_message

.clear
%br

= render "commits/diff"
= render "notes/notes"