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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7d403ec4
Commit
7d403ec4
authored
Mar 17, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add eye-slash icon to confidential issues
parent
482bfd1a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
0 deletions
+9
-0
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+4
-0
app/views/projects/issues/_issue.html.haml
app/views/projects/issues/_issue.html.haml
+1
-0
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+1
-0
app/views/search/results/_issue.html.haml
app/views/search/results/_issue.html.haml
+1
-0
app/views/shared/milestones/_issuable.html.haml
app/views/shared/milestones/_issuable.html.haml
+2
-0
No files found.
app/helpers/issues_helper.rb
View file @
7d403ec4
...
@@ -98,6 +98,10 @@ module IssuesHelper
...
@@ -98,6 +98,10 @@ module IssuesHelper
end
.
sort
.
to_sentence
(
last_word_connector:
', or '
)
end
.
sort
.
to_sentence
(
last_word_connector:
', or '
)
end
end
def
confidential_icon
(
issue
)
icon
(
'eye-slash'
)
if
issue
.
confidential?
end
def
emoji_icon
(
name
,
unicode
=
nil
,
aliases
=
[])
def
emoji_icon
(
name
,
unicode
=
nil
,
aliases
=
[])
unicode
||=
Emoji
.
emoji_filename
(
name
)
rescue
""
unicode
||=
Emoji
.
emoji_filename
(
name
)
rescue
""
...
...
app/views/projects/issues/_issue.html.haml
View file @
7d403ec4
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
.issue-title
.issue-title
%span
.issue-title-text
%span
.issue-title-text
=
confidential_icon
(
issue
)
=
link_to_gfm
issue
.
title
,
issue_path
(
issue
),
class:
"title"
=
link_to_gfm
issue
.
title
,
issue_path
(
issue
),
class:
"title"
%ul
.controls.light
%ul
.controls.light
-
if
issue
.
closed?
-
if
issue
.
closed?
...
...
app/views/projects/issues/show.html.haml
View file @
7d403ec4
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
=
icon
(
'angle-double-left'
)
=
icon
(
'angle-double-left'
)
.issue-meta
.issue-meta
=
confidential_icon
(
@issue
)
%strong
.identifier
%strong
.identifier
Issue ##{@issue.iid}
Issue ##{@issue.iid}
%span
.creator
%span
.creator
...
...
app/views/search/results/_issue.html.haml
View file @
7d403ec4
.search-result-row
.search-result-row
%h4
%h4
=
confidential_icon
(
issue
)
=
link_to
[
issue
.
project
.
namespace
.
becomes
(
Namespace
),
issue
.
project
,
issue
]
do
=
link_to
[
issue
.
project
.
namespace
.
becomes
(
Namespace
),
issue
.
project
,
issue
]
do
%span
.term.str-truncated
=
issue
.
title
%span
.term.str-truncated
=
issue
.
title
.pull-right
##{issue.iid}
.pull-right
##{issue.iid}
...
...
app/views/shared/milestones/_issuable.html.haml
View file @
7d403ec4
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
%strong
#{
project
.
name
}
·
%strong
#{
project
.
name
}
·
-
elsif
show_full_project_name
-
elsif
show_full_project_name
%strong
#{
project
.
name_with_namespace
}
·
%strong
#{
project
.
name_with_namespace
}
·
-
if
issuable
.
is_a?
(
Issue
)
=
confidential_icon
(
issuable
)
=
link_to_gfm
issuable
.
title
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
issuable
],
title:
issuable
.
title
=
link_to_gfm
issuable
.
title
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
issuable
],
title:
issuable
.
title
%div
{
class:
'issuable-detail'
}
%div
{
class:
'issuable-detail'
}
=
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
issuable
]
do
=
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
,
issuable
]
do
...
...
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