فهرست منبع

HUE-4063 [home] 'done' button on wizard redirects to old home2

Logic switched, we should always point to home2, url.py does the
switch in desktop.
Romain Rigaux 10 سال پیش
والد
کامیت
7f8ebc4048
1فایلهای تغییر یافته به همراه2 افزوده شده و 8 حذف شده
  1. 2 8
      apps/about/src/about/templates/admin_wizard.mako

+ 2 - 8
apps/about/src/about/templates/admin_wizard.mako

@@ -188,7 +188,7 @@ ${ header.menubar() }
               <h2 class="card-heading simple">${ _('Use the applications') }</h2>
 
               <div class="card-body">
-                <a href="${ url('desktop.views.home') }" style="padding-left: 2px; line-height: 24px; margin-right: 4px"><i class="fa fa-home" style="font-size: 24px; color: #338bb8; vertical-align: middle;"></i> ${ _('Hue Home') }</a>
+                <a href="${ url('desktop.views.home2') }" style="padding-left: 2px; line-height: 24px; margin-right: 4px"><i class="fa fa-home" style="font-size: 24px; color: #338bb8; vertical-align: middle;"></i> ${ _('Hue Home') }</a>
               </div>
             </div>
 
@@ -224,14 +224,8 @@ ${ header.menubar() }
           ${ _('Learn more about Hue and Hadoop on') } <a href="http://gethue.com" target="_blank">http://gethue.com</a>.
           <span class="muted">${ _('Hue and the Hue logo are trademarks of Cloudera, Inc.') }</span>
           % if not user.is_authenticated():
-            <%
-              home_url = url('desktop.views.home')
-              from desktop.conf import USE_NEW_EDITOR
-              if USE_NEW_EDITOR.get():
-                home_url = url('desktop.views.home2')
-            %>
             <br/>
-            <a href="${ home_url }" class="btn btn-primary" style="margin-top: 50px;margin-bottom: 20px"><i class="fa fa-sign-in"></i> ${ _('Sign in now!') }</a>
+            <a href="${ url('desktop.views.home2') }" class="btn btn-primary" style="margin-top: 50px;margin-bottom: 20px"><i class="fa fa-sign-in"></i> ${ _('Sign in now!') }</a>
           % endif
         </p>
        </div>