From 65c76cd6a72d92f23d942d882ca37b02d7ebd50e Mon Sep 17 00:00:00 2001 From: Giulio Gratta Date: Fri, 24 Jan 2014 17:00:48 -0800 Subject: [PATCH] Added help text to tooltips and sr flag spans --- .../src/discussion/views/discussion_thread_show_view.coffee | 3 ++- .../src/discussion/views/response_comment_show_view.coffee | 4 ++-- .../src/discussion/views/thread_response_show_view.coffee | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee b/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee index 26f2267b73..58f92af974 100644 --- a/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee +++ b/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee @@ -46,7 +46,8 @@ if Backbone? @$("[data-role=thread-flag]").addClass("flagged") @$("[data-role=thread-flag]").removeClass("notflagged") @$(".discussion-flag-abuse").attr("aria-pressed", "true") - @$(".discussion-flag-abuse .flag-label").html(gettext("Misuse Reported")) + @$(".discussion-flag-abuse").attr("data-tooltip", gettext("Click to remove report")) + @$(".discussion-flag-abuse .flag-label").html(interpolate(gettext("Misuse Reported, %(start_sr_span)s click to remove report%(end_span)s"), {"start_sr_span": "", "end_span": ""}, true)) else @$("[data-role=thread-flag]").removeClass("flagged") @$("[data-role=thread-flag]").addClass("notflagged") diff --git a/common/static/coffee/src/discussion/views/response_comment_show_view.coffee b/common/static/coffee/src/discussion/views/response_comment_show_view.coffee index 04797388fb..c1d974f392 100644 --- a/common/static/coffee/src/discussion/views/response_comment_show_view.coffee +++ b/common/static/coffee/src/discussion/views/response_comment_show_view.coffee @@ -46,8 +46,8 @@ if Backbone? @$("[data-role=thread-flag]").addClass("flagged") @$("[data-role=thread-flag]").removeClass("notflagged") @$(".discussion-flag-abuse").attr("aria-pressed", "true") - @$(".discussion-flag-abuse").attr("data-tooltip", gettext("Misuse Reported")) - @$(".discussion-flag-abuse .flag-label").html("Misuse Reported") + @$(".discussion-flag-abuse").attr("data-tooltip", gettext("Misuse Reported, click to remove report")) + @$(".discussion-flag-abuse .flag-label").html(gettext("Misuse Reported, click to remove report")) else @$("[data-role=thread-flag]").removeClass("flagged") @$("[data-role=thread-flag]").addClass("notflagged") diff --git a/common/static/coffee/src/discussion/views/thread_response_show_view.coffee b/common/static/coffee/src/discussion/views/thread_response_show_view.coffee index 01b985a627..70a5a1ed2c 100644 --- a/common/static/coffee/src/discussion/views/thread_response_show_view.coffee +++ b/common/static/coffee/src/discussion/views/thread_response_show_view.coffee @@ -75,7 +75,8 @@ if Backbone? @$("[data-role=thread-flag]").addClass("flagged") @$("[data-role=thread-flag]").removeClass("notflagged") @$(".discussion-flag-abuse").attr("aria-pressed", "true") - @$(".discussion-flag-abuse .flag-label").html(gettext("Misuse Reported")) + @$(".discussion-flag-abuse").attr("data-tooltip", gettext("Misuse Reported, click to remove report")) + @$(".discussion-flag-abuse .flag-label").html(interpolate(gettext("Misuse Reported, %(start_sr_span)s click to remove report%(end_span)s"), {"start_sr_span": "", "end_span": ""}, true)) else @$("[data-role=thread-flag]").removeClass("flagged") @$("[data-role=thread-flag]").addClass("notflagged")