gitlabhq/app/views/projects/_feed.html.haml

80 lines
2.2 KiB
Plaintext
Raw Normal View History

2012-01-04 21:19:41 +01:00
- if update.kind_of?(Note)
%a.project-update.titled{:href => dashboard_feed_path(project, update)}
2012-01-28 00:49:14 +01:00
= image_tag gravatar_icon(update.author_email), :class => "avatar", :width => 32
%div
2012-01-04 21:19:41 +01:00
= dashboard_feed_title(update)
%span.update-author
%strong= update.author_name
= time_ago_in_words(update.created_at)
ago
- noteable = update.target
- if noteable.kind_of?(MergeRequest)
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
Merge Request #
= noteable.id
%span.update-author
%span= noteable.source_branch
→
%span= noteable.target_branch
2011-11-12 15:19:34 +01:00
2012-01-04 21:19:41 +01:00
- elsif noteable.kind_of?(Issue)
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
Issue #
= noteable.id
%span.update-author
.left= truncate noteable.title
- elsif noteable.kind_of?(Commit)
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
commit
%span.update-author
.left= truncate noteable.id
- else
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
Project Wall
- elsif update.kind_of?(MergeRequest)
%a.project-update.titled{:href => project_merge_request_path(project, update)}
2012-01-28 00:49:14 +01:00
= image_tag gravatar_icon(update.author_email), :class => "avatar", :width => 32
%div
2012-01-04 21:19:41 +01:00
Opened merge request
%span.update-author
%strong= update.author_name
= time_ago_in_words(update.created_at)
ago
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
Merge Request #
= update.id
%span.update-author
%span= update.source_branch
→
%span= update.target_branch
- elsif update.kind_of?(Issue)
%a.project-update.titled{:href => dashboard_feed_path(project, update)}
2012-01-28 00:49:14 +01:00
= image_tag gravatar_icon(update.author_email), :class => "avatar", :width => 32
%div
2012-01-04 21:19:41 +01:00
Created new Issue
%span.update-author
%strong= update.author_name
= time_ago_in_words(update.created_at)
ago
.title-block
2012-01-28 00:49:14 +01:00
%div
2012-01-04 21:19:41 +01:00
%span.commit.tag
Issue #
= update.id
%span.update-author
.left= truncate update.title