Add edited-label to edited comments
This commit is contained in:
@ -30,9 +30,18 @@
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.popover-footer {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.popover-date {
|
.popover-date {
|
||||||
color: #008cba;
|
color: #008cba;
|
||||||
margin-top: 10px;
|
}
|
||||||
|
|
||||||
|
.popover-updated {
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-divider {
|
.popover-divider {
|
||||||
|
@ -184,9 +184,18 @@ also, all settings from the rails model needed for the editor configuration in t
|
|||||||
if (index !== 0) {
|
if (index !== 0) {
|
||||||
popupContent += '<div class="popover-divider"></div>'
|
popupContent += '<div class="popover-divider"></div>'
|
||||||
}
|
}
|
||||||
popupContent += '<p><div class="popover-username">' + comment.username + ':</div>' +
|
popupContent += '<p>';
|
||||||
|
popupContent += '<div class="popover-username">' + comment.username + ':</div>' +
|
||||||
'<div class="popover-comment">' + preprocess(comment.text) + '</div>' +
|
'<div class="popover-comment">' + preprocess(comment.text) + '</div>' +
|
||||||
'<div class="popover-date">' + comment.date + '</div><p>';
|
'<div class="popover-footer">' +
|
||||||
|
'<div class="popover-date">' + comment.date + '</div>';
|
||||||
|
if (comment.updated) {
|
||||||
|
popupContent += '<div class="popover-updated">' +
|
||||||
|
'<i class="fa fa-pencil" aria-hidden="true"></i>' +
|
||||||
|
'<%= t('request_for_comments.comment_edited') %>' +
|
||||||
|
'</div>'
|
||||||
|
}
|
||||||
|
popupContent += '</div></p>'
|
||||||
});
|
});
|
||||||
var icon = $('*[data-file-id="' + fileid + '"] > .ace_gutter > .ace_gutter-layer > div:nth-child(' + (clusterRow + 1) + ')');
|
var icon = $('*[data-file-id="' + fileid + '"] > .ace_gutter > .ace_gutter-layer > div:nth-child(' + (clusterRow + 1) + ')');
|
||||||
icon.popover({
|
icon.popover({
|
||||||
|
@ -466,6 +466,7 @@ de:
|
|||||||
write_a_thank_you_node: "Wenn Sie möchten, können Sie sich bei allen Mitstudenten, die Ihnen bei der Beantwortung Ihrer Frage geholfen haben, bedanken:"
|
write_a_thank_you_node: "Wenn Sie möchten, können Sie sich bei allen Mitstudenten, die Ihnen bei der Beantwortung Ihrer Frage geholfen haben, bedanken:"
|
||||||
send_thank_you_note: "Senden"
|
send_thank_you_note: "Senden"
|
||||||
cancel_thank_you_note: "Nichts senden"
|
cancel_thank_you_note: "Nichts senden"
|
||||||
|
comment_edited: "bearbeitet"
|
||||||
sessions:
|
sessions:
|
||||||
create:
|
create:
|
||||||
failure: Fehlerhafte E-Mail oder Passwort.
|
failure: Fehlerhafte E-Mail oder Passwort.
|
||||||
|
@ -487,6 +487,7 @@ en:
|
|||||||
write_a_thank_you_node: "If you want, you can write a thank you note to all your commenters:"
|
write_a_thank_you_node: "If you want, you can write a thank you note to all your commenters:"
|
||||||
send_thank_you_note: "Send"
|
send_thank_you_note: "Send"
|
||||||
cancel_thank_you_note: "Don't send"
|
cancel_thank_you_note: "Don't send"
|
||||||
|
comment_edited: "edited"
|
||||||
sessions:
|
sessions:
|
||||||
create:
|
create:
|
||||||
failure: Invalid email or password.
|
failure: Invalid email or password.
|
||||||
|
Reference in New Issue
Block a user