BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4b7c9c7f
Unverified
Commit
4b7c9c7f
authored
Dec 17, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert sidebar position for issue and merge request
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
8dc4c7b4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
93 additions
and
108 deletions
+93
-108
issuable_context.js.coffee
app/assets/javascripts/issuable_context.js.coffee
+1
-1
issuable.scss
app/assets/stylesheets/pages/issuable.scss
+2
-9
issues.scss
app/assets/stylesheets/pages/issues.scss
+0
-7
_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+0
-6
show.html.haml
app/views/projects/issues/show.html.haml
+22
-16
_discussion.html.haml
app/views/projects/merge_requests/_discussion.html.haml
+0
-3
_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+67
-65
_mr_box.html.haml
app/views/projects/merge_requests/show/_mr_box.html.haml
+1
-1
No files found.
app/assets/javascripts/issuable_context.js.coffee
View file @
4b7c9c7f
...
...
@@ -18,7 +18,7 @@ class @IssuableContext
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
(
$
(
'.issuable-affix'
).
offset
().
top
-
6
0
)
@
top
=
(
$
(
'.issuable-affix'
).
offset
().
top
-
7
0
)
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
4b7c9c7f
...
...
@@ -18,7 +18,7 @@
&
.affix
{
position
:
fixed
;
top
:
6
0px
;
top
:
7
0px
;
margin-right
:
35px
;
}
}
...
...
@@ -39,16 +39,9 @@
section
{
border-right
:
1px
solid
$border-white-light
;
>
.tab-content
{
.issuable-discussion
{
margin-right
:
1px
;
}
.issue-discussion
>
.gray-content-block
,
>
.gray-content-block
{
margin-top
:
0
;
border-top
:
none
;
margin-right
:
-15px
;
}
}
}
...
...
app/assets/stylesheets/pages/issues.scss
View file @
4b7c9c7f
...
...
@@ -144,10 +144,3 @@ form.edit-issue {
.issue-form
.select2-container
{
width
:
250px
!
important
;
}
.issue-discussion
{
.common-note-form
{
border-right
:
1px
solid
$border-white-light
;
}
}
app/views/projects/issues/_discussion.html.haml
View file @
4b7c9c7f
...
...
@@ -5,11 +5,5 @@
-
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'
.gray-content-block.second-block.oneline-block
=
render
'votes/votes_block'
,
votable:
@issue
-
if
@closed_by_merge_requests
.
present?
=
render
'projects/issues/closed_by_box'
#notes
=
render
'projects/notes/notes_with_form'
app/views/projects/issues/show.html.haml
View file @
4b7c9c7f
...
...
@@ -37,24 +37,30 @@
Edit
.issue-details.issuable-details
.detail-page-description.gray-content-block.second-block
%h2
.title
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
%div
-
if
@issue
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@issue
.
description
,
cache_key:
[
@issue
,
"description"
])
%textarea
.hidden.js-task-list-field
=
@issue
.
description
.merge-requests
=
render
'merge_requests'
.gray-content-block.second-block.oneline-block
=
render
'votes/votes_block'
,
votable:
@issue
-
if
@closed_by_merge_requests
.
present?
=
render
'projects/issues/closed_by_box'
.row
%section
.col-md-9
.detail-page-description.gray-content-block
%h2
.title
=
markdown
escape_once
(
@issue
.
title
),
pipeline: :single_line
%div
-
if
@issue
.
description
.
present?
.description
{
class:
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
}
.wiki
=
preserve
do
=
markdown
(
@issue
.
description
,
cache_key:
[
@issue
,
"description"
])
%textarea
.hidden.js-task-list-field
=
@issue
.
description
.merge-requests
=
render
'merge_requests'
.issue-discussion
.issuable-discussion
=
render
'projects/issues/discussion'
%aside
.col-md-3
...
...
app/views/projects/merge_requests/_discussion.html.haml
View file @
4b7c9c7f
...
...
@@ -5,7 +5,4 @@
-
if
@merge_request
.
closed?
=
link_to
'Reopen'
,
merge_request_path
(
@merge_request
,
merge_request:
{
state_event: :reopen
}),
method: :put
,
class:
"btn btn-grouped btn-reopen reopen-mr-link js-note-target-reopen"
,
title:
"Reopen merge request"
.gray-content-block.second-block.oneline-block
=
render
'votes/votes_block'
,
votable:
@merge_request
#notes
=
render
"projects/notes/notes_with_form"
app/views/projects/merge_requests/_show.html.haml
View file @
4b7c9c7f
...
...
@@ -8,79 +8,81 @@
=
render
"projects/merge_requests/show/mr_title"
.merge-request-details.issuable-details
.row
%section
.col-md-9
=
render
"projects/merge_requests/show/mr_box"
.append-bottom-default.mr-source-target.prepend-top-default
-
if
@merge_request
.
open?
.pull-right
-
if
@merge_request
.
source_branch_exists?
=
link_to
"#modal_merge_info"
,
class:
"btn btn-sm"
,
"data-toggle"
=>
"modal"
do
=
icon
(
'cloud-download fw'
)
Check out branch
=
render
"projects/merge_requests/show/mr_box"
.append-bottom-default.mr-source-target.prepend-top-default
-
if
@merge_request
.
open?
.pull-right
-
if
@merge_request
.
source_branch_exists?
=
link_to
"#modal_merge_info"
,
class:
"btn btn-sm"
,
"data-toggle"
=>
"modal"
do
=
icon
(
'cloud-download fw'
)
Check out branch
%span
.dropdown
%a
.btn.btn-sm.dropdown-toggle
{
data:
{
toggle: :dropdown
}
}
=
icon
(
'download'
)
Download as
%span
.caret
%ul
.dropdown-menu
%li
=
link_to
"Email Patches"
,
merge_request_path
(
@merge_request
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
merge_request_path
(
@merge_request
,
format: :diff
)
.normal
%span
Request to merge
%span
.label-branch
=
source_branch_with_namespace
(
@merge_request
)
%span
into
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@merge_request
.
target_branch
),
class:
"label-branch"
do
=
@merge_request
.
target_branch
%span
.dropdown
%a
.btn.btn-sm.dropdown-toggle
{
data:
{
toggle: :dropdown
}
}
=
icon
(
'download'
)
Download as
%span
.caret
%ul
.dropdown-menu
%li
=
link_to
"Email Patches"
,
merge_request_path
(
@merge_request
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
merge_request_path
(
@merge_request
,
format: :diff
)
.normal
%span
Request to merge
%span
.label-branch
=
source_branch_with_namespace
(
@merge_request
)
%span
into
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@merge_request
.
target_branch
),
class:
"label-branch"
do
=
@merge_request
.
target_branch
=
render
"projects/merge_requests/show/how_to_merge"
=
render
"projects/merge_requests/widget/show.html.haml"
=
render
"projects/merge_requests/show/how_to_merge"
=
render
"projects/merge_requests/widget/show.html.haml"
-
if
@merge_request
.
open?
&&
@merge_request
.
source_branch_exists?
&&
@merge_request
.
can_be_merged?
&&
@merge_request
.
can_be_merged_by?
(
current_user
)
.light.prepend-top-default
You can also accept this merge request manually using the
=
succeed
'.'
do
=
link_to
"command line"
,
"#modal_merge_info"
,
class:
"how_to_merge_link vlink"
,
title:
"How To Merge"
,
"data-toggle"
=>
"modal"
-
if
@merge_request
.
open?
&&
@merge_request
.
source_branch_exists?
&&
@merge_request
.
can_be_merged?
&&
@merge_request
.
can_be_merged_by?
(
current_user
)
.light.prepend-top-default
You can also accept this merge request manually using the
=
succeed
'.'
do
=
link_to
"command line"
,
"#modal_merge_info"
,
class:
"how_to_merge_link vlink"
,
title:
"How To Merge"
,
"data-toggle"
=>
"modal"
-
if
@commits
.
present?
%ul
.merge-request-tabs.center-top-menu.no-top.no-bottom
%li
.notes-tab
=
link_to
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#notes'
,
action:
'notes'
,
toggle:
'tab'
}
do
Discussion
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
user
.
count
%li
.commits-tab
=
link_to
commits_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#commits'
,
action:
'commits'
,
toggle:
'tab'
}
do
Commits
%span
.badge
=
@commits
.
size
-
if
@ci_commit
%li
.builds-tab
=
link_to
builds_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'#builds'
,
action:
'builds'
,
toggle:
'tab'
}
do
Builds
%span
.badge
=
@statuses
.
size
%li
.diffs-tab
=
link_to
diffs_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#diffs'
,
action:
'diffs'
,
toggle:
'tab'
}
do
Changes
%span
.badge
=
@merge_request
.
diffs
.
size
-
if
@commits
.
present?
%ul
.merge-request-tabs.center-top-menu.no-top.no-bottom
%li
.notes-tab
=
link_to
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#notes'
,
action:
'notes'
,
toggle:
'tab'
}
do
Discussion
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
user
.
count
%li
.commits-tab
=
link_to
commits_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#commits'
,
action:
'commits'
,
toggle:
'tab'
}
do
Commits
%span
.badge
=
@commits
.
size
-
if
@ci_commit
%li
.builds-tab
=
link_to
builds_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'#builds'
,
action:
'builds'
,
toggle:
'tab'
}
do
Builds
%span
.badge
=
@statuses
.
size
%li
.diffs-tab
=
link_to
diffs_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#diffs'
,
action:
'diffs'
,
toggle:
'tab'
}
do
Changes
%span
.badge
=
@merge_request
.
diffs
.
size
.tab-content
#notes
.notes.tab-pane.voting_notes
=
render
"projects/merge_requests/discussion"
#commits
.commits.tab-pane
-
# This tab is always loaded via AJAX
#builds
.builds.tab-pane
-
# This tab is always loaded via AJAX
#diffs
.diffs.tab-pane
-
# This tab is always loaded via AJAX
.tab-content
#notes
.notes.tab-pane.voting_notes
.gray-content-block.second-block.oneline-block
=
render
'votes/votes_block'
,
votable:
@merge_request
.mr-loading-status
=
spinner
.row
%section
.col-md-9
.issuable-discussion
=
render
"projects/merge_requests/discussion"
%aside
.col-md-3
=
render
'shared/issuable/sidebar'
,
issuable:
@merge_request
=
render
'shared/show_aside'
%aside
.col-md-3
=
render
'shared/issuable/sidebar'
,
issuable:
@merge_request
=
render
'shared/show_aside'
#commits
.commits.tab-pane
-
# This tab is always loaded via AJAX
#builds
.builds.tab-pane
-
# This tab is always loaded via AJAX
#diffs
.diffs.tab-pane
-
# This tab is always loaded via AJAX
.mr-loading-status
=
spinner
:javascript
var
merge_request
;
...
...
app/views/projects/merge_requests/show/_mr_box.html.haml
View file @
4b7c9c7f
.detail-page-description.gray-content-block.
middle
-block
.detail-page-description.gray-content-block.
second
-block
%h2
.title
=
markdown
escape_once
(
@merge_request
.
title
),
pipeline: :single_line
...
...
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