Browse Source

add template of mustache for wdg

cri 8 years ago
parent
commit
fb9a51ca1a
2 changed files with 38 additions and 0 deletions
  1. 20 0
      app/templates/list_item_home.txt
  2. 18 0
      app/templates/list_item_id.txt

+ 20 - 0
app/templates/list_item_home.txt

@@ -0,0 +1,20 @@
+{{#items}}
+  <div class="col-sm-6 col-md-4">
+    <div class="thumbnail">
+<h3><a href='/hack/path64/{{item.URI}}/'>{{item.title}}</a></h3>
+<h4>{{#item.creator}}</h4><small>by: <i>{{item.creator}}</i></small>{{/item.creator}}
+      <img src="..." alt="...">
+{{#item.player}}
+<iframe class="embed-iframe" frameBorder='0' seamless='seamless'  src='{{url}}'></iframe>
+{{/item.player}}
+      <div class="caption">
+        <p><i>{{item.description}}</i></p>
+        <p>
+<a href='/hack/path64/{{item.URI}}/' >
+<img title="Download" alt="[Download]" src="http://arkiwi.org/arav_icons/download_icon.png">
+</a>
+      </div>
+    </div>
+  </div>
+
+{{/items}}

+ 18 - 0
app/templates/list_item_id.txt

@@ -0,0 +1,18 @@
+{{#items}}
+  <div class="col-sm-6 col-md-4">
+    <div class="thumbnail">
+<h4>{{#item.creator}}</h4><small>by: <i>{{item.creator}}</i></small>{{/item.creator}}
+{{#item.player}}
+<iframe class="embed-iframe" frameBorder='0' seamless='seamless'  src='{{url}}'></iframe>
+{{/item.player}}
+      <div class="caption">
+        <p><i>{{item.description}}</i></p>
+        <p>
+<a target="_blank" href='http://storage.arkiwi.org/{{item.identifier}}' download>
+<img title="Download" alt="[Download]" src="http://arkiwi.org/arav_icons/download_icon.png">
+</a>
+      </div>
+    </div>
+  </div>
+
+{{/items}}