Show More
@@ -1,92 +1,92 | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${c.repo_name} ${_('Edit file')} - ${c.rhodecode_name} |
|
4 | ${c.repo_name} ${_('Edit file')} - ${c.rhodecode_name} | |
5 | </%def> |
|
5 | </%def> | |
6 |
|
6 | |||
7 | <%def name="js_extra()"> |
|
7 | <%def name="js_extra()"> | |
8 | <script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script> |
|
8 | <script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script> | |
9 | </%def> |
|
9 | </%def> | |
10 | <%def name="css_extra()"> |
|
10 | <%def name="css_extra()"> | |
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/> |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/> | |
12 | </%def> |
|
12 | </%def> | |
13 |
|
13 | |||
14 | <%def name="breadcrumbs_links()"> |
|
14 | <%def name="breadcrumbs_links()"> | |
15 | ${h.link_to(u'Home',h.url('/'))} |
|
15 | ${h.link_to(u'Home',h.url('/'))} | |
16 | » |
|
16 | » | |
17 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
|
17 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | |
18 | » |
|
18 | » | |
19 | ${_('add file')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} |
|
19 | ${_('add file')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} | |
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | <%def name="page_nav()"> |
|
22 | <%def name="page_nav()"> | |
23 | ${self.menu('files')} |
|
23 | ${self.menu('files')} | |
24 | </%def> |
|
24 | </%def> | |
25 | <%def name="main()"> |
|
25 | <%def name="main()"> | |
26 | <div class="box"> |
|
26 | <div class="box"> | |
27 | <!-- box / title --> |
|
27 | <!-- box / title --> | |
28 | <div class="title"> |
|
28 | <div class="title"> | |
29 | ${self.breadcrumbs()} |
|
29 | ${self.breadcrumbs()} | |
30 | <ul class="links"> |
|
30 | <ul class="links"> | |
31 | <li> |
|
31 | <li> | |
32 | <span style="text-transform: uppercase;"> |
|
32 | <span style="text-transform: uppercase;"> | |
33 | <a href="#">${_('branch')}: ${c.cs.branch}</a></span> |
|
33 | <a href="#">${_('branch')}: ${c.cs.branch}</a></span> | |
34 | </li> |
|
34 | </li> | |
35 | </ul> |
|
35 | </ul> | |
36 | </div> |
|
36 | </div> | |
37 | <div class="table"> |
|
37 | <div class="table"> | |
38 | <div id="files_data"> |
|
38 | <div id="files_data"> | |
39 | ${h.form(h.url.current(),method='post',id='eform',enctype="multipart/form-data")} |
|
39 | ${h.form(h.url.current(),method='post',id='eform',enctype="multipart/form-data")} | |
40 | <h3>${_('Add new file')}</h3> |
|
40 | <h3>${_('Add new file')}</h3> | |
41 | <div class="form"> |
|
41 | <div class="form"> | |
42 | <div class="fields"> |
|
42 | <div class="fields"> | |
43 | <div id="filename_container" class="field file"> |
|
43 | <div id="filename_container" class="field file"> | |
44 | <div class="label"> |
|
44 | <div class="label"> | |
45 | <label for="filename">${_('File Name')}:</label> |
|
45 | <label for="filename">${_('File Name')}:</label> | |
46 | </div> |
|
46 | </div> | |
47 | <div class="input"> |
|
47 | <div class="input"> | |
48 | <input type="text" value="" size="30" name="filename" id="filename"> |
|
48 | <input type="text" value="" size="30" name="filename" id="filename"> | |
49 | <input type="button" class="ui-button-small" value="upload file" id="upload_file_enable"> |
|
49 | <input type="button" class="ui-button-small" value="upload file" id="upload_file_enable"> | |
50 | </div> |
|
50 | </div> | |
51 | </div> |
|
51 | </div> | |
52 | <div id="upload_file_container" class="field" style="display:none"> |
|
52 | <div id="upload_file_container" class="field" style="display:none"> | |
53 | <div class="label"> |
|
53 | <div class="label"> | |
54 | <label for="location">${_('Upload file')}</label> |
|
54 | <label for="location">${_('Upload file')}</label> | |
55 | </div> |
|
55 | </div> | |
56 | <div class="file"> |
|
56 | <div class="file"> | |
57 | <input type="file" size="30" name="upload_file" id="upload_file"> |
|
57 | <input type="file" size="30" name="upload_file" id="upload_file"> | |
58 | <input type="button" class="ui-button-small" value="create file" id="file_enable"> |
|
58 | <input type="button" class="ui-button-small" value="create file" id="file_enable"> | |
59 | </div> |
|
59 | </div> | |
60 | </div> |
|
60 | </div> | |
61 | <div class="field"> |
|
61 | <div class="field"> | |
62 | <div class="label"> |
|
62 | <div class="label"> | |
63 | <label for="location">${_('Location')}</label> |
|
63 | <label for="location">${_('Location')}</label> | |
64 | </div> |
|
64 | </div> | |
65 | <div class="input"> |
|
65 | <div class="input"> | |
66 | <input type="text" value="${c.f_path}" size="30" name="location" id="location"> |
|
66 | <input type="text" value="${c.f_path}" size="30" name="location" id="location"> | |
67 | ${_('use / to separate directories')} |
|
67 | ${_('use / to separate directories')} | |
68 | </div> |
|
68 | </div> | |
69 | </div> |
|
69 | </div> | |
70 | </div> |
|
70 | </div> | |
71 | </div> |
|
71 | </div> | |
72 | <div id="body" class="codeblock"> |
|
72 | <div id="body" class="codeblock"> | |
73 | <div id="editor_container"> |
|
73 | <div id="editor_container"> | |
74 | <pre id="editor_pre"></pre> |
|
74 | <pre id="editor_pre"></pre> | |
75 | <textarea id="editor" name="content" style="display:none"></textarea> |
|
75 | <textarea id="editor" name="content" style="display:none"></textarea> | |
76 | </div> |
|
76 | </div> | |
77 | <div style="padding: 10px;color:#666666">${_('commit message')}</div> |
|
77 | <div style="padding: 10px;color:#666666">${_('commit message')}</div> | |
78 | <textarea id="commit" name="message" style="height: 100px;width: 99%;margin-left:4px"></textarea> |
|
78 | <textarea id="commit" name="message" style="height: 100px;width: 99%;margin-left:4px"></textarea> | |
79 | </div> |
|
79 | </div> | |
80 |
<div style="text-align: |
|
80 | <div style="text-align: l;padding-top: 5px"> | |
81 | <input id="reset" type="button" value="${_('Reset')}" class="ui-button-small" /> |
|
81 | ${h.submit('commit',_('Commit changes'),class_="ui-button-small")} | |
82 |
|
|
82 | ${h.reset('reset',_('Reset'),class_="ui-button-small")} | |
83 | </div> |
|
83 | </div> | |
84 | ${h.end_form()} |
|
84 | ${h.end_form()} | |
85 | <script type="text/javascript"> |
|
85 | <script type="text/javascript"> | |
86 | var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path)}"; |
|
86 | var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path)}"; | |
87 | initCodeMirror('editor',reset_url); |
|
87 | initCodeMirror('editor',reset_url); | |
88 | </script> |
|
88 | </script> | |
89 | </div> |
|
89 | </div> | |
90 | </div> |
|
90 | </div> | |
91 | </div> |
|
91 | </div> | |
92 | </%def> No newline at end of file |
|
92 | </%def> |
@@ -1,59 +1,59 | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${c.repo_name} ${_('Edit file')} - ${c.rhodecode_name} |
|
4 | ${c.repo_name} ${_('Edit file')} - ${c.rhodecode_name} | |
5 | </%def> |
|
5 | </%def> | |
6 |
|
6 | |||
7 | <%def name="js_extra()"> |
|
7 | <%def name="js_extra()"> | |
8 | <script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script> |
|
8 | <script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script> | |
9 | </%def> |
|
9 | </%def> | |
10 | <%def name="css_extra()"> |
|
10 | <%def name="css_extra()"> | |
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/> |
|
11 | <link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/> | |
12 | </%def> |
|
12 | </%def> | |
13 |
|
13 | |||
14 | <%def name="breadcrumbs_links()"> |
|
14 | <%def name="breadcrumbs_links()"> | |
15 | ${h.link_to(u'Home',h.url('/'))} |
|
15 | ${h.link_to(u'Home',h.url('/'))} | |
16 | » |
|
16 | » | |
17 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
|
17 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | |
18 | » |
|
18 | » | |
19 | ${_('edit file')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} |
|
19 | ${_('edit file')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} | |
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | <%def name="page_nav()"> |
|
22 | <%def name="page_nav()"> | |
23 | ${self.menu('files')} |
|
23 | ${self.menu('files')} | |
24 | </%def> |
|
24 | </%def> | |
25 | <%def name="main()"> |
|
25 | <%def name="main()"> | |
26 | <div class="box"> |
|
26 | <div class="box"> | |
27 | <!-- box / title --> |
|
27 | <!-- box / title --> | |
28 | <div class="title"> |
|
28 | <div class="title"> | |
29 | ${self.breadcrumbs()} |
|
29 | ${self.breadcrumbs()} | |
30 | <ul class="links"> |
|
30 | <ul class="links"> | |
31 | <li> |
|
31 | <li> | |
32 | <span style="text-transform: uppercase;"> |
|
32 | <span style="text-transform: uppercase;"> | |
33 | <a href="#">${_('branch')}: ${c.cs.branch}</a></span> |
|
33 | <a href="#">${_('branch')}: ${c.cs.branch}</a></span> | |
34 | </li> |
|
34 | </li> | |
35 | </ul> |
|
35 | </ul> | |
36 | </div> |
|
36 | </div> | |
37 | <div class="table"> |
|
37 | <div class="table"> | |
38 | <div id="files_data"> |
|
38 | <div id="files_data"> | |
39 | <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3> |
|
39 | <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3> | |
40 | ${h.form(h.url.current(),method='post',id='eform')} |
|
40 | ${h.form(h.url.current(),method='post',id='eform')} | |
41 | <div id="body" class="codeblock"> |
|
41 | <div id="body" class="codeblock"> | |
42 | <pre id="editor_pre"></pre> |
|
42 | <pre id="editor_pre"></pre> | |
43 | <textarea id="editor" name="content" style="display:none">${c.file.content|n}</textarea> |
|
43 | <textarea id="editor" name="content" style="display:none">${c.file.content|n}</textarea> | |
44 | <div style="padding: 10px;color:#666666">${_('commit message')}</div> |
|
44 | <div style="padding: 10px;color:#666666">${_('commit message')}</div> | |
45 | <textarea id="commit" name="message" style="height: 60px;width: 99%;margin-left:4px"></textarea> |
|
45 | <textarea id="commit" name="message" style="height: 60px;width: 99%;margin-left:4px"></textarea> | |
46 | </div> |
|
46 | </div> | |
47 |
<div style="text-align: |
|
47 | <div style="text-align: left;padding-top: 5px"> | |
48 | <input id="reset" type="button" value="${_('Reset')}" class="ui-button-small" /> |
|
48 | ${h.submit('commit',_('Commit changes'),class_="ui-button-small")} | |
49 |
|
|
49 | ${h.reset('reset',_('Reset'),class_="ui-button-small")} | |
50 | </div> |
|
50 | </div> | |
51 | ${h.end_form()} |
|
51 | ${h.end_form()} | |
52 | <script type="text/javascript"> |
|
52 | <script type="text/javascript"> | |
53 | var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.file.path)}"; |
|
53 | var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.file.path)}"; | |
54 | initCodeMirror('editor',reset_url); |
|
54 | initCodeMirror('editor',reset_url); | |
55 | </script> |
|
55 | </script> | |
56 | </div> |
|
56 | </div> | |
57 | </div> |
|
57 | </div> | |
58 | </div> |
|
58 | </div> | |
59 | </%def> No newline at end of file |
|
59 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now