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
3268675a
Commit
3268675a
authored
Jun 07, 2017
by
Clement Ho
Committed by
Annabel Dunstone Gray
Jun 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sticky confidential issue bar
parent
4cb619fd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
42 deletions
+42
-42
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+31
-0
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+0
-35
app/views/projects/_md_preview.html.haml
app/views/projects/_md_preview.html.haml
+0
-6
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+7
-1
changelogs/unreleased/fixed-confidential-issue-bar.yml
changelogs/unreleased/fixed-confidential-issue-bar.yml
+4
-0
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
3268675a
...
...
@@ -729,3 +729,34 @@
}
}
}
.confidential-issue-warning
{
background-color
:
$gl-gray
;
border-radius
:
3px
;
padding
:
$gl-btn-padding
$gl-padding
;
margin-top
:
$gl-padding-top
;
font-size
:
14px
;
color
:
$white-light
;
.fa
{
margin-right
:
8px
;
}
a
{
color
:
$white-light
;
text-decoration
:
underline
;
}
&
.affix
{
position
:
static
;
width
:
initial
;
@media
(
min-width
:
$screen-sm-min
)
{
position
:
sticky
;
position
:
-
webkit-sticky
;
top
:
60px
;
z-index
:
200
;
@include
transition
(
all
);
}
}
}
app/assets/stylesheets/pages/note_form.scss
View file @
3268675a
...
...
@@ -103,41 +103,6 @@
}
}
.confidential-issue-warning
{
background-color
:
$gray-normal
;
border-radius
:
3px
;
padding
:
3px
12px
;
margin
:
auto
;
margin-top
:
0
;
text-align
:
center
;
font-size
:
12px
;
align-items
:
center
;
@media
(
max-width
:
$screen-md-max
)
{
// 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
;
margin
:
6px
auto
;
width
:
100%
;
}
.fa
{
margin-right
:
8px
;
}
}
.right-sidebar-expanded
{
.confidential-issue-warning
{
// When the sidebar is open 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
;
margin
:
6px
auto
;
width
:
100%
;
}
}
.discussion-form
{
padding
:
$gl-padding-top
$gl-padding
$gl-padding
;
background-color
:
$white-light
;
...
...
app/views/projects/_md_preview.html.haml
View file @
3268675a
...
...
@@ -9,12 +9,6 @@
%li
%a
.js-md-preview-button
{
href:
"#md-preview-holder"
,
tabindex:
-
1
}
Preview
-
if
defined?
(
@issue
)
&&
@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
.toolbar-group
=
markdown_toolbar_button
({
icon:
"bold fw"
,
data:
{
"md-tag"
=>
"**"
},
title:
"Add bold text"
})
...
...
app/views/projects/issues/show.html.haml
View file @
3268675a
...
...
@@ -5,6 +5,13 @@
-
can_update_issue
=
can?
(
current_user
,
:update_issue
,
@issue
)
-
can_report_spam
=
@issue
.
submittable_as_spam_by?
(
current_user
)
-
if
defined?
(
@issue
)
&&
@issue
.
confidential?
.confidential-issue-warning
{
data:
{
spy:
'affix'
}
}
%span
.confidential-issue-text
#{
confidential_icon
(
@issue
)
}
This issue is confidential.
%a
{
href:
help_page_path
(
'user/project/issues/confidential_issues'
),
target:
'_blank'
}
What are confidential issues?
.clearfix.detail-page-header
.issuable-header
.issuable-status-box.status-box.status-box-closed
{
class:
issue_button_visibility
(
@issue
,
false
)
}
...
...
@@ -19,7 +26,6 @@
=
icon
(
'angle-double-left'
)
.issuable-meta
=
confidential_icon
(
@issue
)
=
issuable_meta
(
@issue
,
@project
,
"Issue"
)
.issuable-actions
...
...
changelogs/unreleased/fixed-confidential-issue-bar.yml
0 → 100644
View file @
3268675a
---
title
:
Make confidential issues more obviously confidential
merge_request
:
author
:
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