Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
d905a431
Commit
d905a431
authored
Feb 18, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'affix-assignee' into 'master'
Affix milestone/assignee UI element See merge request !1536
parents
19eb8638
896c0462
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
162 additions
and
106 deletions
+162
-106
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+6
-0
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+6
-0
app/assets/stylesheets/sections/issuable.scss
app/assets/stylesheets/sections/issuable.scss
+25
-0
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+9
-2
app/assets/stylesheets/sections/merge_requests.scss
app/assets/stylesheets/sections/merge_requests.scss
+8
-1
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+20
-20
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+36
-33
app/views/projects/merge_requests/_discussion.html.haml
app/views/projects/merge_requests/_discussion.html.haml
+19
-18
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+33
-32
No files found.
app/assets/javascripts/issue.js.coffee
View file @
d905a431
...
@@ -15,3 +15,9 @@ class @Issue
...
@@ -15,3 +15,9 @@ class @Issue
"issue"
"issue"
updateTaskState
updateTaskState
)
)
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
$
(
'.issue-details'
).
outerHeight
(
true
)
+
25
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
app/assets/javascripts/merge_request.js.coffee
View file @
d905a431
...
@@ -20,6 +20,12 @@ class @MergeRequest
...
@@ -20,6 +20,12 @@ class @MergeRequest
if
$
(
"a.btn-close"
).
length
if
$
(
"a.btn-close"
).
length
$
(
"li.task-list-item input:checkbox"
).
prop
(
"disabled"
,
false
)
$
(
"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
# Local jQuery finder
$
:
(
selector
)
->
$
:
(
selector
)
->
this
.
$el
.
find
(
selector
)
this
.
$el
.
find
(
selector
)
...
...
app/assets/stylesheets/sections/issuable.scss
0 → 100644
View file @
d905a431
@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
;
}
}
}
app/assets/stylesheets/sections/issues.scss
View file @
d905a431
...
@@ -94,8 +94,15 @@
...
@@ -94,8 +94,15 @@
}
}
}
}
.issue-show-labels
.color-label
{
.issue-show-labels
{
a
{
margin-right
:
5px
;
margin-bottom
:
5px
;
display
:
inline-block
;
.color-label
{
padding
:
6px
10px
;
padding
:
6px
10px
;
}
}
}
}
form
.edit-issue
{
form
.edit-issue
{
...
...
app/assets/stylesheets/sections/merge_requests.scss
View file @
d905a431
...
@@ -95,7 +95,14 @@
...
@@ -95,7 +95,14 @@
color
:
#999
;
color
:
#999
;
.merge-request-labels
{
.merge-request-labels
{
a
{
margin-right
:
5px
;
margin-bottom
:
5px
;
display
:
inline-block
;
display
:
inline-block
;
.color-label
{
padding
:
6px
10px
;
}
}
}
}
}
}
}
}
...
...
app/views/projects/issues/_discussion.html.haml
View file @
d905a431
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
.col-md-3
.col-md-3
%div
.issuable-affix
.clearfix
.clearfix
%span
.slead.has_tooltip
{
:"data-original-title"
=>
'Cross-project reference'
}
%span
.slead.has_tooltip
{
:"data-original-title"
=>
'Cross-project reference'
}
=
cross_project_reference
(
@project
,
@issue
)
=
cross_project_reference
(
@project
,
@issue
)
...
@@ -34,4 +34,4 @@
...
@@ -34,4 +34,4 @@
.issue-show-labels
.issue-show-labels
-
@issue
.
labels
.
each
do
|
label
|
-
@issue
.
labels
.
each
do
|
label
|
=
link_to
project_issues_path
(
@project
,
label_name:
label
.
name
)
do
=
link_to
project_issues_path
(
@project
,
label_name:
label
.
name
)
do
%p
=
render_colored_label
(
label
)
=
render_colored_label
(
label
)
app/views/projects/issues/show.html.haml
View file @
d905a431
%h4
.page-title
.issue
.issue-details
%h4
.page-title
.issue-box
{
class:
issue_box_class
(
@issue
)
}
.issue-box
{
class:
issue_box_class
(
@issue
)
}
-
if
@issue
.
closed?
-
if
@issue
.
closed?
Closed
Closed
...
@@ -23,15 +25,16 @@
...
@@ -23,15 +25,16 @@
%i
.fa.fa-pencil-square-o
%i
.fa.fa-pencil-square-o
Edit
Edit
%hr
%hr
%h3
.issue-title
%h3
.issue-title
=
gfm
escape_once
(
@issue
.
title
)
=
gfm
escape_once
(
@issue
.
title
)
%div
%div
-
if
@issue
.
description
.
present?
-
if
@issue
.
description
.
present?
.description
.description
.wiki
.wiki
=
preserve
do
=
preserve
do
=
markdown
(
@issue
.
description
,
parse_tasks:
true
)
=
markdown
(
@issue
.
description
,
parse_tasks:
true
)
%hr
%hr
=
render
"projects/issues/discussion"
.issue-discussion
=
render
"projects/issues/discussion"
app/views/projects/merge_requests/_discussion.html.haml
View file @
d905a431
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
=
render
"projects/merge_requests/show/participants"
=
render
"projects/merge_requests/show/participants"
=
render
"projects/notes/notes_with_form"
=
render
"projects/notes/notes_with_form"
.col-md-3
.col-md-3
.issuable-affix
.clearfix
.clearfix
%span
.slead.has_tooltip
{
:"data-original-title"
=>
'Cross-project reference'
}
%span
.slead.has_tooltip
{
:"data-original-title"
=>
'Cross-project reference'
}
=
cross_project_reference
(
@project
,
@merge_request
)
=
cross_project_reference
(
@project
,
@merge_request
)
...
@@ -28,4 +29,4 @@
...
@@ -28,4 +29,4 @@
.merge-request-show-labels
.merge-request-show-labels
-
@merge_request
.
labels
.
each
do
|
label
|
-
@merge_request
.
labels
.
each
do
|
label
|
=
link_to
project_merge_requests_path
(
@project
,
label_name:
label
.
name
)
do
=
link_to
project_merge_requests_path
(
@project
,
label_name:
label
.
name
)
do
%p
=
render_colored_label
(
label
)
=
render_colored_label
(
label
)
app/views/projects/merge_requests/_show.html.haml
View file @
d905a431
.merge-request
{
'data-url'
=>
project_merge_request_path
(
@project
,
@merge_request
)}
.merge-request
{
'data-url'
=>
project_merge_request_path
(
@project
,
@merge_request
)}
.merge-request-details
=
render
"projects/merge_requests/show/mr_title"
=
render
"projects/merge_requests/show/mr_title"
%hr
%hr
=
render
"projects/merge_requests/show/mr_box"
=
render
"projects/merge_requests/show/mr_box"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment