Commit 37036786 authored by Nick Poulden's avatar Nick Poulden
Browse files

Add comment 'problem' tag

parent c39c60af
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ Ext.define('Docs.view.Comments', {
                        '<tpl if="showCls">',
                            '<span class="target"> on {[this.target(values.target)]}</span>',
                        '</tpl>',
                        '<tpl if="action == \'problem\'">',
                            '<span class="problem">problem</span>',
                        '</tpl>',
                    '</div>',
                    '<tpl if="this.isMod() || this.isAuthor(values.author)"><a href="#" class="editComment">Edit</a><a href="#" class="deleteComment">Delete</a></tpl>',
                    '<div class="time" title="{[this.date(values.createdAt)]}">{[this.dateStr(values.createdAt)]}</div>',
@@ -115,13 +118,15 @@ Ext.define('Docs.view.Comments', {
            },
            moreComments: function(values) {
                var values = values[values.length - 1];
                if (values.total_rows > (values.offset + values.limit)) {
                if (values && values.total_rows > (values.offset + values.limit)) {
                    return [
                        '<a href="#" class="fetchMoreComments recent" rel="' + values.key.join(',') + '">',
                            '<span></span>Showing comments 1-' + (values.offset + values.limit) + ' of ' + values.total_rows + '. ',
                            'Click to load ' + values.limit + ' more...',
                        '</a>'
                    ].join('');
                } else {
                    return '';
                }
            }
        };
+8 −3
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@
      line-height: 22px;
      margin: 10px 10px 1px 4px;
      font-weight: bold; } }
  form.newCommentForm {
    display: none; }
  form.newCommentForm {
    margin: 20px 55px 10px 5px; }
  form.editCommentForm {
@@ -194,7 +192,14 @@
      left: 40px;
      font-weight: bold;
      top: 2px;
      font-size: 14px; }
      font-size: 14px;
      .problem {
        color: #fff;
        @include border-radius(2px);
        font-size: 0.7em;
        margin-left: 10px;
        padding: 0 3px 1px 3px;
        background-color: #aa0000; } }
    .time {
      position: absolute;
      right: 20px;