Show More
@@ -32,13 +32,22 b' def make_map(config):' | |||||
32 | m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') |
|
32 | m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') | |
33 |
|
33 | |||
34 |
|
34 | |||
35 |
map.connect('changeset_home', '/{repo_name}/changeset/{revision}', |
|
35 | map.connect('changeset_home', '/{repo_name}/changeset/{revision}', | |
36 | map.connect('summary_home', '/{repo_name}/summary', controller='summary') |
|
36 | controller='changeset', revision='tip') | |
37 | map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', controller='shortlog', revision='tip') |
|
37 | map.connect('summary_home', '/{repo_name}/summary', | |
38 | map.connect('branches_home', '/{repo_name}/branches', controller='branches') |
|
38 | controller='summary') | |
39 |
map.connect(' |
|
39 | map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', | |
40 | map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') |
|
40 | controller='shortlog', revision='tip') | |
41 | map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', controller='files', revision='tip', f_path='') |
|
41 | map.connect('branches_home', '/{repo_name}/branches', | |
42 | map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', controller='files', action='diff', revision='tip', f_path='') |
|
42 | controller='branches') | |
43 |
|
43 | map.connect('tags_home', '/{repo_name}/tags', | ||
|
44 | controller='tags') | |||
|
45 | map.connect('changelog_home', '/{repo_name}/changelog/{revision}', | |||
|
46 | controller='changelog', revision='tip') | |||
|
47 | map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', | |||
|
48 | controller='files', revision='tip', f_path='') | |||
|
49 | map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', | |||
|
50 | controller='files', action='diff', revision='tip', f_path='') | |||
|
51 | map.connect('files_raw_home', '/{repo_name}/rawfile/{revision}/{f_path:.*}', | |||
|
52 | controller='files', action='rawfile', revision='tip', f_path='') | |||
44 | return map |
|
53 | return map |
@@ -4,7 +4,7 b'' | |||||
4 | <dt>${_('Size')}</dt> |
|
4 | <dt>${_('Size')}</dt> | |
5 | <dd>${h.filesizeformat(c.files_list.size)}</dd> |
|
5 | <dd>${h.filesizeformat(c.files_list.size)}</dd> | |
6 | <dt>${_('Options')}</dt> |
|
6 | <dt>${_('Options')}</dt> | |
7 |
<dd>${h.link_to(_('annotate'),h.url('#'))} / ${h.link_to(_('raw'),h.url(' |
|
7 | <dd>${h.link_to(_('annotate'),h.url('#'))} / ${h.link_to(_('raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd> | |
8 | <dt>${_('History')}</dt> |
|
8 | <dt>${_('History')}</dt> | |
9 | <dd> |
|
9 | <dd> | |
10 | ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')} |
|
10 | ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')} | |
@@ -18,6 +18,7 b'' | |||||
18 | <div id="body" class="codeblock"> |
|
18 | <div id="body" class="codeblock"> | |
19 | <div class="code-header"> |
|
19 | <div class="code-header"> | |
20 | <span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span> |
|
20 | <span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span> | |
|
21 | <span style="font-size:70%">"${c.file_msg}"</span> | |||
21 | </div> |
|
22 | </div> | |
22 | <div class="code-body"> |
|
23 | <div class="code-body"> | |
23 | ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")} |
|
24 | ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")} |
General Comments 0
You need to be logged in to leave comments.
Login now