From f387c4c358899f6873e16fdfe0a43c54f9c93dc3 Mon Sep 17 00:00:00 2001 From: Tim Richardson Date: Sat, 12 Oct 2013 17:08:02 +1100 Subject: [PATCH] Add git pull and git push to the experimental mobile interface --- .../admin/views/default.mobile/git_pull.html | 15 +++++++++++++++ .../admin/views/default.mobile/git_push.html | 15 +++++++++++++++ applications/admin/views/default.mobile/site.html | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 applications/admin/views/default.mobile/git_pull.html create mode 100644 applications/admin/views/default.mobile/git_push.html 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))}}