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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 20:47:45 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 20:47:45 +0400
commitcd6280f4fe712da9b65a8c62950b71fe93705147 (patch)
tree107c5b784462f350af3b8d88168fa8baa96cf6a6 /app/views/events/_commit.html.haml
parentff4471a3cd1d29228a67e582bc54bed952c0a8ee (diff)
Use data[:commits] hash from event to render push info on dashboard
Diffstat (limited to 'app/views/events/_commit.html.haml')
-rw-r--r--app/views/events/_commit.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/events/_commit.html.haml b/app/views/events/_commit.html.haml
index f2f2d47ef96..2d80fc103f6 100644
--- a/app/views/events/_commit.html.haml
+++ b/app/views/events/_commit.html.haml
@@ -1,7 +1,7 @@
%li.commit
%p
- = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
- %span= commit.author_name
+ = link_to commit[:id][0..8], project_commit_path(project, commit[:id]), class: "commit_short_id"
+ %span= commit[:author][:name]
&ndash;
- = image_tag gravatar_icon(commit.author_email), class: "avatar", width: 16
- = gfm escape_once(truncate(commit.title, length: 50)) rescue "--broken encoding"
+ = image_tag gravatar_icon(commit[:author][:email]), class: "avatar", width: 16
+ = gfm escape_once(truncate(commit[:message], length: 50)) rescue "--broken encoding"