show.html.haml 871 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%div
  %span.entity-info
    - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
      = link_to  edit_project_snippet_path(@project, @snippet) do 
        .entity-button
          Edit Snippet
          %i
  - if @snippet.author_email
    = image_tag gravatar_icon(@snippet.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(@snippet.title, :length => 60)
  %span.commit-author
    %strong= @snippet.author_name
    = @snippet.created_at.stamp("Aug 21, 2011 9:23pm")
gitlabhq's avatar
gitlabhq committed
18

19
%hr
gitlabhq's avatar
gitlabhq committed
20

21
22
23
24
25
26
27
28
29
.view_file
  .view_file_header
    %strong= @snippet.file_name
  .data.no-padding
    :erb
      <%= raw @snippet.colorize %>
.clear
%br
.snippet_notes= render "notes/notes"
gitlabhq's avatar
gitlabhq committed
30

31
.clear