Show More
@@ -1,116 +1,116 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Fork repository %s') % c.repo_name} |
|
5 | ${_('Fork repository %s') % c.repo_name} | |
6 | %if c.rhodecode_name: |
|
6 | %if c.rhodecode_name: | |
7 | · ${c.rhodecode_name} |
|
7 | · ${c.rhodecode_name} | |
8 | %endif |
|
8 | %endif | |
9 | </%def> |
|
9 | </%def> | |
10 |
|
10 | |||
11 | <%def name="breadcrumbs_links()"> |
|
11 | <%def name="breadcrumbs_links()"> | |
12 | ${_('Fork')} |
|
12 | ${_('Fork')} | |
13 | </%def> |
|
13 | </%def> | |
14 |
|
14 | |||
15 | <%def name="page_nav()"> |
|
15 | <%def name="page_nav()"> | |
16 | ${self.menu('repositories')} |
|
16 | ${self.menu('repositories')} | |
17 | </%def> |
|
17 | </%def> | |
18 |
|
18 | |||
19 | <%def name="main()"> |
|
19 | <%def name="main()"> | |
20 | ${self.repo_context_bar('createfork')} |
|
20 | ${self.repo_context_bar('createfork')} | |
21 | <div class="box"> |
|
21 | <div class="box"> | |
22 | <!-- box / title --> |
|
22 | <!-- box / title --> | |
23 | ${h.form(url('repo_fork_create_home',repo_name=c.repo_info.repo_name))} |
|
23 | ${h.form(url('repo_fork_create_home',repo_name=c.repo_info.repo_name))} | |
24 | <div class="form"> |
|
24 | <div class="form"> | |
25 | <!-- fields --> |
|
25 | <!-- fields --> | |
26 | <div class="fields"> |
|
26 | <div class="fields"> | |
27 |
|
27 | |||
28 | <div class="field"> |
|
28 | <div class="field"> | |
29 | <div class="label"> |
|
29 | <div class="label"> | |
30 | <label for="repo_name">${_('Fork name')}:</label> |
|
30 | <label for="repo_name">${_('Fork name')}:</label> | |
31 | </div> |
|
31 | </div> | |
32 | <div class="input"> |
|
32 | <div class="input"> | |
33 | ${h.text('repo_name',class_="small")} |
|
33 | ${h.text('repo_name',class_="small")} | |
34 | ${h.hidden('repo_type',c.repo_info.repo_type)} |
|
34 | ${h.hidden('repo_type',c.repo_info.repo_type)} | |
35 | ${h.hidden('fork_parent_id',c.repo_info.repo_id)} |
|
35 | ${h.hidden('fork_parent_id',c.repo_info.repo_id)} | |
36 | </div> |
|
36 | </div> | |
37 | </div> |
|
37 | </div> | |
38 |
|
38 | |||
39 | <div class="field"> |
|
39 | <div class="field"> | |
40 | <div class="label label-textarea"> |
|
40 | <div class="label label-textarea"> | |
41 | <label for="description">${_('Description')}:</label> |
|
41 | <label for="description">${_('Description')}:</label> | |
42 | </div> |
|
42 | </div> | |
43 |
<div class="textarea |
|
43 | <div class="textarea editor"> | |
44 | ${h.textarea('description')} |
|
44 | ${h.textarea('description')} | |
45 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
|
45 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> | |
46 | </div> |
|
46 | </div> | |
47 | </div> |
|
47 | </div> | |
48 |
|
48 | |||
49 | <div class="field"> |
|
49 | <div class="field"> | |
50 | <div class="label"> |
|
50 | <div class="label"> | |
51 | <label for="repo_group">${_('Repository group')}:</label> |
|
51 | <label for="repo_group">${_('Repository group')}:</label> | |
52 | </div> |
|
52 | </div> | |
53 | <div class="input"> |
|
53 | <div class="input"> | |
54 | ${h.select('repo_group','',c.repo_groups,class_="medium")} |
|
54 | ${h.select('repo_group','',c.repo_groups,class_="medium")} | |
55 | <span class="help-block">${_('Optionaly select a group to put this repository into.')}</span> |
|
55 | <span class="help-block">${_('Optionaly select a group to put this repository into.')}</span> | |
56 | </div> |
|
56 | </div> | |
57 | </div> |
|
57 | </div> | |
58 |
|
58 | |||
59 | <div class="field"> |
|
59 | <div class="field"> | |
60 | <div class="label"> |
|
60 | <div class="label"> | |
61 | <label for="landing_rev">${_('Landing revision')}:</label> |
|
61 | <label for="landing_rev">${_('Landing revision')}:</label> | |
62 | </div> |
|
62 | </div> | |
63 | <div class="input"> |
|
63 | <div class="input"> | |
64 | ${h.select('landing_rev','',c.landing_revs,class_="medium")} |
|
64 | ${h.select('landing_rev','',c.landing_revs,class_="medium")} | |
65 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
|
65 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> | |
66 | </div> |
|
66 | </div> | |
67 | </div> |
|
67 | </div> | |
68 |
|
68 | |||
69 | <div class="field"> |
|
69 | <div class="field"> | |
70 | <div class="label label-checkbox"> |
|
70 | <div class="label label-checkbox"> | |
71 | <label for="private">${_('Private')}:</label> |
|
71 | <label for="private">${_('Private')}:</label> | |
72 | </div> |
|
72 | </div> | |
73 | <div class="checkboxes"> |
|
73 | <div class="checkboxes"> | |
74 | ${h.checkbox('private',value="True")} |
|
74 | ${h.checkbox('private',value="True")} | |
75 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
|
75 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> | |
76 | </div> |
|
76 | </div> | |
77 | </div> |
|
77 | </div> | |
78 | <div class="field"> |
|
78 | <div class="field"> | |
79 | <div class="label label-checkbox"> |
|
79 | <div class="label label-checkbox"> | |
80 | <label for="private">${_('Copy permissions')}:</label> |
|
80 | <label for="private">${_('Copy permissions')}:</label> | |
81 | </div> |
|
81 | </div> | |
82 | <div class="checkboxes"> |
|
82 | <div class="checkboxes"> | |
83 | ${h.checkbox('copy_permissions',value="True", checked="checked")} |
|
83 | ${h.checkbox('copy_permissions',value="True", checked="checked")} | |
84 | <span class="help-block">${_('Copy permissions from forked repository')}</span> |
|
84 | <span class="help-block">${_('Copy permissions from forked repository')}</span> | |
85 | </div> |
|
85 | </div> | |
86 | </div> |
|
86 | </div> | |
87 | %if c.can_update: |
|
87 | %if c.can_update: | |
88 | <div class="field"> |
|
88 | <div class="field"> | |
89 | <div class="label label-checkbox"> |
|
89 | <div class="label label-checkbox"> | |
90 | <label for="private">${_('Update after clone')}:</label> |
|
90 | <label for="private">${_('Update after clone')}:</label> | |
91 | </div> |
|
91 | </div> | |
92 | <div class="checkboxes"> |
|
92 | <div class="checkboxes"> | |
93 | ${h.checkbox('update_after_clone',value="True")} |
|
93 | ${h.checkbox('update_after_clone',value="True")} | |
94 | <span class="help-block">${_('Checkout source after making a clone')}</span> |
|
94 | <span class="help-block">${_('Checkout source after making a clone')}</span> | |
95 | </div> |
|
95 | </div> | |
96 | </div> |
|
96 | </div> | |
97 | %endif |
|
97 | %endif | |
98 | <div class="buttons"> |
|
98 | <div class="buttons"> | |
99 | ${h.submit('',_('Fork this Repository'),class_="btn")} |
|
99 | ${h.submit('',_('Fork this Repository'),class_="btn")} | |
100 | </div> |
|
100 | </div> | |
101 | </div> |
|
101 | </div> | |
102 | </div> |
|
102 | </div> | |
103 | ${h.end_form()} |
|
103 | ${h.end_form()} | |
104 | </div> |
|
104 | </div> | |
105 | <script> |
|
105 | <script> | |
106 | $(document).ready(function(){ |
|
106 | $(document).ready(function(){ | |
107 | $("#repo_group").select2({ |
|
107 | $("#repo_group").select2({ | |
108 | 'dropdownAutoWidth': true |
|
108 | 'dropdownAutoWidth': true | |
109 | }); |
|
109 | }); | |
110 | $("#landing_rev").select2({ |
|
110 | $("#landing_rev").select2({ | |
111 | 'minimumResultsForSearch': -1, |
|
111 | 'minimumResultsForSearch': -1, | |
112 | }); |
|
112 | }); | |
113 | $('#repo_name').focus(); |
|
113 | $('#repo_name').focus(); | |
114 | }) |
|
114 | }) | |
115 | </script> |
|
115 | </script> | |
116 | </%def> |
|
116 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now