app/soc/templates/soc/docs/edit.html
changeset 398 aa1e786a0b1d
parent 377 d94ec6f104cc
--- a/app/soc/templates/soc/docs/edit.html	Mon Oct 20 23:23:53 2008 +0000
+++ b/app/soc/templates/soc/docs/edit.html	Mon Oct 20 23:24:07 2008 +0000
@@ -18,8 +18,8 @@
 {% endblock %}
 {% block header_title %}
 {{ page.short_name }}
- {% if existing_doc %}
-   <a href="/docs/show/{{ existing_doc.partial_path }}/{{ existing_doc.link_name }}">"{{ existing_doc.title }}"</a>
+ {% if entity %}
+   <a href="/docs/show/{{ entity.partial_path }}/{{ entity.link_name }}">"{{ entity.title }}"</a>
  {% endif %}
 {% endblock %}
 
@@ -46,9 +46,9 @@
    <td>
     <input type="button" onclick="location.href='/'" value="Cancel"/>
    </td>
-   {% if existing_doc %}
+   {% if entity %}
    <td>
-    <input type="button" onclick="location.href='/docs/delete/{{ existing_doc.partial_path }}/{{ existing_doc.link_name }}'" value="Delete"/>
+    <input type="button" onclick="location.href='/docs/delete/{{ entity.partial_path }}/{{ entity.link_name }}'" value="Delete"/>
    </td>
    {% endif %}
    {% endblock %}