Selaa lähdekoodia

[search] Fix version symlink

Romain Rigaux 12 vuotta sitten
vanhempi
commit
9157bf95af

+ 0 - 20
apps/search/hueversion.py

@@ -1,20 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# This file should be the one source of truth for for versions within HUE.
-# It is at least included by each of the default hue app's setup.py.
-
-VERSION="2.1.0"

+ 1 - 0
apps/search/hueversion.py

@@ -0,0 +1 @@
+../../VERSION

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

@@ -22,11 +22,13 @@ ${ commonheader(_('Home'), "home", user) | n,unicode }
 
 
 <%def name="app_link(app, label=None, extra_path = '')">
+  % if app in apps:
   <li>
     <a href="/${ app }${ extra_path }"  title="${ apps[app].nice_name }" class="app-tooltips">
       <i class="icon-double-angle-right"></i> ${ label }
     </a>
   </li>
+  % endif
 </%def>
 
 <div style="position: absolute;top:80px;right:30px"><img src="/static/art/hue-logo-subtle.png"/></div>