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
b0591ff0
Commit
b0591ff0
authored
Dec 10, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign issue page for new sidebar
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
76ff8eac
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
198 deletions
+97
-198
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+59
-93
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+2
-21
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+30
-21
app/views/projects/issues/update.js.haml
app/views/projects/issues/update.js.haml
+2
-2
app/views/shared/issuable/_context.html.haml
app/views/shared/issuable/_context.html.haml
+0
-57
app/views/shared/issuable/_participants.html.haml
app/views/shared/issuable/_participants.html.haml
+4
-4
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
b0591ff0
...
@@ -24,20 +24,6 @@
...
@@ -24,20 +24,6 @@
}
}
}
}
.issuable-context-title
{
margin-bottom
:
5px
;
.avatar
{
margin-left
:
0
;
}
label
{
color
:
$gl-gray
;
font-weight
:
normal
;
margin-right
:
4px
;
}
}
.project-issuable-filter
{
.project-issuable-filter
{
.controls
{
.controls
{
float
:
right
;
float
:
right
;
...
@@ -50,23 +36,6 @@
...
@@ -50,23 +36,6 @@
}
}
.issuable-details
{
.issuable-details
{
.page-title
{
margin-top
:
-
$gl-padding
;
padding
:
7px
0
;
margin-bottom
:
0
;
color
:
#5c5d5e
;
font-size
:
16px
;
line-height
:
42px
;
.author
{
color
:
#5c5d5e
;
}
.issue-id
{
color
:
#5c5d5e
;
}
}
.issue-title
{
.issue-title
{
margin
:
0
;
margin
:
0
;
font-size
:
23px
;
font-size
:
23px
;
...
@@ -80,6 +49,20 @@
...
@@ -80,6 +49,20 @@
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
}
}
section
{
border-right
:
1px
solid
#ECEEF1
;
>
.tab-content
{
margin-right
:
1px
;
}
>
.gray-content-block
{
margin-top
:
0
;
border-top
:
none
;
margin-right
:
-15px
;
}
}
}
}
.issuable-filter-count
{
.issuable-filter-count
{
...
@@ -101,84 +84,67 @@
...
@@ -101,84 +84,67 @@
}
}
}
}
.cross-project-reference
{
.issuable-sidebar
{
text-align
:
center
;
.block
{
width
:
100%
;
@include
clearfix
;
padding
:
$gl-padding
0
;
border-bottom
:
1px
solid
#F0F0F0
;
.slead
{
&
:last-child
{
padding
:
5px
;
border
:
none
;
}
}
span
,
button
{
background-color
:
$background-color
;
}
}
}
.awards
{
@include
clearfix
;
line-height
:
34px
;
margin
:
2px
0
;
.award
{
@include
border-radius
(
5px
);
border
:
1px
solid
;
.title
{
padding
:
0px
10px
;
color
:
$gl-text-color
;
float
:
left
;
margin-bottom
:
8px
;
margin
:
0
5px
;
border-color
:
$border-color
;
cursor
:
pointer
;
&
.active
{
.avatar
{
border-color
:
$border-gray-light
;
margin-left
:
0
;
background-color
:
$gray-light
;
.counter
{
font-weight
:
bold
;
}
}
}
.icon
{
label
{
f
loat
:
left
;
f
ont-weight
:
normal
;
margin-right
:
10
px
;
margin-right
:
4
px
;
}
}
.
counter
{
.
edit-link
{
float
:
left
;
color
:
$gl-gray
;
}
}
}
}
.
awards-controls
{
.
cross-project-reference
{
margin-left
:
10px
;
font-weight
:
bold
;
float
:
left
;
color
:
$gl-link-color
;
.add-award
{
button
{
font-size
:
24px
;
float
:
right
;
color
:
$gl-gray
;
position
:
relative
;
top
:
2px
;
&
:hover
,
&
:link
{
text-decoration
:
none
;
}
}
}
}
.awards-menu
{
.selectbox
{
padding
:
$gl-padding
;
display
:
none
min-width
:
214px
;
}
>
li
{
.btn-clipboard
{
cursor
:
pointer
;
color
:
$gl-gray
;
margin
:
5px
;
}
}
}
}
}
.awards-menu
{
.issuable-title
{
li
{
margin
:
-
$gl-padding
;
float
:
left
;
padding
:
7px
$gl-padding
;
margin
:
3px
;
margin-bottom
:
0px
;
}
border-bottom
:
1px
solid
$border-color
;
color
:
#5c5d5e
;
font-size
:
16px
;
line-height
:
42px
;
.author
{
color
:
#5c5d5e
;
}
.issuable-id
{
color
:
#5c5d5e
;
}
}
}
}
app/views/projects/issues/_discussion.html.haml
View file @
b0591ff0
...
@@ -5,24 +5,5 @@
...
@@ -5,24 +5,5 @@
-
else
-
else
=
link_to
'Close Issue'
,
issue_path
(
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-close js-note-target-close'
,
title:
'Close Issue'
=
link_to
'Close Issue'
,
issue_path
(
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
'btn btn-grouped btn-close js-note-target-close'
,
title:
'Close Issue'
=
render
'shared/show_aside'
#notes
=
render
'projects/notes/notes_with_form'
.gray-content-block.second-block.oneline-block
.row
.col-md-9
.votes-holder.pull-right
#votes
=
render
'votes/votes_block'
,
votable:
@issue
=
render
"shared/issuable/participants"
.col-md-3
.input-group.cross-project-reference
%span
#cross-project-reference
.slead.has_tooltip
{
title:
'Cross-project reference'
}
=
cross_project_reference
(
@project
,
@issue
)
=
clipboard_button
(
clipboard_target:
'span#cross-project-reference'
)
.row
%section
.col-md-9
.voting_notes
#notes
=
render
'projects/notes/notes_with_form'
%aside
.col-md-3
.issuable-affix
.context
=
render
'shared/issuable/context'
,
issuable:
@issue
app/views/projects/issues/show.html.haml
View file @
b0591ff0
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
.issue
.issue
.issue-details.issuable-details
.issue-details.issuable-details
.
pag
e-title
.
issuabl
e-title
.issue-box
{
class:
issue_box_class
(
@issue
)
}
.issue-box
{
class:
issue_box_class
(
@issue
)
}
-
if
@issue
.
closed?
-
if
@issue
.
closed?
Closed
Closed
-
else
-
else
Open
Open
%span
.issue-id
Issue ##{@issue.iid}
%span
.issu
abl
e-id
Issue ##{@issue.iid}
%span
.creator
%span
.creator
·
·
opened by
#{
link_to_member
(
@project
,
@issue
.
author
,
size:
24
)
}
opened by
#{
link_to_member
(
@project
,
@issue
.
author
,
size:
24
)
}
...
@@ -36,22 +36,31 @@
...
@@ -36,22 +36,31 @@
=
icon
(
'pencil-square-o'
)
=
icon
(
'pencil-square-o'
)
Edit
Edit
.gray-content-block.middle-block
.row
%h2
.issue-title
%section
.col-md-9
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
.gray-content-block
%div
%h2
.issue-title
-
if
@issue
.
description
.
present?
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
%div
.wiki
-
if
@issue
.
description
.
present?
=
preserve
do
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
=
markdown
(
@issue
.
description
,
cache_key:
[
@issue
,
"description"
])
.wiki
%textarea
.hidden.js-task-list-field
=
preserve
do
=
@issue
.
description
=
markdown
(
@issue
.
description
,
cache_key:
[
@issue
,
"description"
])
%textarea
.hidden.js-task-list-field
.merge-requests
=
@issue
.
description
=
render
'merge_requests'
.merge-requests
-
if
@closed_by_merge_requests
.
present?
=
render
'merge_requests'
=
render
'projects/issues/closed_by_box'
.issue-discussion
=
render
'votes/votes_block'
,
votable:
@issue
=
render
'projects/issues/discussion'
-
if
@closed_by_merge_requests
.
present?
=
render
'projects/issues/closed_by_box'
.issue-discussion
=
render
'projects/issues/discussion'
%aside
.col-md-3
=
render
'shared/issuable/sidebar'
,
issuable:
@issue
=
render
'shared/show_aside'
app/views/projects/issues/update.js.haml
View file @
b0591ff0
$('.
context').html("
#{
escape_javascript
(
render
'shared/issuable/context
'
,
issuable:
@issue
)
}
");
$('.
issuable-sidebar').html("
#{
escape_javascript
(
render
'shared/issuable/sidebar
'
,
issuable:
@issue
)
}
");
$('.
context'
).effect('highlight')
$('.
issuable-sidebar').parent(
).effect('highlight')
new Issue();
new Issue();
app/views/shared/issuable/_context.html.haml
deleted
100644 → 0
View file @
76ff8eac
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
issuable
],
remote:
true
,
html:
{
class:
'issuable-context-form inline-update js-issuable-update'
}
do
|
f
|
%div
.prepend-top-default
.issuable-context-title
%label
Assignee:
-
if
issuable
.
assignee
%strong
=
link_to_member
(
@project
,
issuable
.
assignee
,
size:
24
)
-
else
none
.issuable-context-selectbox
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
@project
)
=
users_select_tag
(
"
#{
issuable
.
class
.
table_name
.
singularize
}
[assignee_id]"
,
placeholder:
'Select assignee'
,
class:
'custom-form-control js-select2 js-assignee'
,
selected:
issuable
.
assignee_id
,
project:
@target_project
,
null_user:
true
,
current_user:
true
,
first_user:
true
)
%div
.prepend-top-default.clearfix
.issuable-context-title
%label
Milestone:
-
if
issuable
.
milestone
%span
.back-to-milestone
=
link_to
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
issuable
.
milestone
)
do
%strong
=
icon
(
'clock-o'
)
=
issuable
.
milestone
.
title
-
else
none
.issuable-context-selectbox
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
@project
)
=
f
.
select
(
:milestone_id
,
milestone_options
(
issuable
),
{
include_blank:
true
},
{
class:
'select2 select2-compact js-select2 js-milestone'
,
data:
{
placeholder:
'Select milestone'
}})
=
hidden_field_tag
:issuable_context
=
f
.
submit
class:
'btn hide'
-
if
issuable
.
labels
.
any?
%div
.prepend-top-default.clearfix
.issuable-context-title
%label
Labels
.issuable-show-labels
-
issuable
.
labels
.
each
do
|
label
|
=
link_to_label
(
label
)
-
if
current_user
-
subscribed
=
issuable
.
subscribed?
(
current_user
)
%div
.prepend-top-default.clearfix
.issuable-context-title
%label
Subscription
-
subscribtion_status
=
subscribed
?
'subscribed'
:
'unsubscribed'
.subscription-status
{
data:
{
status:
subscribtion_status
}}
.description-block.unsubscribed
{
class:
(
'hidden'
if
subscribed
)}
You're not receiving notifications from this thread.
.description-block.subscribed
{
class:
(
'hidden'
unless
subscribed
)}
You're receiving notifications because you're subscribed to this thread.
%button
.btn.btn-block.subscribe-button
{
:type
=>
'button'
}
=
icon
(
'eye'
)
%span
=
subscribed
?
'Unsubscribe'
:
'Subscribe'
:javascript
new
Subscription
(
"
#{
toggle_subscription_path
(
issuable
)
}
"
);
new
IssuableContext
();
app/views/shared/issuable/_participants.html.haml
View file @
b0591ff0
.participants
.
block.
participants
%span
.title
=
pluralize
@
participants
.
count
,
"participant"
=
pluralize
participants
.
count
,
"participant"
-
@
participants
.
each
do
|
participant
|
-
participants
.
each
do
|
participant
|
=
link_to_member
(
@project
,
participant
,
name:
false
,
size:
24
)
=
link_to_member
(
@project
,
participant
,
name:
false
,
size:
24
)
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