gitlabhq/app/views/snippets/show.html.haml

32 lines
871 B
Plaintext
Raw Normal View History

2011-12-08 00:35:57 +01:00
%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")
2011-10-16 23:07:10 +02:00
2011-12-08 00:35:57 +01:00
%hr
2011-10-16 23:07:10 +02:00
2011-12-08 00:35:57 +01:00
.view_file
.view_file_header
%strong= @snippet.file_name
.data.no-padding
:erb
<%= raw @snippet.colorize %>
.clear
%br
.snippet_notes= render "notes/notes"
2011-10-16 23:07:10 +02:00
2011-12-08 00:35:57 +01:00
.clear