Эх сурвалжийг харах

[core] Top menu should always point to the original Pig editor

Romain Rigaux 9 жил өмнө
parent
commit
e34f92c

+ 1 - 1
desktop/core/src/desktop/api2.py

@@ -103,7 +103,7 @@ def get_documents(request):
     offset = (page - 1) * limit
     last = offset + limit
     documents = documents.all()[offset:last]
-
+  documents = documents.filter(is_history=True)
   return JsonResponse({
       'path': path,
       'directory': directory.to_dict(),

+ 1 - 1
desktop/core/src/desktop/templates/common_header.mako

@@ -441,7 +441,7 @@ from django.utils.translation import ugettext as _
              % endif
            % endif
            % if 'pig' in apps:
-             % if USE_NEW_EDITOR.get():
+             % if USE_NEW_EDITOR.get() and False:
              <li><a href="${ url('notebook:editor') }?type=pig"><img src="${ static(apps['pig'].icon_path) }" class="app-icon"/> ${_('Pig')}</a></li>
              % else:
              <li><a href="/${apps['pig'].display_name}"><img src="${ static(apps['pig'].icon_path) }" class="app-icon"/> ${_('Pig')}</a></li>