浏览代码

[SDK] Fix template header

bc Wong 13 年之前
父节点
当前提交
2f0896a5b9
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. 11 7
      desktop/core/src/desktop/app_template/src/app_name/templates/index.mako

+ 11 - 7
desktop/core/src/desktop/app_template/src/app_name/templates/index.mako

@@ -13,19 +13,23 @@
 ## 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="shared" file="shared_components.mako" />
+${'<'}%!from desktop.views import commonheader, commonfooter %>
 
-${'$'}{shared.header("${" ".join(word.capitalize() for word in app_name.split("_"))}")}
+${'$'}{commonheader("${" ".join(word.capitalize() for word in app_name.split("_"))}", "${app_name}", "100px")}
 
 ${'#'}# use double hashes for a mako template comment
 
-${'#'}# this id in the div below ("index") is stripped by Hue.JFrame
-${'#'}# and passed along as the "view" argument in its onLoad event
+<div class="subnav subnav-fixed">
+	<div class="container-fluid">
+	<ul class="nav nav-pills">
+		<li></li>
+	</ul>
+	</div>
+</div>
 
-${'#'}# the class 'jframe_padded' will give the contents of your window a standard padding
-<div id="index" class="view jframe_padded">
+<div class="container-fluid">
   <h2>${" ".join(word.capitalize() for word in app_name.split("_"))} app is successfully setup!</h2>
   ## Pass through literal $
   <p>It's now ${'$'}{date}.</p>
 </div>
-${'$'}{shared.footer()}
+${'$'}{shared.footer()}