##// 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 1 <div class="panel panel-default">
2 2 <div class="panel-heading">
3 3 <h3 class="panel-title">${_('Remote Sync')}</h3>
4 4 </div>
5 5 <div class="panel-body">
6 6
7 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:
10
11 9 <table>
12 % if c.rhodecode_db_repo.clone_uri:
13 10 <tr>
14 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 20 </tr>
21 % if c.rhodecode_db_repo.clone_uri:
17 22 <tr>
18 23 <td></td>
19 24 <td>
20 25 <p>
21 26 ${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')}
22 27 <br/>
23 28 <code>
24 29 ${h.api_call_example(method='pull', args={"repoid": c.rhodecode_db_repo.repo_name})}
25 30 </code>
26 31 </p>
27 32 </td>
28 33 </tr>
29 34 <tr>
30 35 <td></td>
31 36 <td>
32 37 ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)}
33 38 <div class="form">
34 39 <div class="fields">
35 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 41 </div>
37 42 </div>
38 43 ${h.end_form()}
39 44 </td>
40 45 </tr>
41 46 % endif
42 47
43 % if c.rhodecode_db_repo.push_uri:
44 48 <tr>
45 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 58 </tr>
48 59 <tr>
49 60 <td></td>
50 61 <td>
51 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 63 </td>
53 64 </tr>
54 % endif
55 65
56 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 67 </div>
69 68 </div>
General Comments 0
You need to be logged in to leave comments. Login now