Commit 6b0199ff authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'ui-improvements' into 'master'

UI improvements

* lighter color for comments count
* better UI for issue assigee.milestone block

See merge request !1551
parents abc65bbb 675f5954
...@@ -23,3 +23,19 @@ ...@@ -23,3 +23,19 @@
} }
} }
} }
.issuable-context-title {
font-size: 15px;
line-height: 1.4;
margin-bottom: 5px;
.avatar {
margin-left: 0;
}
label {
color: #666;
font-weight: normal;
margin-right: 4px;
}
}
...@@ -171,9 +171,9 @@ form.edit-issue { ...@@ -171,9 +171,9 @@ form.edit-issue {
} }
} }
h3.issue-title { h2.issue-title {
margin-top: 0; margin-top: 0;
font-size: 2em; font-weight: bold;
} }
.context .select2-container { .context .select2-container {
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
color: #999; color: #999;
background: #FFF; background: #FFF;
padding: 5px; padding: 5px;
margin-top: -7px; margin-top: -11px;
border: 1px solid #DDD; border: 1px solid #DDD;
font-size: 13px; font-size: 13px;
} }
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
- note_count = notes.count - note_count = notes.count
- if note_count > 0 - if note_count > 0
%span.label.label-gray %span.light
%i.fa.fa-comment= note_count %i.fa.fa-comments
= note_count
- if commit.description? - if commit.description?
.commit-row-description.js-toggle-content .commit-row-description.js-toggle-content
......
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
.row .row
.col-md-9 .col-md-9
.participants .participants
%cite.cgray %span= pluralize(@issue.participants.count, 'participant')
= pluralize(@issue.participants.count, 'participant')
- @issue.participants.each do |participant| - @issue.participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24) = link_to_member(@project, participant, name: false, size: 24)
...@@ -20,7 +19,6 @@ ...@@ -20,7 +19,6 @@
= cross_project_reference(@project, @issue) = cross_project_reference(@project, @issue)
%hr %hr
.context .context
%cite.cgray
= render partial: 'issue_context', locals: { issue: @issue } = render partial: 'issue_context', locals: { issue: @issue }
%hr %hr
.clearfix .clearfix
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.issue-title .issue-title
%span.str-truncated %span.str-truncated
= link_to_gfm issue.title, project_issue_path(issue.project, issue), class: "row_title" = link_to_gfm issue.title, project_issue_path(issue.project, issue), class: "row_title"
.pull-right .pull-right.light
- if issue.closed? - if issue.closed?
%span %span
CLOSED CLOSED
......
= form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f|
%div.prepend-top-20 %div.prepend-top-20
%p .issuable-context-title
%label
Assignee: Assignee:
- if issue.assignee - if issue.assignee
= link_to_member(@project, @issue.assignee) %strong= link_to_member(@project, @issue.assignee, size: 24)
- else - else
none none
- if can?(current_user, :modify_issue, @issue) - if can?(current_user, :modify_issue, @issue)
= project_users_select_tag('issue[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @issue.assignee_id) = project_users_select_tag('issue[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @issue.assignee_id)
%div.prepend-top-20 %div.prepend-top-20.clearfix
%p .issuable-context-title
%label
Milestone: Milestone:
- if issue.milestone - if issue.milestone
#{link_to @issue.milestone.title, project_milestone_path(@project, @issue.milestone)} %span.back-to-milestone
= link_to project_milestone_path(@project, @issue.milestone) do
%strong
%i.fa.fa-clock-o
= @issue.milestone.title
- else - else
none none
- if can?(current_user, :modify_issue, @issue) - if can?(current_user, :modify_issue, @issue)
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
Edit Edit
%hr %hr
%h3.issue-title %h2.issue-title
= gfm escape_once(@issue.title) = gfm escape_once(@issue.title)
%div %div
- if @issue.description.present? - if @issue.description.present?
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
= cross_project_reference(@project, @merge_request) = cross_project_reference(@project, @merge_request)
%hr %hr
.context .context
%cite.cgray
= render partial: 'projects/merge_requests/show/context', locals: { merge_request: @merge_request } = render partial: 'projects/merge_requests/show/context', locals: { merge_request: @merge_request }
%hr %hr
.votes-holder .votes-holder
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.merge-request-title .merge-request-title
%span.str-truncated %span.str-truncated
= link_to_gfm merge_request.title, project_merge_request_path(merge_request.target_project, merge_request), class: "row_title" = link_to_gfm merge_request.title, project_merge_request_path(merge_request.target_project, merge_request), class: "row_title"
.pull-right .pull-right.light
- if merge_request.merged? - if merge_request.merged?
%span %span
%i.fa.fa-check %i.fa.fa-check
......
= form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f| = form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f|
%div.prepend-top-20 %div.prepend-top-20
%p .issuable-context-title
%label
Assignee: Assignee:
- if @merge_request.assignee - if @merge_request.assignee
= link_to_member(@project, @merge_request.assignee) %strong= link_to_member(@project, @merge_request.assignee, size: 24)
- else - else
none none
.issuable-context-selectbox
- if can?(current_user, :modify_merge_request, @merge_request) - if can?(current_user, :modify_merge_request, @merge_request)
= project_users_select_tag('merge_request[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @merge_request.assignee_id) = project_users_select_tag('merge_request[assignee_id]', placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: @merge_request.assignee_id)
%div.prepend-top-20 %div.prepend-top-20.clearfix
%p .issuable-context-title
%label
Milestone: Milestone:
- if @merge_request.milestone - if @merge_request.milestone
%span.back-to-milestone %span.back-to-milestone
#{link_to @merge_request.milestone.title, project_milestone_path(@project, @merge_request.milestone)} = link_to project_milestone_path(@project, @merge_request.milestone) do
%strong
%i.fa.fa-clock-o
= @merge_request.milestone.title
- else - else
none none
.issuable-context-selectbox
- if can?(current_user, :modify_merge_request, @merge_request) - if can?(current_user, :modify_merge_request, @merge_request)
= f.select(:milestone_id, milestone_options(@merge_request), { include_blank: "Select milestone" }, {class: 'select2 select2-compact js-select2 js-milestone'}) = f.select(:milestone_id, milestone_options(@merge_request), { include_blank: "Select milestone" }, {class: 'select2 select2-compact js-select2 js-milestone'})
= hidden_field_tag :merge_request_context = hidden_field_tag :merge_request_context
......
%h3.issue-title %h2.issue-title
= gfm escape_once(@merge_request.title) = gfm escape_once(@merge_request.title)
%div %div
......
.participants .participants
%cite.cgray #{@merge_request.participants.count} participants %span #{@merge_request.participants.count} participants
- @merge_request.participants.each do |participant| - @merge_request.participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24) = link_to_member(@project, participant, name: false, size: 24)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment