Skip to content

Commit

Permalink
Discussion-link on Convert-Page leads to NONAMEGIVEN fixes #1546
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHaase committed Feb 18, 2024
1 parent 85707b9 commit 3cd697c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/moin/templates/itemviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@
{%- if not_trash and (storage.has_item(supp_name) or user.may.write(supp_name)) %}
{% set title = _('Discuss contents of this item') %}
<li>
<a class="moin-subitem-discuss" href="{{ url_for('frontend.show_item', item_name=supp_name) }}" title="{{ title }}" rel="nofollow">{{ a_label(icon_class, _(sub_item_name)) }}</a>
<a class="moin-subitem-discuss" href="{{ url_for('frontend.show_item', item_name = supp_name) }}"
title="{{ title }}" rel="nofollow">{{ a_label(icon_class, _(sub_item_name)) }}
</a>
</li>
{%- endif %}
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion src/moin/themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def setup_jinja_env():
'storage': flaskg.storage,
'clock': flaskg.clock,
'cfg': app.cfg,
'item_name': '@NONAMEGIVEN', # XXX can we just use '' ?
'item_name': request.view_args.get('item_name', ''),
'url_for_item': url_for_item,
'get_fqname': get_fqname,
'get_editor_info': lambda meta: get_editor_info(meta),
Expand Down

0 comments on commit 3cd697c

Please sign in to comment.