Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
e9268117
Unverified
Commit
e9268117
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix nil error in admin_account_link_to helper (#8578)
Fix #8573
parent
447d7339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/helpers/admin/account_moderation_notes_helper.rb
+4
-0
app/helpers/admin/account_moderation_notes_helper.rb
with
4 additions
and
0 deletions
+4
-0
app/helpers/admin/account_moderation_notes_helper.rb
+
4
-
0
View file @
e9268117
...
...
@@ -2,6 +2,8 @@
module
Admin::AccountModerationNotesHelper
def
admin_account_link_to
(
account
)
return
if
account
.
nil?
link_to
admin_account_path
(
account
.
id
),
class:
name_tag_classes
(
account
)
do
safe_join
([
image_tag
(
account
.
avatar
.
url
,
width:
15
,
height:
15
,
alt:
display_name
(
account
),
class:
'avatar'
),
...
...
@@ -11,6 +13,8 @@ module Admin::AccountModerationNotesHelper
end
def
admin_account_inline_link_to
(
account
)
return
if
account
.
nil?
link_to
admin_account_path
(
account
.
id
),
class:
name_tag_classes
(
account
,
true
)
do
content_tag
(
:span
,
account
.
acct
,
class:
'username'
)
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets