mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 19:16:39 +10:00
Add eye-slash icon to confidential issues
This commit is contained in:
@@ -98,6 +98,10 @@ module IssuesHelper
|
||||
end.sort.to_sentence(last_word_connector: ', or ')
|
||||
end
|
||||
|
||||
def confidential_icon(issue)
|
||||
icon('eye-slash') if issue.confidential?
|
||||
end
|
||||
|
||||
def emoji_icon(name, unicode = nil, aliases = [])
|
||||
unicode ||= Emoji.emoji_filename(name) rescue ""
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
.issue-title
|
||||
%span.issue-title-text
|
||||
= confidential_icon(issue)
|
||||
= link_to_gfm issue.title, issue_path(issue), class: "title"
|
||||
%ul.controls.light
|
||||
- if issue.closed?
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
= icon('angle-double-left')
|
||||
|
||||
.issue-meta
|
||||
= confidential_icon(@issue)
|
||||
%strong.identifier
|
||||
Issue ##{@issue.iid}
|
||||
%span.creator
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
.search-result-row
|
||||
%h4
|
||||
= confidential_icon(issue)
|
||||
= link_to [issue.project.namespace.becomes(Namespace), issue.project, issue] do
|
||||
%span.term.str-truncated= issue.title
|
||||
.pull-right ##{issue.iid}
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
%strong #{project.name} ·
|
||||
- elsif show_full_project_name
|
||||
%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
|
||||
%div{class: 'issuable-detail'}
|
||||
= link_to [project.namespace.becomes(Namespace), project, issuable] do
|
||||
|
||||
Reference in New Issue
Block a user