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