summaryrefslogtreecommitdiff
path: root/app/views/commits/_commits.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-09 00:36:38 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-09 00:36:38 +0300
commite98c77857f9f765d1854b92c2dc33049504a596d (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /app/views/commits/_commits.html.haml
parent0f43e98ef8c2da8908b1107f75b67cda2572c2c4 (diff)
downloadgitlab-ce-e98c77857f9f765d1854b92c2dc33049504a596d.tar.gz
init commitv0.9.4
Diffstat (limited to 'app/views/commits/_commits.html.haml')
-rw-r--r--app/views/commits/_commits.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/commits/_commits.html.haml b/app/views/commits/_commits.html.haml
new file mode 100644
index 00000000000..4eebb83aa15
--- /dev/null
+++ b/app/views/commits/_commits.html.haml
@@ -0,0 +1,22 @@
+- @commits.group_by { |c| c.committed_date.to_date }.each do |day, commits|
+ .day-commits-table
+ .day-header
+ %h3= day.stamp("28 Aug, 2010")
+ %ul
+ - commits.each do |commit|
+ %li{ :class => "commit", :url => project_commit_path(@project, :id => commit.id) }
+ - 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
+ %strong
+ = commit.message.length > 60 ? (commit.message[0..59] + "...") : commit.message
+ = link_to "Browse Code", tree_project_path(@project, :commit_id => commit.id), :class => "lite_button", :style => "float:right"
+ = link_to truncate(commit.id.to_s, :length => 16), project_commit_path(@project, :id => commit.id), :class => "lite_button", :style => "width:120px;float:right"
+ %span
+ %span
+ [ #{commit.author} ]
+ = time_ago_in_words(commit.committed_date)
+ ago
+= more_commits_link if @commits.size > 99