Bootstrap: Activities

This commit is contained in:
Dmitriy Zaporozhets 2012-01-28 16:47:55 +02:00
parent 15b06b0164
commit 0a4222fb98
26 changed files with 324 additions and 365 deletions

View file

@ -1,32 +1,33 @@
%h3
= "Merge Request ##{@merge_request.id}:"
 
%span.label= @merge_request.source_branch
→
%span.label= @merge_request.target_branch
%span.right
- if can?(current_user, :admin_project, @project) || @merge_request.author == current_user
= link_to edit_project_merge_request_path(@project, @merge_request), :class => "btn small" do
Edit Merge Request
%hr
%div
%span.entity-info
- if can?(current_user, :admin_project, @project) || @merge_request.author == current_user
= link_to edit_project_merge_request_path(@project, @merge_request) do
.entity-button
Edit Merge Request
%i
= image_tag gravatar_icon(@merge_request.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
%span.commit-title
%strong
= "Merge Request ##{@merge_request.id}:"
 
.tag.commit.inline= @merge_request.source_branch
→
.tag.commit.inline= @merge_request.target_branch
%span.commit-author
%span.commit-author
%strong
= link_to project_team_member_path(@project, @project.team_member_by_id(@merge_request.author.id)) do
%span.author= @merge_request.author_name
→
= link_to project_team_member_path(@project, @project.team_member_by_id(@merge_request.assignee.id)) do
%span.author= @merge_request.assignee_name
 
 
%br
= @merge_request.created_at.stamp("Aug 21, 2011 9:23pm")
%hr
%div.well= simple_format @merge_request.title
%hr
.clearfix
%div.well= simple_format @merge_request.title
.tabs