If draft name has rfcXXXX-bis or rfcXXXXbis then add rfcXXXX to diff context menu. Fixes #460 (7 years old ticket). Commit ready for merge
- Legacy-Id: 14374
This commit is contained in:
parent
7b4727541a
commit
23d053ea53
|
@ -536,3 +536,8 @@ def role_names(roles):
|
||||||
@register.filter()
|
@register.filter()
|
||||||
def zaptmp(s):
|
def zaptmp(s):
|
||||||
return re.sub(r'/tmp/tmp[^/]+/', '', s)
|
return re.sub(r'/tmp/tmp[^/]+/', '', s)
|
||||||
|
|
||||||
|
@register.filter()
|
||||||
|
def rfcbis(s):
|
||||||
|
m = re.search('^.*-rfc(\d+)-?bis(-.*)?$', s)
|
||||||
|
return None if m is None else 'rfc' + m.group(1)
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
({{ time|date:"Y-m-d" }})
|
({{ time|date:"Y-m-d" }})
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if doc.name|rfcbis %}
|
||||||
|
<option value="{{ doc.name|rfcbis }}">
|
||||||
|
{{ doc.name|rfcbis }}
|
||||||
|
</option>
|
||||||
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,6 +57,11 @@
|
||||||
({{ time|date:"Y-m-d" }})
|
({{ time|date:"Y-m-d" }})
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if doc.name|rfcbis %}
|
||||||
|
<option value="{{ doc.name|rfcbis }}">
|
||||||
|
{{ doc.name|rfcbis }}
|
||||||
|
</option>
|
||||||
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue