src/templates/annotationsListWidget.html
changeset 843 75ba66457232
parent 842 4ae2247a59f4
child 870 2c025db10a10
equal deleted inserted replaced
53:7b55777486c3 843:75ba66457232
       
     1 {{! template for the annotation list widget }}
       
     2 <div class='Ldt-AnnotationsListWidget'>
       
     3     <ul class='Ldt-AnnotationsList-ul'>
       
     4         {{#annotations}}
       
     5         <li id='Ldt-Annotation-li-{{id}}' class='Ldt-AnnotationsList-li Ldt-TraceMe'>
       
     6             {{^url}} <a href='#id={{id}}'> {{/url}}
       
     7             {{! otherwise link to url }}
       
     8             {{#url}} <a href='{{url}}'> {{/url}}
       
     9                 <img class='Ldt-AnnotationsList-Thumbnail' src='{{thumbnail}}' />
       
    10             </a>
       
    11             <div class='Ldt-AnnotationsList-Duration'>
       
    12                 <span class='Ldt-AnnotationsList-Begin'>{{begin}}</span>
       
    13                 <span class='Ldt-AnnotationsList-TcSeparator'>-</span>
       
    14                 <span class='Ldt-AnnotationsList-End'>{{end}}</span>
       
    15             </div>
       
    16             <div class='Ldt-AnnotationsList-Title'>
       
    17             {{! if the url is not present, it means that the annotation exists
       
    18             in the current project }}
       
    19                 {{title}}
       
    20             </div>
       
    21             <div class='Ldt-AnnotationsList-Description'>
       
    22             {{^url}} <a href='#id={{id}}'> {{/url}}
       
    23             {{! otherwise link to url }}
       
    24             {{#url}} <a href='{{url}}'> {{/url}}
       
    25                 {{desc}}
       
    26                 </a>
       
    27             </div>
       
    28             {{#tags.length}}
       
    29             <ul class='Ldt-AnnotationsList-Tags'>
       
    30                 {{#tags}}
       
    31                 <li class='Ldt-AnnotationsList-Tag-Li'>
       
    32                     <div class='Ldt-AnnotationsList-Tag-Div'>{{.}}</div>
       
    33                 </li>
       
    34                 {{/tags}}
       
    35             </ul>
       
    36             {{/tags.length}}
       
    37         </li>
       
    38         {{/annotations}}
       
    39     </ul>
       
    40 </div>