1. Thomas Waldmann
  2. moin-2.0

Commits

Ashutosh Singla  committed e615e3b

Fixed broken links.

  • Participants
  • Parent commits e5d44d1
  • Branches default

Comments (0)

Files changed (4)

File MoinMoin/apps/admin/templates/admin/trash.html

View file
  • Ignore whitespace
                     <td class="moin-wordbreak">{{ result.comment }}</td>
                     <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('show') }}</a></td>
                     {% if user.may.write(result.fqname) -%}
-                    <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('History') }}</a></td>
+                    <td><a href="{{ url_for('frontend.history', item_name=result.fqname) }}">{{ _('History') }}</a></td>
                     <td><a href="{{ url_for('frontend.destroy_item', item_name=result.fqname) }}">{{ _('Destroy') }}</a></td>
                     {%- endif %}
                 </tr>

File MoinMoin/apps/frontend/views.py

View file
  • Ignore whitespace
         Check whether the names present in the previous meta are not taken by some other item.
         """
         try:
-            validate_name(state['meta'], state[FQNAME], state['meta'].get(ITEMID))
+            validate_name(state['meta'], state['meta'].get(ITEMID))
             return True
         except NameNotValidError as e:
             self.invalid_name_msg = _(e)

File MoinMoin/templates/delete.html

View file
  • Ignore whitespace
 {% import "forms.html" as forms %}
 {% extends theme("show.html") %}
 
-{% set title = _("Delete '%(item_name)s'", item_name=item.name) %}
+{% set title = _("Delete '%(item_name)s'", item_name=fqname.value) %}
 
 {% block content %}
 <h1>{{ title }}</h1>
 <div class="moin-form">
-{{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=item.name)) }}
+{{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=fqname)) }}
   {{ forms.render_errors(form) }}
   <dl>
     {{ forms.render(form['comment']) }}

File MoinMoin/templates/rename.html

View file
  • Ignore whitespace
 {% import "forms.html" as forms %}
 {% extends theme("show.html") %}
 
-{% set title = _("Rename '%(item_name)s'", item_name=item.name) %}
-
+{% set title = _("Rename '%(item_name)s'", item_name=item.fqname.value) %}
 {% block content %}
 <h1>{{ title }}</h1>
 <div class="moin-form">
-{{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=item.name)) }}
+{{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=fqname)) }}
   {{ forms.render_errors(form) }}
   <dl>
     {{ forms.render(form['target']) }}