##// END OF EJS Templates
fixed small issues with adding new filenodes
marcink -
r1484:1db451a4 beta
parent child Browse files
Show More
@@ -317,6 +317,10 b' class FilesController(BaseRepoController'
317 317 h.flash(_('No content'), category='warning')
318 318 return redirect(url('changeset_home', repo_name=c.repo_name,
319 319 revision='tip'))
320 if not filename:
321 h.flash(_('No filename'), category='warning')
322 return redirect(url('changeset_home', repo_name=c.repo_name,
323 revision='tip'))
320 324
321 325 try:
322 326 self.scm_model.create_node(repo=c.rhodecode_repo,
@@ -46,6 +46,7 b''
46 46 </div>
47 47 <div class="input">
48 48 <input type="text" value="${c.f_path}" size="30" name="location" id="location">
49 ${_('use / to separate directories')}
49 50 </div>
50 51 </div>
51 52
@@ -62,7 +63,7 b''
62 63 <div id="body" class="codeblock">
63 64 <pre id="editor_pre"></pre>
64 65 <textarea id="editor" name="content" style="display:none"></textarea>
65 <div style="padding-top: 10px;">${_('commit message')}</div>
66 <div style="padding: 10px;color:#666666">${_('commit message')}</div>
66 67 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
67 68 </div>
68 69 <div style="text-align: right;padding-top: 5px">
@@ -41,10 +41,8 b''
41 41 <div id="body" class="codeblock">
42 42 <pre id="editor_pre"></pre>
43 43 <textarea id="editor" name="content" style="display:none">${c.file.content|n}</textarea>
44
45 <div style="padding-top: 10px;">${_('commit message')}</div>
44 <div style="padding: 10px;color:#666666">${_('commit message')}</div>
46 45 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
47
48 46 </div>
49 47 <div style="text-align: right;padding-top: 5px">
50 48 <input id="reset" type="button" value="${_('Reset')}" class="ui-button-small" />
General Comments 0
You need to be logged in to leave comments. Login now