Merge branch 'affix-assignee' into 'master'
Affix milestone/assignee UI element See merge request !1536
This commit is contained in:
commit
d905a431e8
|
@ -15,3 +15,9 @@ class @Issue
|
|||
"issue"
|
||||
updateTaskState
|
||||
)
|
||||
|
||||
$('.issuable-affix').affix offset:
|
||||
top: ->
|
||||
@top = $('.issue-details').outerHeight(true) + 25
|
||||
bottom: ->
|
||||
@bottom = $('.footer').outerHeight(true)
|
||||
|
|
|
@ -20,6 +20,12 @@ class @MergeRequest
|
|||
if $("a.btn-close").length
|
||||
$("li.task-list-item input:checkbox").prop("disabled", false)
|
||||
|
||||
$('.issuable-affix').affix offset:
|
||||
top: ->
|
||||
@top = $('.merge-request-details').outerHeight(true) + 70
|
||||
bottom: ->
|
||||
@bottom = $('.footer').outerHeight(true)
|
||||
|
||||
# Local jQuery finder
|
||||
$: (selector) ->
|
||||
this.$el.find(selector)
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
@media (max-width: $screen-sm-max) {
|
||||
.issuable-affix {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-md-max) {
|
||||
.issuable-affix {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: $screen-md-max) {
|
||||
.issuable-affix {
|
||||
&.affix-top {
|
||||
position: static;
|
||||
}
|
||||
|
||||
&.affix {
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
width: 220px;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -94,9 +94,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
.issue-show-labels .color-label {
|
||||
.issue-show-labels {
|
||||
a {
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
display: inline-block;
|
||||
.color-label {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
form.edit-issue {
|
||||
margin: 0;
|
||||
|
|
|
@ -95,7 +95,14 @@
|
|||
color: #999;
|
||||
|
||||
.merge-request-labels {
|
||||
a {
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
display: inline-block;
|
||||
.color-label {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
.voting_notes#notes= render "projects/notes/notes_with_form"
|
||||
.col-md-3
|
||||
%div
|
||||
.issuable-affix
|
||||
.clearfix
|
||||
%span.slead.has_tooltip{:"data-original-title" => 'Cross-project reference'}
|
||||
= cross_project_reference(@project, @issue)
|
||||
|
@ -34,4 +34,4 @@
|
|||
.issue-show-labels
|
||||
- @issue.labels.each do |label|
|
||||
= link_to project_issues_path(@project, label_name: label.name) do
|
||||
%p= render_colored_label(label)
|
||||
= render_colored_label(label)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
.issue
|
||||
.issue-details
|
||||
%h4.page-title
|
||||
.issue-box{ class: issue_box_class(@issue) }
|
||||
- if @issue.closed?
|
||||
|
@ -34,4 +36,5 @@
|
|||
= markdown(@issue.description, parse_tasks: true)
|
||||
|
||||
%hr
|
||||
.issue-discussion
|
||||
= render "projects/issues/discussion"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
= render "projects/merge_requests/show/participants"
|
||||
= render "projects/notes/notes_with_form"
|
||||
.col-md-3
|
||||
.issuable-affix
|
||||
.clearfix
|
||||
%span.slead.has_tooltip{:"data-original-title" => 'Cross-project reference'}
|
||||
= cross_project_reference(@project, @merge_request)
|
||||
|
@ -28,4 +29,4 @@
|
|||
.merge-request-show-labels
|
||||
- @merge_request.labels.each do |label|
|
||||
= link_to project_merge_requests_path(@project, label_name: label.name) do
|
||||
%p= render_colored_label(label)
|
||||
= render_colored_label(label)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
.merge-request{'data-url' => project_merge_request_path(@project, @merge_request)}
|
||||
.merge-request-details
|
||||
= render "projects/merge_requests/show/mr_title"
|
||||
%hr
|
||||
= render "projects/merge_requests/show/mr_box"
|
||||
|
|
Loading…
Reference in New Issue