Say "generate" rather than "edit" when there's no text in the boxes

- Legacy-Id: 4378
This commit is contained in:
Ole Laursen 2012-05-03 19:14:22 +00:00
parent 0cb29a7d10
commit 6ebd2c47ca

View file

@ -13,7 +13,7 @@
<div class="writeup">
<h2>{{ title }}</h2>
{% if can_edit %}<a href="{{ url }}" class="edit">Edit {{ title }}</a>{% endif %}
{% if can_edit %}<a href="{{ url }}" class="edit">{% if text %}Edit{% else %}Generate{% endif %} {{ title }}</a>{% endif %}
<pre {% if can_edit %}class="editable"{% endif %}>
{{ text }}