##// END OF EJS Templates
invalidation: merge .invalidate and .set_valid as .test_and_set_valid...
invalidation: merge .invalidate and .set_valid as .test_and_set_valid This simplifies the internal API and avoids leaking CacheInvalidation instances and cache keys.

File last commit:

r3654:ec635494 beta
r3772:910ad1ff beta
Show More
files_edit.html
76 lines | 3.6 KiB | text/html | HtmlLexer
Added server side file editing with commit
r1305 <%inherit file="/base/base.html"/>
<%def name="title()">
improved title consistency...
r3582 ${_('%s Files Edit') % c.repo_name} &middot; ${c.rhodecode_name}
Added server side file editing with commit
r1305 </%def>
<%def name="js_extra()">
<script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script>
</%def>
<%def name="css_extra()">
<link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/>
</%def>
fixed missing page_nav in files edit/add
r3620 <%def name="page_nav()">
${self.menu('repositories')}
</%def>
Added server side file editing with commit
r1305 <%def name="breadcrumbs_links()">
Mads Kiilerich
clean-up of breadcrumbs on pages with repo context bar
r3602 ${_('Edit file')} @ ${h.show_id(c.cs)}
Added server side file editing with commit
r1305 </%def>
<%def name="main()">
files edit/add is displayed with repo context menu
r3583 ${self.context_bar('files')}
Added server side file editing with commit
r1305 <div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
<ul class="links">
<li>
<span style="text-transform: uppercase;">
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 <a href="#">${_('Branch')}: ${c.cs.branch}</a></span>
White-space cleanup
r1888 </li>
</ul>
Added server side file editing with commit
r1305 </div>
<div class="table">
Mads Kiilerich
html: don't use tabs
r3197 <div id="files_data">
<h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3>
${h.form(h.url.current(),method='post',id='eform')}
<div id="body" class="codeblock">
new files views...
r1737 <div class="code-header">
<div class="stats">
<div class="left"><img src="${h.url('/images/icons/file.png')}"/></div>
fixed vcs issue with last_changeset for filenodes...
r2084 <div class="left item">${h.link_to("r%s:%s" % (c.file.changeset.revision,h.short_id(c.file.changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id))}</div>
new files views...
r1737 <div class="left item">${h.format_byte_size(c.file.size,binary=True)}</div>
<div class="left item last">${c.file.mimetype}</div>
<div class="buttons">
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 ${h.link_to(_('Show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
${h.link_to(_('Show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
${h.link_to(_('Download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
White-space cleanup
r1888 % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
new files views...
r1737 % if not c.file.is_binary:
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 ${h.link_to(_('Source'),h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
new files views...
r1737 % endif
White-space cleanup
r1888 % endif
new files views...
r1737 </div>
</div>
various fixes for git and mercurial with InMemoryCommit backend and non-ascii files...
r2199 <div class="commit">${_('Editing file')}: ${c.file.unicode_path}</div>
White-space cleanup
r1888 </div>
Mads Kiilerich
html: don't use tabs
r3197 <pre id="editor_pre"></pre>
<textarea id="editor" name="content" style="display:none">${h.escape(c.file.content)|n}</textarea>
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 <div style="padding: 10px;color:#666666">${_('Commit message')}</div>
disable file editing when not on branch head fixes issue #462
r3237 <textarea id="commit" name="message" style="height: 60px;width: 99%;margin-left:4px" placeholder="${c.default_message}"></textarea>
Mads Kiilerich
html: don't use tabs
r3197 </div>
<div style="text-align: left;padding-top: 5px">
UI !
r1756 ${h.submit('commit',_('Commit changes'),class_="ui-btn")}
${h.reset('reset',_('Reset'),class_="ui-btn")}
Mads Kiilerich
html: don't use tabs
r3197 </div>
${h.end_form()}
<script type="text/javascript">
var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.file.path)}";
initCodeMirror('editor',reset_url);
</script>
</div>
Added server side file editing with commit
r1305 </div>
White-space cleanup
r1888 </div>
</%def>