minor fixes
This commit is contained in:
parent
e5ecea8414
commit
b60823abe2
|
@ -3,8 +3,8 @@ $(document).on "click", "a[data-action=ab-question-destroy]", (ev) ->
|
||||||
btn = $(this)
|
btn = $(this)
|
||||||
qid = btn[0].dataset.qId
|
qid = btn[0].dataset.qId
|
||||||
swal
|
swal
|
||||||
title: translate('frontend.delete_own.confirm.title')
|
title: translate('frontend.destroy_own.confirm.title')
|
||||||
text: translate('frontend.delete_own.confirm.text')
|
text: translate('frontend.destroy_own.confirm.text')
|
||||||
type: "warning"
|
type: "warning"
|
||||||
showCancelButton: true
|
showCancelButton: true
|
||||||
confirmButtonColor: "#DD6B55"
|
confirmButtonColor: "#DD6B55"
|
||||||
|
|
|
@ -5,6 +5,6 @@ module UserHelper
|
||||||
return APP_CONFIG['anonymous_name'] if user.nil? || anonymous
|
return APP_CONFIG['anonymous_name'] if user.nil? || anonymous
|
||||||
name = user.display_name.blank? ? user.screen_name : user.display_name
|
name = user.display_name.blank? ? user.screen_name : user.display_name
|
||||||
return link_to(name, show_user_profile_path(user.screen_name), class: "#{"user--banned" if user.banned?}") if url
|
return link_to(name, show_user_profile_path(user.screen_name), class: "#{"user--banned" if user.banned?}") if url
|
||||||
name
|
name.strip
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue