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
6f69df86
Commit
6f69df86
authored
Dec 16, 2021
by
anna_vovchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed badges to Pajamas-compliant component
parent
1de1210e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/views/profiles/emails/index.html.haml
app/views/profiles/emails/index.html.haml
+7
-7
No files found.
app/views/profiles/emails/index.html.haml
View file @
6f69df86
...
...
@@ -37,23 +37,23 @@
%li
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
@primary_email
,
verified:
current_user
.
confirmed?
}
%span
.float-right
%span
.badge.badge-muted.badge-pill.gl-badge.badge-success
=
s_
(
'Profiles|Primary email'
)
=
gl_badge_tag
s_
(
'Profiles|Primary email'
),
variant: :success
-
if
@primary_email
===
current_user
.
commit_email_or_default
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Commit email'
)
=
gl_badge_tag
s_
(
'Profiles|Commit email'
),
variant: :info
-
if
@primary_email
===
current_user
.
public_email
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Public email'
)
=
gl_badge_tag
s_
(
'Profiles|Public email'
),
variant: :info
-
if
@primary_email
===
current_user
.
notification_email_or_default
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Default notification email'
)
=
gl_badge_tag
s_
(
'Profiles|Default notification email'
),
variant: :info
-
@emails
.
reject
(
&
:user_primary_email?
).
each
do
|
email
|
%li
{
data:
{
qa_selector:
'email_row_content'
}
}
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
email
.
email
,
verified:
email
.
confirmed?
}
%span
.float-right
-
if
email
.
email
===
current_user
.
commit_email_or_default
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Commit email'
)
=
gl_badge_tag
s_
(
'Profiles|Commit email'
),
variant: :info
-
if
email
.
email
===
current_user
.
public_email
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Public email'
)
=
gl_badge_tag
s_
(
'Profiles|Public email'
),
variant: :info
-
if
email
.
email
===
current_user
.
notification_email_or_default
%span
.badge.badge-muted.badge-pill.gl-badge.badge-info
=
s_
(
'Profiles|Notification email'
)
=
gl_badge_tag
s_
(
'Profiles|Notification email'
),
variant: :info
-
unless
email
.
confirmed?
-
confirm_title
=
"
#{
email
.
confirmation_sent_at
?
_
(
'Resend confirmation email'
)
:
_
(
'Send confirmation email'
)
}
"
=
link_to
confirm_title
,
resend_confirmation_instructions_profile_email_path
(
email
),
method: :put
,
class:
'gl-button btn btn-sm btn-warning gl-ml-3'
...
...
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