]> git.parisson.com Git - telemeta.git/commitdiff
misc template fixes
authorolivier <>
Thu, 10 May 2007 20:52:00 +0000 (20:52 +0000)
committerolivier <>
Thu, 10 May 2007 20:52:00 +0000 (20:52 +0000)
telemeta/templates/collection_detail.html
telemeta/templates/mediaitem_detail.html
telemeta/templates/search_results.html

index 686a7f767fa7254694140c1720b7a717267650e4..1a2a9289a652491fdfb633ff464240fc38bdf010 100644 (file)
@@ -7,7 +7,7 @@
     {% for field in object.list %}
         {% ifnotequal field.name "title" %}
 
-        <li><b>{{ field.name }}</b> : {{ field.value }}</li>
+        <li><b>{{ field.name|capfirst }}</b> : {{ field.value }}</li>
 
         {% endifnotequal %}
     {% endfor %}
index d013ba4a8a9069bb55103e11592e417346012ba3..1aa0c7df8971b6073e4a4486d9ff483152ede89d 100644 (file)
@@ -3,7 +3,7 @@
 {% block content %}
 {% if item %}
     <div class="item_visualization">
-      <img src="{% url telemeta-item-visualize item.id|urlencode,visualizer_id %}">
+      <img src="{% url telemeta-item-visualize item.id,visualizer_id %}">
       <form method="GET">
         <select name="visualizer_id" onchange="this.form.submit()">
           {% for v in visualizers %}
index b869b6b9af7cacf4189606e68a7c3d979676cf97..e0aba8bb55919cad96c278abcb5ece0f62393912 100644 (file)
@@ -4,13 +4,20 @@
 <h3>Search: {{ pattern }}</h3>
 {% if collections %}
     <h4>Collections</h4>
-    <ul>
+    <table class="resources-list">
     {% for c in collections %}
-        <li><b>{{ c.title }}</b>
-            <a href="{% url telemeta-collection-detail c.id %}">View</a>
-            <a href="#">Edit</a>
-            </li>
+        <tr>
+            <td>
+            <a href="{% url telemeta-collection-detail c.id %}">
+            {{ c.title }}
+            </a>
+            </td>
+            <td>
+                [{{c.id}}]
+            </td>
+        </tr>
     {% endfor %}
+    </table>
     </ul>
 {% endif %}
 {% if items %}