]> git.parisson.com Git - telemeta.git/commitdiff
add info for deleted revision resources
authoryomguy <yomguy@parisson.com>
Wed, 30 Mar 2011 10:55:18 +0000 (12:55 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 30 Mar 2011 10:55:18 +0000 (12:55 +0200)
telemeta/templates/telemeta_default/home.html

index 6c1e32cef98386a642f870ef8ff722d088a958d4..3c0dcae342de6c1b7a7cc88f95c0b7ff676ef492 100644 (file)
      <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
         <td>{{ r.revision.time }}</td>
         <td>
-        {% if r.revision.element_type == "collection" and r.element %}
-          <a href="{% url telemeta-collection-detail r.element.public_id %}">{{ r.element.title }}</a>
-        {% endif %}
-        {% if r.revision.element_type == "item" and r.element %}
-          <a href="{% url telemeta-item-detail r.element.public_id %}">
-           {% if r.element.title != '' %}{{ r.element.title }}{% else %}{{ r.element.public_id }}{% endif %}</a>
-        {% endif %}
-        {% if r.revision.element_type == "marker" and r.element %}
-          <a href="{% url telemeta-item-detail-marker r.element.public_id %}">{{ r.element.title }}</a>
+        {% if r.element %}
+            {% if r.revision.element_type == "collection" %}
+            <a href="{% url telemeta-collection-detail r.element.public_id %}">{{ r.element.title }}</a>
+            {% endif %}
+            {% if r.revision.element_type == "item" %}
+            <a href="{% url telemeta-item-detail r.element.public_id %}">
+            {% if r.element.title != '' %}{{ r.element.title }}{% else %}{{ r.element.public_id }}{% endif %}</a>
+            {% endif %}
+            {% if r.revision.element_type == "marker" %}
+            <a href="{% url telemeta-item-detail-marker r.element.public_id %}">{{ r.element.title }}</a>
+            {% endif %}
+        {% else %}
+            {% trans "deleted" %}
         {% endif %}
         </td>
         <td>{{ r.revision.element_type }}</td>