##// 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
@@ -6,14 +6,19 b''
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>
@@ -38,12 +43,18 b''
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>
@@ -51,19 +62,7 b''
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