src/templates/annotationsListWidget.html
author veltr
Mon, 19 Mar 2012 18:46:17 +0100
branchpopcorn-port
changeset 834 573c7ca752e0
parent 833 33a5d5882be4
child 836 526f91f5253e
permissions -rw-r--r--
Adapted Stackgraph for Cinecast

{{! template for the annotation list widget }}
<div class='Ldt-AnnotationsListWidget'>
    <ul class='Ldt-AnnotationsList-ul'>
        {{#annotations}}
        <li id='Ldt-Annotation-li-{{id}}' class='Ldt-AnnotationsList-li Ldt-TraceMe'>
            <img class='Ldt-AnnotationsList-Thumbnail' src='{{thumbnail}}' />
            <div class='Ldt-AnnotationsList-Duration'>
                <span class='Ldt-AnnotationsList-Begin'>{{begin}}</span>
                <span class='Ldt-AnnotationsList-TcSeparator'>-</span>
                <span class='Ldt-AnnotationsList-End'>{{end}}</span>
            </div>
            <div class='Ldt-AnnotationsList-Title'>
            {{! if the url is not present, it means that the annotation exists
            in the current project }}
            {{^url}} <a href='#id={{id}}'> {{/url}}
            {{! otherwise link to url }}
            {{#url}} <a href='{{url}}#id={{id}}'> {{/url}}
                {{title}}
            </a>
            </div>
            <div class='Ldt-AnnotationsList-Description'>
                {{desc}}
            </div>
            {{#tags.length}}
            <ul class='Ldt-AnnotationsList-Tags'>
                {{#tags}}
                <li class='Ldt-AnnotationsList-Tag-Li'>
                    <div class='Ldt-AnnotationsList-Tag-Div'>{{.}}</div>
                </li>
                {{/tags}}
            </ul>
            {{/tags.length}}
        </li>
        {{/annotations}}
    </ul>
</div>