extends ../layout

block content
    if !user
        .alert.alert-info
            i.fa.fa-cloud-upload
            strong Join this site via pull request!
            |  Make the site better and become a full member. See the <a href="/about">about page</a> for more details.

    .page-header
        h4
            a(href=item.url)= item.title
            if item.summary
                | &nbsp;
                a(href="#", class="show-summary")
                    | ...
                br
                p(class='hidden summary')
                    em= item.summary
        | submitted
        span.timeago(title="#{item.created}")= timeago(item.created)
        |  by
        a(href='/news/user/' + item.poster.username)= item.poster.username
        |  from
        a(href='/news/source/' + item.source)= item.source
    if user
        .row
          form(action=item._id + '/comments', method='POST')
            textarea.form-control(name='contents')
            br
            input.btn.btn-primary(type='submit', value='Add Comment')

    each comment, index in comments
      p.comment
        a(href='/news/user/' + comment.poster.username)= comment.poster.username
        &nbsp;
        span.timeago(title="#{comment.created}")= timeago(comment.created)
        blockquote.content= comment.contents



extends ../layout

block content
    if !user
        .alert.alert-info
            i.fa.fa-cloud-upload
            strong Join this site via pull request!
            |  Make the site better and become a full member. See the <a href="/about">about page</a> for more details.

    .page-header
        h4
            a(href=item.url)= item.title
            if item.summary
                | &nbsp;
                a(href="#", class="show-summary")
                    | ...
                br
                p(class='hidden summary')
                    em= item.summary
        = 'submitted '
        span.timeago(title="#{item.created}")= timeago(item.created)
        = ' by '
        a(href='/news/user/' + item.poster.username)= item.poster.username
        = ' from '
        a(href='/news/source/' + item.source)= item.source
    if user
        .row
          form(action=item._id + '/comments', method='POST')
            textarea.form-control(name='contents')
            br
            input.btn.btn-primary(type='submit', value='Add Comment')

    each comment, index in comments
      p.comment
        a(href='/news/user/' + comment.poster.username)= comment.poster.username
        &nbsp;
        span.timeago(title="#{comment.created}")= timeago(comment.created)
        blockquote.content= comment.contents



Fix spacing in comments view
Fix spacing in comments view