modify verbiage of flagging

This commit is contained in:
Your Name
2012-12-05 11:20:31 -05:00
parent 8ad01c7340
commit 3a7624d384
2 changed files with 4 additions and 2 deletions

View File

@@ -47,9 +47,11 @@ if Backbone?
if window.user.id in @model.get("abuse_flaggers")
@$("[data-role=thread-flag]").addClass("flagged")
@$("[data-role=thread-flag]").removeClass("notflagged")
@$(".discussion-flag-abuse .flag-label").html("Misuse Reported")
else
@$("[data-role=thread-flag]").removeClass("flagged")
@$("[data-role=thread-flag]").addClass("notflagged")
@$(".discussion-flag-abuse .flag-label").html("ReportMisuse")
updateModelDetails: =>
@renderVoted()

View File

@@ -46,7 +46,7 @@
<div class="post-body">${'<%- body %>'}</div>
<div class="discussion-flag-abuse notflagged" data-role="thread-flag" data-tooltip="flag">
<i class="icon"></i>Report Misuse</div>
<i class="icon"></i><span class="flag-label">Report Misuse</span></div>
${'<% if (obj.courseware_url) { %>'}
@@ -138,7 +138,7 @@
<div id="comment_${'<%- id %>'}">
<div class="response-body">${'<%- body %>'}</div>
<div class="discussion-flag-abuse notflagged" data-role="thread-flag" data-tooltip="flag">
<i class="icon"></i></div>
<i class="icon"></i><span class="flag-label">Report Misuse</span></div>
<p class="posted-details">&ndash;posted <span class="timeago" title="${'<%- created_at %>'}">${'<%- created_at %>'}</span> by
${"<% if (obj.username) { %>"}
<a href="${'<%- user_url %>'}" class="profile-link">${'<%- username %>'}</a>