##// 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 h.flash(_('No content'), category='warning')
317 h.flash(_('No content'), category='warning')
318 return redirect(url('changeset_home', repo_name=c.repo_name,
318 return redirect(url('changeset_home', repo_name=c.repo_name,
319 revision='tip'))
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 try:
325 try:
322 self.scm_model.create_node(repo=c.rhodecode_repo,
326 self.scm_model.create_node(repo=c.rhodecode_repo,
@@ -46,6 +46,7 b''
46 </div>
46 </div>
47 <div class="input">
47 <div class="input">
48 <input type="text" value="${c.f_path}" size="30" name="location" id="location">
48 <input type="text" value="${c.f_path}" size="30" name="location" id="location">
49 ${_('use / to separate directories')}
49 </div>
50 </div>
50 </div>
51 </div>
51
52
@@ -62,7 +63,7 b''
62 <div id="body" class="codeblock">
63 <div id="body" class="codeblock">
63 <pre id="editor_pre"></pre>
64 <pre id="editor_pre"></pre>
64 <textarea id="editor" name="content" style="display:none"></textarea>
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 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
67 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
67 </div>
68 </div>
68 <div style="text-align: right;padding-top: 5px">
69 <div style="text-align: right;padding-top: 5px">
@@ -41,10 +41,8 b''
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
44 <div style="padding: 10px;color:#666666">${_('commit message')}</div>
45 <div style="padding-top: 10px;">${_('commit message')}</div>
46 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
45 <textarea id="commit" name="message" style="height: 100px;width: 99%"></textarea>
47
48 </div>
46 </div>
49 <div style="text-align: right;padding-top: 5px">
47 <div style="text-align: right;padding-top: 5px">
50 <input id="reset" type="button" value="${_('Reset')}" class="ui-button-small" />
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