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 13 years ago
parent
commit
6c0975bf0e
1 changed files with 8 additions and 3 deletions
  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.
 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ## See the License for the specific language governing permissions and
 ## See the License for the specific language governing permissions and
 ## limitations under the License.
 ## 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">
 <div class="bw-welcome">
   <h2>Welcome to Beeswax for Hive</h2>
   <h2>Welcome to Beeswax for Hive</h2>
@@ -41,4 +46,4 @@ ${wrappers.head(toolbar=True)}
     </li>
     </li>
   </ul>
   </ul>
 </div>
 </div>
-${wrappers.foot()}
+${commonfooter()}