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
2257394e
Commit
2257394e
authored
Sep 10, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-button class to users/show haml view
parent
55ab4869
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/views/users/show.html.haml
app/views/users/show.html.haml
+5
-5
No files found.
app/views/users/show.html.haml
View file @
2257394e
...
...
@@ -13,22 +13,22 @@
.cover-block.user-cover-block
{
class:
[(
'border-bottom'
if
profile_tabs
.
empty?
)]
}
=
render
layout:
'users/cover_controls'
do
-
if
@user
==
current_user
=
link_to
profile_path
,
class:
link_classes
+
'btn btn-default has-tooltip'
,
title:
s_
(
'UserProfile|Edit profile'
),
'aria-label'
:
'Edit profile'
do
=
link_to
profile_path
,
class:
link_classes
+
'btn
gl-button
btn-default has-tooltip'
,
title:
s_
(
'UserProfile|Edit profile'
),
'aria-label'
:
'Edit profile'
do
=
sprite_icon
(
'pencil'
)
-
elsif
current_user
-
if
@user
.
abuse_report
%button
{
class:
link_classes
+
'btn btn-danger'
,
title:
s_
(
'UserProfile|Already reported for abuse'
),
%button
{
class:
link_classes
+
'btn
gl-button
btn-danger'
,
title:
s_
(
'UserProfile|Already reported for abuse'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
}
>
=
sprite_icon
(
'error'
)
-
else
=
link_to
new_abuse_report_path
(
user_id:
@user
.
id
,
ref_url:
request
.
referrer
),
class:
link_classes
+
'btn'
,
=
link_to
new_abuse_report_path
(
user_id:
@user
.
id
,
ref_url:
request
.
referrer
),
class:
link_classes
+
'btn
gl-button
'
,
title:
s_
(
'UserProfile|Report abuse'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'error'
)
-
if
can?
(
current_user
,
:read_user_profile
,
@user
)
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
link_classes
+
'btn btn-svg btn-default has-tooltip'
,
title:
s_
(
'UserProfile|Subscribe'
),
'aria-label'
:
'Subscribe'
do
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
link_classes
+
'btn
gl-button
btn-svg btn-default has-tooltip'
,
title:
s_
(
'UserProfile|Subscribe'
),
'aria-label'
:
'Subscribe'
do
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
)
-
if
current_user
&&
current_user
.
admin?
=
link_to
[
:admin
,
@user
],
class:
link_classes
+
'btn btn-default'
,
title:
s_
(
'UserProfile|View user in admin area'
),
=
link_to
[
:admin
,
@user
],
class:
link_classes
+
'btn
gl-button
btn-default'
,
title:
s_
(
'UserProfile|View user in admin area'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'user'
)
...
...
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