# HG changeset patch # User Marcin Kuzminski # Date 2020-06-23 08:50:56 # Node ID 56b5a39dd20880fbc97d0735cbaac81d7fb54a58 # Parent dc3600c49a8623dfb2866217a3cdace2e656c370 comment-history: UI fixes diff --git a/rhodecode/public/css/comments.less b/rhodecode/public/css/comments.less --- a/rhodecode/public/css/comments.less +++ b/rhodecode/public/css/comments.less @@ -447,6 +447,13 @@ form.comment-form { } } +.comment-version-select { + margin: 0px; + border-radius: inherit; + border-color: @grey6; + height: 20px; +} + .comment-type { margin: 0px; border-radius: inherit; diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -137,9 +137,7 @@ var _submitAjaxPOST = function(url, post $(this.commentType).prop('disabled', true); $(this.commentType).addClass('disabled'); var editInfo = - '
' + - 'editing' + - '
'; + ''; $(editInfo).insertBefore($(this.editButton).parent()); } @@ -554,7 +552,7 @@ var CommentsController = function() { }; failRenderCommit = function () { SwalNoAnimation.fire({ - html: 'Error while loading comment', + html: 'Error while loading comment history', title: '', }); }; diff --git a/rhodecode/templates/changeset/changeset_file_comment.mako b/rhodecode/templates/changeset/changeset_file_comment.mako --- a/rhodecode/templates/changeset/changeset_file_comment.mako +++ b/rhodecode/templates/changeset/changeset_file_comment.mako @@ -68,23 +68,25 @@ % if comment.history:
- ${_('Comment version')}: - + - %for comment_history in comment.history: - - %endfor + % for comment_history in comment.history: + + % endfor
% else: