소스 검색

[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 년 전
부모
커밋
6c0975bf0e
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  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()}