Commit dfb8d2b7ff5390ad1689fb98c5ddd3b10194f480

Authored by David Pursehouse
1 parent 00d6ac29

Improve status message on merge request page

The status message currently looks like:

  Created on Oct 24, 2013 by John , currently assigned to Bob

There is a space between the author name and the comma, which is
incorrect.  Also, there is no period at the end of the sentence,
which makes it inconsistent with the following line:

  Merged by Bob 5 minutes ago.

Change it to:

  Created on Oct 24, 2013 by John.  Currently assigned to Bob.

Also change the milestone information from:

  and attached to milestone XYZ

to:

  Attached to milestone XYZ.
app/views/projects/merge_requests/show/_mr_box.html.haml
... ... @@ -13,13 +13,14 @@
13 13 .ui-box-body
14 14 %div
15 15 %cite.cgray
16   - Created on #{@merge_request.created_at.stamp("Aug 21, 2011")} by #{link_to_member(@project, @merge_request.author)}
  16 + Created on #{@merge_request.created_at.stamp("Aug 21, 2011")} by #{link_to_member(@project, @merge_request.author)}.
17 17 - if @merge_request.assignee
18   - \, currently assigned to #{link_to_member(@project, @merge_request.assignee)}
  18 + Currently assigned to #{link_to_member(@project, @merge_request.assignee)}.
19 19 - if @merge_request.milestone
20 20 - milestone = @merge_request.milestone
21   - %cite.cgray and attached to milestone
  21 + %cite.cgray Attached to milestone
22 22 %strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
  23 + \.
23 24  
24 25  
25 26 - if @merge_request.description.present?
... ...