Skip to content

Commit 6ebd2c4

Browse files
committed
Say "generate" rather than "edit" when there's no text in the boxes
- Legacy-Id: 4378
1 parent 0cb29a7 commit 6ebd2c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/templates/idrfc/document_writeup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="writeup">
1414
<h2>{{ title }}</h2>
1515

16-
{% if can_edit %}<a href="{{ url }}" class="edit">Edit {{ title }}</a>{% endif %}
16+
{% if can_edit %}<a href="{{ url }}" class="edit">{% if text %}Edit{% else %}Generate{% endif %} {{ title }}</a>{% endif %}
1717

1818
<pre {% if can_edit %}class="editable"{% endif %}>
1919
{{ text }}

0 commit comments

Comments
 (0)