From e1f29a5d544759c85740218a0a63d972a6ca0475 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 27 2016 16:59:04 +0000 Subject: Fix the edit link when adding a comment to a ticket via SSE --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 3c76f66..85ab87f 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -248,6 +248,7 @@ def add_issue_comment(session, issue, comment, user, ticketfolder, REDIS.publish('pagure.%s' % issue.uid, json.dumps({ 'comment_id': issue_comment.id, 'issue_id': issue.id, + 'project': issue.project.fullname, 'comment_added': text2markdown(issue_comment.comment), 'comment_user': issue_comment.user.user, 'avatar_url': avatar_url_from_openid( diff --git a/pagure/static/issue_ev.js b/pagure/static/issue_ev.js index 5a872fd..f7af738 100644 --- a/pagure/static/issue_ev.js +++ b/pagure/static/issue_ev.js @@ -149,7 +149,7 @@ add_comment = function(data, username) { if ( data.comment_user == username) { _data += ' \ + + '" href="/' + data.project + '/issue/' + data.issue_id + '/comment/' + data.comment_id + '/edit"> \ \ \