Mercurial > kallithea
annotate rhodecode/templates/forks/fork.html @ 3665:690a955ba785 beta
use placeholders in qfilter, not the ugly JS logic
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 04 Apr 2013 13:18:24 +0200 |
parents | 2f5816720f82 |
children | 072a37c44f58 |
rev | line source |
---|---|
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <%def name="title()"> |
3582
1f334a68d057
improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents:
3581
diff
changeset
|
5 ${_('%s Fork') % c.repo_name} · ${c.rhodecode_name} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 </%def> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 <%def name="breadcrumbs_links()"> |
3602
bb1eecda3172
clean-up of breadcrumbs on pages with repo context bar
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
9 ${_('Fork')} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 </%def> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 |
3639
2f5816720f82
added missing page_nav on forks page
Marcin Kuzminski <marcin@python-works.com>
parents:
3602
diff
changeset
|
12 <%def name="page_nav()"> |
2f5816720f82
added missing page_nav on forks page
Marcin Kuzminski <marcin@python-works.com>
parents:
3602
diff
changeset
|
13 ${self.menu('repositories')} |
2f5816720f82
added missing page_nav on forks page
Marcin Kuzminski <marcin@python-works.com>
parents:
3602
diff
changeset
|
14 </%def> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 <%def name="main()"> |
3581
93d912ea8cb1
show forks in contextbar
Marcin Kuzminski <marcin@python-works.com>
parents:
3571
diff
changeset
|
16 ${self.context_bar('showforks')} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 <div class="box"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <!-- box / title --> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <div class="title"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1742
diff
changeset
|
20 ${self.breadcrumbs()} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 </div> |
530
a08f610e545e
Implemented server side forks
Marcin Kuzminski <marcin@python-works.com>
parents:
525
diff
changeset
|
22 ${h.form(url('repo_fork_create_home',repo_name=c.repo_info.repo_name))} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 <div class="form"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 <!-- fields --> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 <div class="fields"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 <div class="field"> |
1722
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
27 <div class="label"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
28 <label for="repo_name">${_('Fork name')}:</label> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
29 </div> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
30 <div class="input"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
31 ${h.text('repo_name',class_="small")} |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
32 ${h.hidden('repo_type',c.repo_info.repo_type)} |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
33 ${h.hidden('fork_parent_id',c.repo_info.repo_id)} |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
34 </div> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
35 </div> |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
36 <div class="field"> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
37 <div class="label"> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
38 <label for="landing_rev">${_('Landing revision')}:</label> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
39 </div> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
40 <div class="input"> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
41 ${h.select('landing_rev','',c.landing_revs,class_="medium")} |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
42 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
43 </div> |
2673
d5e42c00f3c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
44 </div> |
1722
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
45 <div class="field"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
46 <div class="label"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
47 <label for="repo_group">${_('Repository group')}:</label> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
48 </div> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
49 <div class="input"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
50 ${h.select('repo_group','',c.repo_groups,class_="medium")} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
51 <span class="help-block">${_('Optionaly select a group to put this repository into.')}</span> |
1722
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
52 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1742
diff
changeset
|
53 </div> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 <div class="field"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
55 <div class="label label-textarea"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 <label for="description">${_('Description')}:</label> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
57 </div> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
58 <div class="textarea text-area editor"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 ${h.textarea('description',cols=23,rows=5)} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
60 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 </div> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 </div> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 <div class="field"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
64 <div class="label label-checkbox"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
65 <label for="private">${_('Private')}:</label> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
66 </div> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
67 <div class="checkboxes"> |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
68 ${h.checkbox('private',value="True")} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
69 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
70 </div> |
1722
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
71 </div> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
72 <div class="field"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
73 <div class="label label-checkbox"> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
74 <label for="private">${_('Copy permissions')}:</label> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
75 </div> |
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
76 <div class="checkboxes"> |
2175
b61b7e266b39
Make copy permission checkbox checked by default
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
77 ${h.checkbox('copy_permissions',value="True", checked="checked")} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
78 <span class="help-block">${_('Copy permissions from forked repository')}</span> |
1722
e7eef7a1db6a
#235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
79 </div> |
3571
6c88624c719b
fork: 'Update after clone' only makes sense if the update hook will maintain it
Mads Kiilerich <madski@unity3d.com>
parents:
3565
diff
changeset
|
80 </div> |
6c88624c719b
fork: 'Update after clone' only makes sense if the update hook will maintain it
Mads Kiilerich <madski@unity3d.com>
parents:
3565
diff
changeset
|
81 %if c.can_update: |
1742
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
82 <div class="field"> |
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
83 <div class="label label-checkbox"> |
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
84 <label for="private">${_('Update after clone')}:</label> |
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
85 </div> |
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
86 <div class="checkboxes"> |
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
87 ${h.checkbox('update_after_clone',value="True")} |
2485
133209bf300c
added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents:
2417
diff
changeset
|
88 <span class="help-block">${_('Checkout source after making a clone')}</span> |
1742
40c4f7351574
added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1722
diff
changeset
|
89 </div> |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
90 </div> |
3571
6c88624c719b
fork: 'Update after clone' only makes sense if the update hook will maintain it
Mads Kiilerich <madski@unity3d.com>
parents:
3565
diff
changeset
|
91 %endif |
3197 | 92 <div class="buttons"> |
3565
a8f2d78d14ea
consistently capitalize initial letter in flash messages
Mads Kiilerich <madski@unity3d.com>
parents:
3392
diff
changeset
|
93 ${h.submit('',_('Fork this repository'),class_="ui-btn large")} |
3197 | 94 </div> |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
95 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1742
diff
changeset
|
96 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1742
diff
changeset
|
97 ${h.end_form()} |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
98 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1742
diff
changeset
|
99 </%def> |