view template/links.jade.mustache @ 20:a8887fb93676

hide share data from the public. bug in links filter box Ignore-this: 2a390b207b8e9c8d430acd268b6d765d
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 17 Mar 2013 01:03:43 -0700
parents 7ef5365591fd
children 8008ec2fd763
line wrap: on
line source

doctype html
html
  head
    title {{desc}}
    {{> head.jade}}
  body
    | {{{loginBar}}}


    p
      a(href="{{toRoot}}/") href top
    
    h2 Showing {{desc}}

    p
      a(href="{{toRoot}}/addLink") Add link
    
    | Filter to: 
    input#filterTag(type='hidden', style="width: 300px")
    
    {{#links}}
    .link
      h3
        span.favicon(style="background-image: url(//www.google.com/s2/favicons?domain={{domain}})")
        a(href="{{href}}") {{displayDescription}}
      {{#extended}}
      .notes
        | {{extended}}
      {{/extended}}
      .tags
        | Tags:
        {{#tagWords}}
        a.tag(href="{{toRoot}}/tag/{{word}}", title="add/remove this tag from the current filter") {{word}}
        | 
        {{/tagWords}}
      .hrefShown
        a(href="{{href}}") {{href}}
      .modified
        | Modified: {{t}}
      {{#showPrivateData}}
      .shareWith
        | Share with:
        {{#shareWith}}
        span.person
          | {{label}}
        {{/shareWith}}
      {{/showPrivateData}}
      .edit
        a(href="{{toRoot}}/{{editLink}}") Edit
        
    {{/links}}

    p {{stats}}
    script
      var toRoot = "{{toRoot}}", user = "{{user}}";
    {{> tail.jade}}
    script(src="{{toRoot}}/static/links.js")