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
Boxiang Sun
gitlab-ce
Commits
258ab294
Commit
258ab294
authored
Dec 02, 2016
by
Annabel Dunstone Gray
Committed by
tauriedavis
Dec 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add content_class for limited width
parent
ee10a1cc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
12 deletions
+3
-12
app/assets/javascripts/issue.js
app/assets/javascripts/issue.js
+0
-6
app/assets/javascripts/merge_request.js
app/assets/javascripts/merge_request.js
+0
-6
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+1
-0
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+1
-0
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-0
No files found.
app/assets/javascripts/issue.js
View file @
258ab294
...
...
@@ -11,7 +11,6 @@
function
Issue
()
{
this
.
submitNoteForm
=
bind
(
this
.
submitNoteForm
,
this
);
// Prevent duplicate event bindings
this
.
limitContainerWidth
();
this
.
disableTaskList
();
if
(
$
(
'
a.btn-close
'
).
length
)
{
this
.
initTaskList
();
...
...
@@ -22,11 +21,6 @@
this
.
initCanCreateBranch
();
}
Issue
.
prototype
.
limitContainerWidth
=
function
()
{
var
$wrapper
=
$
(
'
.content-wrapper .container-fluid
'
);
$wrapper
.
addClass
(
'
limit-container-width
'
)
};
Issue
.
prototype
.
initTaskList
=
function
()
{
$
(
'
.detail-page-description .js-task-list-container
'
).
taskList
(
'
enable
'
);
return
$
(
document
).
on
(
'
tasklist:changed
'
,
'
.detail-page-description .js-task-list-container
'
,
this
.
updateTaskList
);
...
...
app/assets/javascripts/merge_request.js
View file @
258ab294
...
...
@@ -14,7 +14,6 @@
// Options:
// action - String, current controller action
//
this
.
limitContainerWidth
();
this
.
opts
=
opts
!=
null
?
opts
:
{};
this
.
submitNoteForm
=
bind
(
this
.
submitNoteForm
,
this
);
this
.
$el
=
$
(
'
.merge-request
'
);
...
...
@@ -32,11 +31,6 @@
}
}
MergeRequest
.
prototype
.
limitContainerWidth
=
function
()
{
var
$wrapper
=
$
(
'
.content-wrapper .container-fluid
'
);
$wrapper
.
addClass
(
'
limit-container-width
'
)
};
// Local jQuery finder
MergeRequest
.
prototype
.
$
=
function
(
selector
)
{
return
this
.
$el
.
find
(
selector
);
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
258ab294
...
...
@@ -11,6 +11,7 @@
}
}
}
.issuable-details
{
section
{
.issuable-discussion
{
...
...
app/views/projects/issues/show.html.haml
View file @
258ab294
-
@content_class
=
"limit-container-width"
-
page_title
"
#{
@issue
.
title
}
(
#{
@issue
.
to_reference
}
)"
,
"Issues"
-
page_description
@issue
.
description
-
page_card_attributes
@issue
.
card_attributes
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
258ab294
-
@content_class
=
"limit-container-width"
-
page_title
"
#{
@merge_request
.
title
}
(
#{
@merge_request
.
to_reference
}
)"
,
"Merge Requests"
-
page_description
@merge_request
.
description
-
page_card_attributes
@merge_request
.
card_attributes
...
...
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