annotate kallithea/templates/forks/fork.html @ 4809:ec39e73be935

template: move header to root.html, use mako block for header menu
author Mads Kiilerich <madski@unity3d.com>
date Wed, 11 Feb 2015 02:40:28 +0100
parents dacdea9fda2a
children 37354e1ab283
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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()">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
5 ${_('Fork repository %s') % c.repo_name}
4198
a540f7e69c82 Rename rhodecode_name to site_name - it is the configurable name of the site/instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4187
diff changeset
6 %if c.site_name:
a540f7e69c82 Rename rhodecode_name to site_name - it is the configurable name of the site/instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4187
diff changeset
7 &middot; ${c.site_name}
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
8 %endif
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 </%def>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 <%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
12 ${_('Fork')}
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 </%def>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14
4809
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4527
diff changeset
15 <%block name="header_menu">
3639
2f5816720f82 added missing page_nav on forks page
Marcin Kuzminski <marcin@python-works.com>
parents: 3602
diff changeset
16 ${self.menu('repositories')}
4809
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4527
diff changeset
17 </%block>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
18
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <%def name="main()">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
20 ${self.repo_context_bar('createfork')}
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 <div class="box">
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 <!-- box / title -->
530
a08f610e545e Implemented server side forks
Marcin Kuzminski <marcin@python-works.com>
parents: 525
diff changeset
23 ${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
24 <div class="form">
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 <!-- fields -->
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 <div class="fields">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
27
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 <div class="field">
1722
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
29 <div class="label">
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
30 <label for="repo_name">${_('Fork name')}:</label>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
31 </div>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
32 <div class="input">
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
33 ${h.text('repo_name',class_="small")}
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
34 ${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
35 ${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
36 </div>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
37 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
38
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
39 <div class="field">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
40 <div class="label label-textarea">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
41 <label for="description">${_('Description')}:</label>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
42 </div>
4155
cee56368e4f9 old style: fix text areas in fork dialog
Andrew Shadura <andrew@shadura.me>
parents: 4116
diff changeset
43 <div class="textarea editor">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
44 ${h.textarea('description')}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
45 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
46 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
47 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
48
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
49 <div class="field">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
50 <div class="label">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
51 <label for="repo_group">${_('Repository group')}:</label>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
52 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
53 <div class="input">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
54 ${h.select('repo_group','',c.repo_groups,class_="medium")}
4527
dacdea9fda2a Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents: 4516
diff changeset
55 <span class="help-block">${_('Optionally select a group to put this repository into.')}</span>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
56 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
57 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
58
2485
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
59 <div class="field">
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
60 <div class="label">
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
61 <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
62 </div>
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
63 <div class="input">
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
64 ${h.select('landing_rev','',c.landing_revs,class_="medium")}
4527
dacdea9fda2a Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents: 4516
diff changeset
65 <span class="help-block">${_('Default revision for files page, downloads, whoosh, and readme.')}</span>
2485
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
66 </div>
2673
d5e42c00f3c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2607
diff changeset
67 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
68
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
69 <div class="field">
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
70 <div class="label label-checkbox">
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
71 <label for="private">${_('Private')}:</label>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
72 </div>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
73 <div class="checkboxes">
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
74 ${h.checkbox('private',value="True")}
2485
133209bf300c added landing revision into fork create form
Marcin Kuzminski <marcin@python-works.com>
parents: 2417
diff changeset
75 <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
76 </div>
1722
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
77 </div>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
78 <div class="field">
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
79 <div class="label label-checkbox">
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
80 <label for="private">${_('Copy permissions')}:</label>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
81 </div>
e7eef7a1db6a #235 forking page repo group selection
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
82 <div class="checkboxes">
2175
b61b7e266b39 Make copy permission checkbox checked by default
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
83 ${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
84 <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
85 </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
86 </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
87 %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
88 <div class="field">
40c4f7351574 added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents: 1722
diff changeset
89 <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
90 <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
91 </div>
40c4f7351574 added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents: 1722
diff changeset
92 <div class="checkboxes">
40c4f7351574 added option to do a checkout after cloning a repository
Marcin Kuzminski <marcin@python-works.com>
parents: 1722
diff changeset
93 ${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
94 <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
95 </div>
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
96 </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
97 %endif
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
98 <div class="buttons">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
99 ${h.submit('',_('Fork this Repository'),class_="btn")}
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2673
diff changeset
100 </div>
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
101 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1742
diff changeset
102 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1742
diff changeset
103 ${h.end_form()}
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
104 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
105 <script>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
106 $(document).ready(function(){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
107 $("#repo_group").select2({
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
108 'dropdownAutoWidth': true
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
109 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
110 $("#landing_rev").select2({
4516
b3f12c354e87 javascript: remove nice trailing comma to please IE8 (Issue #39)
Mads Kiilerich <madski@unity3d.com>
parents: 4198
diff changeset
111 'minimumResultsForSearch': -1
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
112 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
113 $('#repo_name').focus();
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
114 })
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3988
diff changeset
115 </script>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1742
diff changeset
116 </%def>