diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -3806,6 +3806,11 @@ class ChangesetComment(Base, BaseModel): return self.pull_request_version_id < version @property + def commit_id(self): + """New style naming to stop using .revision""" + return self.revision + + @property def resolved(self): return self.resolved_by[0] if self.resolved_by else None diff --git a/rhodecode/public/css/code-block.less b/rhodecode/public/css/code-block.less --- a/rhodecode/public/css/code-block.less +++ b/rhodecode/public/css/code-block.less @@ -1063,6 +1063,10 @@ input.filediff-collapse-state { background: @color5; color: white; } + &[op="comments"] { /* comments on file */ + background: @grey4; + color: white; + } } } 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 @@ -65,7 +65,7 @@ tr.inline-comments div { float: left; padding: 0.4em 0.4em; - margin: 3px 5px 0px -10px; + margin: 2px 4px 0px 0px; display: inline-block; min-height: 0; @@ -76,12 +76,13 @@ tr.inline-comments div { font-family: @text-italic; font-style: italic; background: #fff none; - color: @grey4; + color: @grey3; border: 1px solid @grey4; white-space: nowrap; text-transform: uppercase; - min-width: 40px; + min-width: 50px; + border-radius: 4px; &.todo { color: @color5; 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 @@ -33,46 +33,82 @@