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
Léo-Paul Géneau
gitlab-ce
Commits
ccc8d419
Commit
ccc8d419
authored
Jun 03, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add confidential issue notice in comment box.
parent
9aca0a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+33
-0
app/views/projects/_md_preview.html.haml
app/views/projects/_md_preview.html.haml
+6
-0
No files found.
app/assets/stylesheets/pages/note_form.scss
View file @
ccc8d419
...
...
@@ -87,6 +87,39 @@
}
}
.md-header
.nav-links
{
display
:
flex
;
display
:
-
webkit-flex
;
flex-flow
:
row
wrap
;
-webkit-flex-flow
:
row
wrap
;
width
:
100%
;
.pull-right
{
// Flexbox quirk to make sure right-aligned items stay right-aligned.
margin-left
:
auto
;
}
}
.confidential-issue-warning
{
background-color
:
$gray-normal
;
border-radius
:
3px
;
padding
:
3px
12px
;
margin
:
auto
;
margin-top
:
0
;
text-align
:
center
;
font-size
:
13px
;
@media
(
max-width
:
$screen-md-min
)
{
// On smaller devices the warning becomes the fourth item in the list,
// rather than centering, and grows to span the full width of the
// comment area.
order
:
4
;
-webkit-order
:
4
;
margin
:
6px
auto
;
width
:
100%
;
}
}
.discussion-form
{
padding
:
$gl-padding-top
$gl-padding
;
background-color
:
$white-light
;
...
...
app/views/projects/_md_preview.html.haml
View file @
ccc8d419
...
...
@@ -7,6 +7,12 @@
%li
%a
.js-md-preview-button
{
href:
"#md-preview-holder"
,
tabindex:
-
1
}
Preview
-
if
@issue
.
confidential?
%li
.confidential-issue-warning
=
icon
(
'warning'
)
%span
This is a confidential issue. Your comment will not be visible to the public.
%li
.pull-right
%button
.zen-control.zen-control-full.js-zen-enter
{
type:
'button'
,
tabindex:
-
1
}
Go full screen
...
...
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