<commit_before>extends ../layout

block content
  div.news-item
    include ../partials/joinsite

    .page-header
        h3
            a(href=item.html_url)= item.title
        = 'submitted '
        span.timeago(title="#{item.created_at}")= timeago(item.created_at)
        = ' by '
        a(href='/news/user/' + item.user.login, class='user')= item.user.login
        h4
          div(class="item-summary")!= item.body
    include ../partials/postcomment

    each comment, index in comments
      div.comment
        a(href='/news/user/' + comment.user.login)= comment.user.login
        span.timeago(title="#{comment.created_at}")= timeago(comment.created_at)
        blockquote.content
            != comment.body
            button.btn.btn-primary(data-toggle='modal', data-target='##{index}modal', style= 'float: right;') View MD Source
            div(style= 'clear:both;')
        div(id= index + 'modal', tabindex= "-1", role= "dialog").modal.fade
          div.modal-dialog
            div.modal-content
              div.modal-header
                button.close(data-dismiss= "modal")
                  span(aria-hidden= "true", st) &times;
                h4.modal-title
                  Comment MD Source
              div.modal-body
                textarea(readonly, style="width: 100%; height: 300px;")
                  #{comment.mdBody}<commit_msg>Make ”View MD Source” buttons less conspicuous<commit_after>extends ../layout

block content
  div.news-item
    include ../partials/joinsite

    .page-header
        h3
            a(href=item.html_url)= item.title
        = 'submitted '
        span.timeago(title="#{item.created_at}")= timeago(item.created_at)
        = ' by '
        a(href='/news/user/' + item.user.login, class='user')= item.user.login
        h4
          div(class="item-summary")!= item.body
    include ../partials/postcomment

    each comment, index in comments
      div.comment
        a(href='/news/user/' + comment.user.login)= comment.user.login
        span.timeago(title="#{comment.created_at}")= timeago(comment.created_at)
        blockquote.content
            != comment.body
            button.btn.btn-link.btn-xs(data-toggle='modal', data-target='##{index}modal', style= 'float: right;') View MD Source
            div(style= 'clear:both;')
        div(id= index + 'modal', tabindex= "-1", role= "dialog").modal.fade
          div.modal-dialog
            div.modal-content
              div.modal-header
                button.close(data-dismiss= "modal")
                  span(aria-hidden= "true", st) &times;
                h4.modal-title
                  Comment MD Source
              div.modal-body
                textarea(readonly, style="width: 100%; height: 300px;")
                  #{comment.mdBody}
{'fraction_non_alphanumeric': 0.14085519223859144, 'fraction_numerical': 0.007186489399928135, 'mean_word_length': 1.9775401069518717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4296545', 'n_tokens_mistral': 850, 'n_tokens_neox': 809, 'n_words': 153}