Add confidential issue notice in comment box.
This commit is contained in:
parent
9aca0a1f96
commit
ccc8d419e6
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue