浏览代码

HUE-6118 [core] Re-introduce the top banner in Hue 4

Enrico Berti 8 年之前
父节点
当前提交
ec519be
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/common_header.mako
  2. 6 0
      desktop/core/src/desktop/templates/hue.mako

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

@@ -180,7 +180,7 @@ if USE_NEW_EDITOR.get():
 ${ hueIcons.symbols() }
 
 % if conf.CUSTOM.BANNER_TOP_HTML.get():
-  <div id="banner-top" class="banner">
+  <div class="banner">
     ${ conf.CUSTOM.BANNER_TOP_HTML.get() | n,unicode }
   </div>
 % endif

+ 6 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -94,6 +94,12 @@
 
 ${ hueIcons.symbols() }
 
+% if conf.CUSTOM.BANNER_TOP_HTML.get():
+<div class="banner">
+  ${ conf.CUSTOM.BANNER_TOP_HTML.get() | n,unicode }
+</div>
+% endif
+
 <div class="main-page">
   <nav class="navbar">
     <div class="navbar-inner top-nav">