Merge pull request #250 from timrichardson/issue/1715
Add git pull and git push to the experimental mobile interface
This commit is contained in:
@@ -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'
|
||||
}}
|
||||
<!-- begin "git_pull" block -->
|
||||
<div class="center">
|
||||
<h2>{{=T('This will pull changes from the remote repo for application "%s"?', app)}}</h2>
|
||||
{{=dialog}}
|
||||
</div>
|
||||
<!-- end "git_pull" block -->
|
||||
@@ -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'
|
||||
}}
|
||||
<!-- begin "git_push" block -->
|
||||
<h2>{{=T('This will push changes to the remote repo for application "%s".', app)}}</h2>
|
||||
<center>
|
||||
{{=form}}
|
||||
</center>
|
||||
<!-- end "git_push" block -->
|
||||
@@ -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))}}
|
||||
|
||||
Reference in New Issue
Block a user