Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml49
1 files changed, 46 insertions, 3 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 0fd9c8ead19..b8e660d72f6 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,3 +1,46 @@
-%div
- %div#tree-holder
- = render :partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @commit.tree}
+.span-12
+ %h2 Recent commits
+ %hr
+ - @commits.each do |commit|
+ %div.commit
+ - 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;"
+ %p{:style => "margin-bottom: 3px;"}
+ %strong
+ = link_to truncate_commit_message(commit, 60), project_commit_path(@project, :id => commit.id)
+
+ %span
+ %span
+ [ #{commit.author} ]
+ %cite
+ = time_ago_in_words(commit.committed_date)
+ ago
+ %br
+.span-11
+ %h2 Recent Messages
+ %hr
+ - @messages.group_by{ |x| [x.noteable_id, x.noteable_type]}.each do |item, notes|
+ %h3
+ = noteable_link(item[0], item[1], @project)
+ - notes.each do |note|
+ %div.message
+ .span-2
+  
+ = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
+ %p{:style => "margin-bottom: 3px;"}
+ = link_to truncate(note.note, :length => 50), "#"
+ - if note.attachment.url
+ %br
+ Attachment:
+ = link_to note.attachment_identifier, note.attachment.url
+ %br
+ %span
+ %span
+ [ #{note.author.name} ]
+ %cite
+ = time_ago_in_words(note.created_at)
+ ago
+ %br
+