##// END OF EJS Templates
repo-remote: updated remote template to indicate pull/push remote sync differences.
marcink -
r2564:146d08cc default
parent child Browse files
Show More
@@ -1,69 +1,68 b''
1 <div class="panel panel-default">
1 <div class="panel panel-default">
2 <div class="panel-heading">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('Remote Sync')}</h3>
3 <h3 class="panel-title">${_('Remote Sync')}</h3>
4 </div>
4 </div>
5 <div class="panel-body">
5 <div class="panel-body">
6
6
7 <h4>${_('Manually pull/push changes from/to external URLs.')}</h4>
7 <h4>${_('Manually pull/push changes from/to external URLs.')}</h4>
8
8
9 %if c.rhodecode_db_repo.clone_uri or c.rhodecode_db_repo.push_uri:
9 <table>
10
11 <table>
12 % if c.rhodecode_db_repo.clone_uri:
13 <tr>
10 <tr>
14 <td><div style="min-width: 80px"><strong>${_('Pull url')}</strong></div></td>
11 <td><div style="min-width: 80px"><strong>${_('Pull url')}</strong></div></td>
15 <td><a href="${c.rhodecode_db_repo.clone_uri}">${c.rhodecode_db_repo.clone_uri_hidden}</a></td>
12 <td>
13 % if c.rhodecode_db_repo.clone_uri:
14 <a href="${c.rhodecode_db_repo.clone_uri}">${c.rhodecode_db_repo.clone_uri_hidden}</a>
15 % else:
16 ${_('This repository does not have any pull url set.')}
17 <a href="${h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name)}">${_('Set remote url.')}</a>
18 % endif
19 </td>
16 </tr>
20 </tr>
21 % if c.rhodecode_db_repo.clone_uri:
17 <tr>
22 <tr>
18 <td></td>
23 <td></td>
19 <td>
24 <td>
20 <p>
25 <p>
21 ${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')}
26 ${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')}
22 <br/>
27 <br/>
23 <code>
28 <code>
24 ${h.api_call_example(method='pull', args={"repoid": c.rhodecode_db_repo.repo_name})}
29 ${h.api_call_example(method='pull', args={"repoid": c.rhodecode_db_repo.repo_name})}
25 </code>
30 </code>
26 </p>
31 </p>
27 </td>
32 </td>
28 </tr>
33 </tr>
29 <tr>
34 <tr>
30 <td></td>
35 <td></td>
31 <td>
36 <td>
32 ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)}
37 ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)}
33 <div class="form">
38 <div class="form">
34 <div class="fields">
39 <div class="fields">
35 ${h.submit('remote_pull_%s' % c.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
40 ${h.submit('remote_pull_%s' % c.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
36 </div>
41 </div>
37 </div>
42 </div>
38 ${h.end_form()}
43 ${h.end_form()}
39 </td>
44 </td>
40 </tr>
45 </tr>
41 % endif
46 % endif
42
47
43 % if c.rhodecode_db_repo.push_uri:
44 <tr>
48 <tr>
45 <td><div style="min-width: 80px"><strong>${_('Push url')}</strong></div></td>
49 <td><div style="min-width: 80px"><strong>${_('Push url')}</strong></div></td>
46 <td><a href="${c.rhodecode_db_repo.push_uri_hidden}">${c.rhodecode_db_repo.push_uri_hidden}</a></td>
50 <td>
51 % if c.rhodecode_db_repo.push_uri:
52 <a href="${c.rhodecode_db_repo.push_uri_hidden}">${c.rhodecode_db_repo.push_uri_hidden}</a>
53 % else:
54 ${_('This repository does not have any push url set.')}
55 <a href="${h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name)}">${_('Set remote url.')}</a>
56 % endif
57 </td>
47 </tr>
58 </tr>
48 <tr>
59 <tr>
49 <td></td>
60 <td></td>
50 <td>
61 <td>
51 ${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='<a href="mailto:sales@rhodecode.com">sales@rhodecode.com</a>')|n}
62 ${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='<a href="mailto:sales@rhodecode.com">sales@rhodecode.com</a>')|n}
52 </td>
63 </td>
53 </tr>
64 </tr>
54 % endif
55
65
56 </table>
66 </table>
57
58 %else:
59
60 ${_('This repository does not have any remote mirror url set.')}
61 <a href="${h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name)}">${_('Set remote url.')}</a>
62 <br/>
63 <br/>
64 <button class="btn disabled" type="submit" disabled="disabled">
65 ${_('Pull changes from remote location')}
66 </button>
67 %endif
68 </div>
67 </div>
69 </div>
68 </div>
General Comments 0
You need to be logged in to leave comments. Login now