src/templates/annotationsListWidget.html
author hamidouk
Thu, 26 Jan 2012 12:50:20 +0100
branchpopcorn-port
changeset 717 2dce6b9a04c4
parent 713 2857dc5aad3b
child 794 9dfb3a204a68
permissions -rw-r--r--
fixes template bug.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
585
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     1
{{! template for the annotation list widget }}
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     2
<div class='Ldt-AnnotationsListWidget'>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     3
  <!-- ugly div because we want to have a double border -->
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     4
  <div class='Ldt-Annotation-DoubleBorder'>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     5
    <ul>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     6
    {{#annotations}}
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
     7
      <li>
717
2dce6b9a04c4 fixes template bug.
hamidouk
parents: 713
diff changeset
     8
        {{! if the url is not present, it means that the annotation exists 
2dce6b9a04c4 fixes template bug.
hamidouk
parents: 713
diff changeset
     9
            in the current project }}
697
638313aab3f2 added a condition in case url are defined or not.
hamidouk
parents: 680
diff changeset
    10
        {{^url}}
680
28ffcd88cdfd follow mediafragment conventions for links.
hamidouk
parents: 588
diff changeset
    11
        <a href='#id={{id}}'>
697
638313aab3f2 added a condition in case url are defined or not.
hamidouk
parents: 680
diff changeset
    12
        {{/url}}
717
2dce6b9a04c4 fixes template bug.
hamidouk
parents: 713
diff changeset
    13
        {{! otherwise link to url }}
713
2857dc5aad3b fixed a bug in a template.
hamidouk
parents: 697
diff changeset
    14
        {{#url}}
697
638313aab3f2 added a condition in case url are defined or not.
hamidouk
parents: 680
diff changeset
    15
        <a href='{{url}}#id={{id}}'>
713
2857dc5aad3b fixed a bug in a template.
hamidouk
parents: 697
diff changeset
    16
        {{/url}}
588
78cf49152d4a got a decent-looking list.
hamidouk
parents: 585
diff changeset
    17
          <div style='overflow: auto; margin-top: 5px; margin-bottom: 5px;'>
78cf49152d4a got a decent-looking list.
hamidouk
parents: 585
diff changeset
    18
            <div class='Ldt-AnnotationsList-Caption'>
78cf49152d4a got a decent-looking list.
hamidouk
parents: 585
diff changeset
    19
              <img src='http://i.imgur.com/aoUlC.jpg'></img>
78cf49152d4a got a decent-looking list.
hamidouk
parents: 585
diff changeset
    20
            </div>
585
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    21
            <div class='Ldt-AnnotationsList-Duration'>{{begin}} - {{end}}</div>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    22
            <div class='Ldt-AnnotationsList-Title'>{{title}}</div>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    23
            <div class='Ldt-AnnotationsList-Description'>{{desc}}</div>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    24
          </div>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    25
        </a>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    26
      </li>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    27
    {{/annotations}}
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    28
    </ul>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    29
  </div>
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents:
diff changeset
    30
</div>