Skip to content

Commit

Permalink
Remove ¶ char in diff & fix ProjectMemberRemoved (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewoutvans authored and phase committed Jul 31, 2018
1 parent 887e086 commit bf8466b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/project/Projects.scala
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class Projects @Inject()(stats: StatTracker,
val project = request.data.project
project.memberships.removeMember(user)
UserActionLogger.log(request.request, LoggedAction.ProjectMemberRemoved, project.id.getOrElse(-1),
s"'$user.name' is not a member of ${project.ownerName}/${project.name}", s"'$user.name' is a member of ${project.ownerName}/${project.name}")
s"'${user.name}' is not a member of ${project.ownerName}/${project.name}", s"'${user.name}' is a member of ${project.ownerName}/${project.name}")
Redirect(self.showSettings(author, slug))
}

Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/actionLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $('body').on('click', '.data-diff', function() {
var textDiff = diff.diff_main($('textarea[data-oldstate="' + idToDiff + '"]').val(), $('textarea[data-newstate="' + idToDiff + '"]').val());
diff.diff_cleanupSemantic(textDiff);

$('#modal-view-body').html(diff.diff_prettyHtml(textDiff));
$('#modal-view-body').html(diff.diff_prettyHtml(textDiff).replace(/¶/g, ''));
$('#modal-view').modal('show');

}).on('click', '.data-view-old', function() {
Expand Down

0 comments on commit bf8466b

Please sign in to comment.