github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/stories/views/row.html.got (about)

     1  
     2   <tr>
     3        <td class="mdl-data-table__cell--non-numeric story {{ if gt .story.NegativePoints 0 }}minus{{.story.NegativePoints}}{{end}}">
     4    <a href="{{.story.CanonicalURL}}" class="bubble"><b class="bubble-tick"></b>{{.story.CommentCountDisplay}}</a> 
     5    {{ if .currentUser.Admin }}
     6      <a href="/stories/{{.story.ID}}/update" class="button small grey flag">edit</a>
     7    {{ end }}
     8    {{ if .currentUser.CanFlag }}
     9      <a href="/stories/{{.story.ID}}/flag" class="button small grey flag" method="post">flag</a>
    10    {{end }}
    11  
    12    </td>
    13  
    14          <td class="mdl-data-table__cell--non-numeric">
    15  
    16        {{ if .currentUser.Anon }}
    17        <a href="/users/create" class="vote disabled" rel=nofollow>▲</a>
    18        <a href="{{.story.CanonicalURL}}" class="points">{{.story.Points}}</a>
    19        <a href="/users/create" class="vote disabled" rel=nofollow>▼</a>
    20        {{ else }}
    21        <a href="/stories/{{.story.ID}}/upvote" method="post" class="vote {{if not .currentUser.CanUpvote }}disabled{{ end }}" rel=nofollow>▲</a>
    22        <a href="{{.story.CanonicalURL}}" class="points">{{.story.Points}}</a>
    23        <a href="/stories/{{.story.ID}}/downvote" method="post" class="vote {{if not .currentUser.CanDownvote }}disabled{{ end }}" rel=nofollow>▼</a>
    24        {{ end }}
    25  
    26        </td>
    27  
    28          <td class="mdl-data-table__cell--non-numeric">
    29  
    30  
    31      <h4><a href="{{.story.PrimaryURL}}" class="name">{{.story.NameDisplay}}</a></h4>
    32        <ul class="tags">
    33            {{ range .story.Tags }}
    34              <li><a href="/stories?q=%23{{.}}">{{.}}</a></li>
    35            {{ end }}
    36        </ul>
    37          <a href="/stories?q={{ .story.Domain }}" class="domain">{{ .story.Domain }}</a>
    38          {{ if exists .story.GodocURL }}
    39            <a href="{{.story.GodocURL}}" class="domain docs">godoc.org</a>
    40          {{ end }}
    41          {{ if exists .story.VetURL }}
    42            <a href="{{.story.VetURL}}" class="domain docs">govet</a>
    43          {{ end }}
    44          
    45          <a href="/users/{{.story.UserID}}" class="user">{{.story.UserName}}</a>
    46          <a href="{{.story.CanonicalURL}}" class="date">{{timeago .story.CreatedAt}}</a>
    47  
    48        </td>
    49  
    50      </tr>