changeset 152:06223ed7d72b

do not show 'modify' in itemviews for nonexisting item, remove delimiter (looks ugly if there is nothing afterwards)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Mar 2011 22:35:54 +0100
parents 704a9b888fe9
children 12d0ff564156
files MoinMoin/config/default.py MoinMoin/templates/itemviews.html
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/default.py	Sun Mar 20 22:16:10 2011 +0100
+++ b/MoinMoin/config/default.py	Sun Mar 20 22:35:54 2011 +0100
@@ -371,8 +371,9 @@
         ('frontend.backrefs', L_('What refers here?'), False, ),
         ('frontend.sitemap', L_('Local Site Map'), True, ),
         ('frontend.similar_names', L_('Items with similar names'), False, ),
-        ('special.delimiter', None, None, ),
-        ('frontend.modify_item', L_('Modify'), False, ),
+        # note: when rendering a non-existing item, you'll be offered to
+        # create it (in the content area), so we do not offer "Modify":
+        ('frontend.modify_item', L_('Modify'), True, ),
         ('frontend.copy_item', L_('Copy'), True, ),
         ('frontend.rename_item', L_('Rename'), True, ),
         ('frontend.delete_item', L_('Delete'), True, ),
--- a/MoinMoin/templates/itemviews.html	Sun Mar 20 22:16:10 2011 +0100
+++ b/MoinMoin/templates/itemviews.html	Sun Mar 20 22:35:54 2011 +0100
@@ -46,9 +46,6 @@
             </li>
         {%- endif %}
 
-        {% if endpoint == 'special.delimiter' -%}
-            <li>*</li>
-        {%- endif %}
         {% if endpoint == 'special.comments' -%}
             <li class="toggleCommentsButton" style="display:none;">
                 <a href="#" onClick="toggleComments();return false;">{{ _('Comments') }}</a>