Display the create wikipedia checkbox on homonyms links. Correct bug #17631.
--- a/src/jocondelab/templates/jocondelab/term_edit.html Mon Jul 29 20:50:23 2013 +0200
+++ b/src/jocondelab/templates/jocondelab/term_edit.html Mon Jul 29 21:04:05 2013 +0200
@@ -114,11 +114,13 @@
<a href="{{term.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_right.png" > {{term.wp_label}}</a>
{% else %}
<a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/wikipedia_search.png" ></a>
- </span>
- <span>
- {% trans 'Créer page WK' %} : <input type="checkbox" id="{{term.id}}-wikipedia-edition" class="wikipedia_edition" name="wikipedia_edition" {% if term.wikipedia_edition %}checked="checked"{%endif%} {%if term.validated%}disabled="disabled"{% endif %} alt="{% trans 'Need wikipedia article'%}"/>
{% endif %}
</span>
+ {% if not term.wikipedia_url or term.url_status == 2 %}
+ <span>
+ {% trans 'Créer page WK' %} : <input type="checkbox" id="{{term.id}}-wikipedia-edition" class="wikipedia_edition" name="wikipedia_edition" {% if term.wikipedia_edition %}checked="checked"{%endif%} {%if term.validated%}disabled="disabled"{% endif %} alt="{% trans 'Need wikipedia article'%}"/>
+ </span>
+ {% endif %}
<span>
{% if term.wikipedia_revision_id %}
<a href="{{term.wikipedia_revision_permalink}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/clock_arrow.png" ></a>