changeset 2683:5a6660508036

Changed the order of items in blog meta data view and also removed unnecessary show/modify option in Global index
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 01 Aug 2014 17:51:20 +0530
parents 215f9b88f885
children 44a288038e11
files MoinMoin/templates/blog/modify_entry_meta.html MoinMoin/templates/blog/modify_main_meta.html MoinMoin/themes/__init__.py
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/blog/modify_entry_meta.html	Fri Aug 01 12:26:03 2014 +0200
+++ b/MoinMoin/templates/blog/modify_entry_meta.html	Fri Aug 01 17:51:20 2014 +0530
@@ -5,9 +5,9 @@
     <dl>
         {# TODO: Make blog_entry nameless #}
         {% for e in [
+            'summary',
             'itemtype',
             'contenttype',
-            'summary',
             'tags',
             'acl',
             'name',
@@ -20,9 +20,9 @@
 
 {% macro basic_meta_editor(form) %}
     {% for e in [
+        'summary',
         'itemtype',
         'contenttype',
-        'summary',
         'tags',
         'name',
         'ptime',
--- a/MoinMoin/templates/blog/modify_main_meta.html	Fri Aug 01 12:26:03 2014 +0200
+++ b/MoinMoin/templates/blog/modify_main_meta.html	Fri Aug 01 17:51:20 2014 +0530
@@ -4,13 +4,13 @@
     <h2>Blog metadata</h2>
     <dl>
         {% for e in [
+            'name',
             'itemtype',
             'contenttype',
             'summary',
             'tags',
+            'supertags',
             'acl',
-            'name',
-            'supertags',
             ] %}
             {{ forms.render(form[e]) }}
         {% endfor %}
@@ -19,11 +19,11 @@
 
 {% macro basic_meta_editor(form) %}
     {% for e in [
+        'name',
         'itemtype',
         'contenttype',
         'summary',
         'tags',
-        'name',
         'supertags',
         ] %}
         <div class="form-group">
--- a/MoinMoin/themes/__init__.py	Fri Aug 01 12:26:03 2014 +0200
+++ b/MoinMoin/themes/__init__.py	Fri Aug 01 17:51:20 2014 +0530
@@ -83,7 +83,7 @@
 
     def get_action_tabs(self, fqname, current_endpoint):
 
-        if not fqname:
+        if not fqname or not fqname.value:
             return []
 
         # TODO: Need to add fqname support to has_item in indexing.py