annotate pylons_app/templates/files/files_source.html @ 167:e5a25c57c97f

files source updated to use webhelpers huminizer for file size, and added link to annotation
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 21 May 2010 02:12:41 +0200
parents f905f45c457e
children be4621c6de58
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 <dl class="overview">
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <dt>${_('Revision')}</dt>
144
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
3 <dd>r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</dd>
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <dt>${_('Size')}</dt>
167
e5a25c57c97f files source updated to use webhelpers huminizer for file size, and added link to annotation
Marcin Kuzminski <marcin@python-works.com>
parents: 158
diff changeset
5 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 <dt>${_('Options')}</dt>
167
e5a25c57c97f files source updated to use webhelpers huminizer for file size, and added link to annotation
Marcin Kuzminski <marcin@python-works.com>
parents: 158
diff changeset
7 <dd>${h.link_to(_('annotate'),
e5a25c57c97f files source updated to use webhelpers huminizer for file size, and added link to annotation
Marcin Kuzminski <marcin@python-works.com>
parents: 158
diff changeset
8 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'),
e5a25c57c97f files source updated to use webhelpers huminizer for file size, and added link to annotation
Marcin Kuzminski <marcin@python-works.com>
parents: 158
diff changeset
9 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 <dt>${_('History')}</dt>
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 <dd>
129
42d46deb124d implemented simple diffs for history of files.
Marcin Kuzminski <marcin@python-works.com>
parents: 128
diff changeset
12 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
144
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
13 ${h.hidden('diff2',c.files_list.last_changeset._short)}
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 ${h.select('diff1','',c.file_history)}
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 ${h.submit('diff','diff')}
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 ${h.end_form()}
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 </dd>
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 </dl>
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 <div id="body" class="codeblock">
144
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
21 <div class="code-header">
158
f905f45c457e moved diff libs to vcs. updated htmls and css for diff and source
Marcin Kuzminski <marcin@python-works.com>
parents: 148
diff changeset
22 <div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</div>
f905f45c457e moved diff libs to vcs. updated htmls and css for diff and source
Marcin Kuzminski <marcin@python-works.com>
parents: 148
diff changeset
23 <div class="commit" style="font-size:70%">"${c.file_msg}"</div>
144
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
24 </div>
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
25 <div class="code-body">
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
26 ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
ea89ac73bef8 Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents: 129
diff changeset
27 </div>
128
9deb6f1d5b90 Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 </div>