Explorar o código

HUE-1331 [core] Update calculator example

Romain Rigaux %!s(int64=12) %!d(string=hai) anos
pai
achega
1cf0ceb

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

@@ -16,7 +16,7 @@
 ${'<'}%!from desktop.views import commonheader, commonfooter %>
 ${'<'}%namespace name="shared" file="shared_components.mako" />
 
-${'$'}{commonheader("${" ".join(word.capitalize() for word in app_name.split("_"))}", "${app_name}", "100px")}
+${'$'}{commonheader("${" ".join(word.capitalize() for word in app_name.split("_"))}", "${app_name}", user, "100px")}
 ${'$'}{shared.menubar(section='mytab')}
 
 ${'#'}# Use double hashes for a mako template comment

+ 1 - 1
docs/sdk/sdk.md

@@ -270,7 +270,7 @@ to include a simple form:
     <%!from desktop.views import commonheader, commonfooter %>
     <%namespace name="shared" file="shared_components.mako" />
 
-    ${commonheader("Calculator", "calculator", "100px")}
+    ${commonheader("Calculator", "calculator", user, "100px")}
 
     ## Main body