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
e184dfc3
Commit
e184dfc3
authored
Aug 11, 2017
by
Regis Boudinot
Committed by
Clement Ho
Aug 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix confidential border issue as well as confidential styles leaking on new MR
parent
f8fa7a05
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
20 deletions
+5
-20
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+4
-16
app/views/projects/_md_preview.html.haml
app/views/projects/_md_preview.html.haml
+1
-3
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+0
-1
No files found.
app/assets/stylesheets/pages/note_form.scss
View file @
e184dfc3
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
background-color
:
$orange-50
;
background-color
:
$orange-50
;
border-radius
:
$border-radius-default
$border-radius-default
0
0
;
border-radius
:
$border-radius-default
$border-radius-default
0
0
;
border
:
1px
solid
$border-gray-normal
;
border
:
1px
solid
$border-gray-normal
;
border-bottom
:
none
;
padding
:
3px
12px
;
padding
:
3px
12px
;
margin
:
auto
;
margin
:
auto
;
align-items
:
center
;
align-items
:
center
;
...
@@ -132,22 +133,9 @@
...
@@ -132,22 +133,9 @@
}
}
}
}
.not-confidential
{
.confidential-issue-warning
+
.md-area
{
padding
:
0
;
border-top-left-radius
:
0
;
border-top
:
none
;
border-top-right-radius
:
0
;
}
.right-sidebar-expanded
{
.md-area
{
border-radius
:
0
;
border-top
:
none
;
}
}
.right-sidebar-collapsed
{
.confidential-issue-warning
{
border-bottom
:
none
;
}
}
}
.discussion-form
{
.discussion-form
{
...
...
app/views/projects/_md_preview.html.haml
View file @
e184dfc3
-
referenced_users
=
local_assigns
.
fetch
(
:referenced_users
,
nil
)
-
referenced_users
=
local_assigns
.
fetch
(
:referenced_users
,
nil
)
-
if
defined?
(
@issue
)
&&
@issue
.
confidential?
-
if
defined?
(
@issue
)
&&
@issue
.
confidential?
%li
.confidential-issue-warning
.confidential-issue-warning
=
confidential_icon
(
@issue
)
=
confidential_icon
(
@issue
)
%span
This is a confidential issue. Your comment will not be visible to the public.
%span
This is a confidential issue. Your comment will not be visible to the public.
-
else
%li
.confidential-issue-warning.not-confidential
.md-area
.md-area
.md-header
.md-header
...
...
spec/features/issues_spec.rb
View file @
e184dfc3
...
@@ -729,7 +729,6 @@ describe 'Issues' do
...
@@ -729,7 +729,6 @@ describe 'Issues' do
visit
project_issue_path
(
project
,
issue
)
visit
project_issue_path
(
project
,
issue
)
expect
(
page
).
not_to
have_css
(
'.is-confidential'
)
expect
(
page
).
not_to
have_css
(
'.is-confidential'
)
expect
(
page
).
to
have_css
(
'.is-not-confidential'
)
end
end
end
end
end
end
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