瀏覽代碼

HUE-8929 [home] Remove "Hive Query" from drop down of "New Documents" icon if not configured

Romain 6 年之前
父節點
當前提交
d3256eaa94
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/core/src/desktop/templates/home.mako

+ 2 - 2
desktop/core/src/desktop/templates/home.mako

@@ -121,7 +121,7 @@ ${ commonheader(_('Welcome Home'), "home", user, request) | n,unicode }
            <li class="dropdown">
               <a href="#" data-toggle="dropdown"><i class="fa fa-plus-circle"></i> ${_('New document')}</a>
               <ul class="dropdown-menu" role="menu">
-                % if 'beeswax' in apps:
+                % if 'hive' in apps:
                   <li><a href="${ url('beeswax:index') }"><img src="${ static(apps['beeswax'].icon_path) }" class="app-icon" alt="${ _('Hive icon') }"/> ${_('Hive Query')}</a></li>
                 % endif
                 % if 'impala' in apps:
@@ -394,7 +394,7 @@ ${ commonshare() | n,unicode }
 
     $("#tagsNewBtn").on("click", function () {
       var tag_name = $("#tagsNew").val();
-  
+
     if ($.trim(tag_name) == "") {
       $("#saveProjectAlert span").text("${_('File name is required.')}");
       $("#saveProjectAlert").show();