Browse Source

[beeswax] Show welcome screen (when metastore is empty)

The welcome screen wasn't ported to the jquery style yet.
This fix made it show up, instead of generating stack traces.
We still need to beautify it.
bc Wong 14 năm trước cách đây
mục cha
commit
6c0975bf0e
1 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 8 3
      apps/beeswax/src/beeswax/templates/index.mako

+ 8 - 3
apps/beeswax/src/beeswax/templates/index.mako

@@ -13,8 +13,13 @@
 ## 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.
-<%namespace name="wrappers" file="header_footer.mako" />
-${wrappers.head(toolbar=True)}
+<%!
+from desktop.views import commonheader, commonfooter
+%>
+<%namespace name="comps" file="beeswax_components.mako" />
+<%namespace name="layout" file="layout.mako" />
+${commonheader("Beeswax", "beeswax", "100px")}
+${layout.menubar(section='tables')}
 
 <div class="bw-welcome">
   <h2>Welcome to Beeswax for Hive</h2>
@@ -41,4 +46,4 @@ ${wrappers.head(toolbar=True)}
     </li>
   </ul>
 </div>
-${wrappers.foot()}
+${commonfooter()}