diff --git a/applications/admin/views/default.mobile/git_pull.html b/applications/admin/views/default.mobile/git_pull.html new file mode 100644 index 00000000..06bdabbc --- /dev/null +++ b/applications/admin/views/default.mobile/git_pull.html @@ -0,0 +1,15 @@ +{{extend 'default.mobile/layout.html'}} +{{ +dlg = dialog +smt_button = dlg.element(_type="submit") +smt_button['_class'] = 'btn' +smt_button['_style'] = 'margin-right:4px;' +ccl_button = dlg.element(_type="button") +ccl_button['_class'] = 'btn' +}} + +
+

{{=T('This will pull changes from the remote repo for application "%s"?', app)}}

+{{=dialog}} +
+ \ No newline at end of file diff --git a/applications/admin/views/default.mobile/git_push.html b/applications/admin/views/default.mobile/git_push.html new file mode 100644 index 00000000..55d6deac --- /dev/null +++ b/applications/admin/views/default.mobile/git_push.html @@ -0,0 +1,15 @@ +{{extend 'default.mobile/layout.html'}} +{{ +frm = form +smt_button = frm.element(_type="submit") +smt_button['_class'] = 'btn' +smt_button['_style'] = 'margin-right:4px;' +ccl_button = frm.element(_type="button") +ccl_button['_class'] = 'btn' +}} + +

{{=T('This will push changes to the remote repo for application "%s".', app)}}

+
+{{=form}} +
+ \ No newline at end of file diff --git a/applications/admin/views/default.mobile/site.html b/applications/admin/views/default.mobile/site.html index 8a4b33c5..e43d0cef 100644 --- a/applications/admin/views/default.mobile/site.html +++ b/applications/admin/views/default.mobile/site.html @@ -25,6 +25,7 @@ {{pass}} {{=LI(A(T('Errors'),_href=URL('errors',args=a)))}} {{=LI(A(T('Clean'),_href=URL('cleanup',args=a)))}} + {{if not os.path.exists('applications/%s/compiled' % a):}} {{=LI(A(T('Compile'),_href=URL('compile_app',args=a)))}} {{else:}} @@ -33,6 +34,8 @@ {{=LI(A(T('Remove compiled'),_href=URL('remove_compiled_app',args=a)))}} {{pass}} {{pass}} + {{=LI(A(T('Git Pull'),_href=URL('git_pull',args=a)))}} + {{=LI(A(T('Git Push'),_href=URL('git_push',args=a)))}} {{if a!=request.application:}} {{=LI(A(T('Uninstall'),_href=URL('uninstall',args=a)))}} {{=LI(button_enable(URL('enable',args=a), a))}}