From b60823abe24ad60286b4501b72c6ffba4fe413f5 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 9 Jun 2015 21:35:35 +0530 Subject: [PATCH] minor fixes --- app/assets/javascripts/questionbox/destroy.coffee | 4 ++-- app/helpers/user_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/questionbox/destroy.coffee b/app/assets/javascripts/questionbox/destroy.coffee index 521e6705..f0188575 100644 --- a/app/assets/javascripts/questionbox/destroy.coffee +++ b/app/assets/javascripts/questionbox/destroy.coffee @@ -3,8 +3,8 @@ $(document).on "click", "a[data-action=ab-question-destroy]", (ev) -> btn = $(this) qid = btn[0].dataset.qId swal - title: translate('frontend.delete_own.confirm.title') - text: translate('frontend.delete_own.confirm.text') + title: translate('frontend.destroy_own.confirm.title') + text: translate('frontend.destroy_own.confirm.text') type: "warning" showCancelButton: true confirmButtonColor: "#DD6B55" diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 4e3e599d..cd68bf14 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -5,6 +5,6 @@ module UserHelper return APP_CONFIG['anonymous_name'] if user.nil? || anonymous 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 - name + name.strip end end