Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset.html @ 1087:51076a2a2b64 beta
fixed unicode problems with file paths.
added feed arg to journal action mapper
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 26 Feb 2011 16:04:38 +0100 |
parents | 90eadff2c2a8 |
children | e7d7f05217c1 |
comparison
equal
deleted
inserted
replaced
1086:b25a9f13fda1 | 1087:51076a2a2b64 |
---|---|
79 </div> | 79 </div> |
80 </div> | 80 </div> |
81 <span style="font-size:1.1em;font-weight: bold">${_('Files affected')}</span> | 81 <span style="font-size:1.1em;font-weight: bold">${_('Files affected')}</span> |
82 <div class="cs_files"> | 82 <div class="cs_files"> |
83 %for change,filenode,diff,cs1,cs2 in c.changes: | 83 %for change,filenode,diff,cs1,cs2 in c.changes: |
84 <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor=h.repo_name_slug('C%s' % filenode.path)))}</div> | 84 <div class="cs_${change}">${h.link_to(filenode.path.decode('utf-8'),h.url.current(anchor=h.repo_name_slug('C%s' % filenode.path.decode('utf-8'))))}</div> |
85 %endfor | 85 %endfor |
86 </div> | 86 </div> |
87 </div> | 87 </div> |
88 | 88 |
89 </div> | 89 </div> |
90 | 90 |
91 %for change,filenode,diff,cs1,cs2 in c.changes: | 91 %for change,filenode,diff,cs1,cs2 in c.changes: |
92 %if change !='removed': | 92 %if change !='removed': |
93 <div style="clear:both;height:10px"></div> | 93 <div style="clear:both;height:10px"></div> |
94 <div class="diffblock"> | 94 <div class="diffblock"> |
95 <div id="${h.repo_name_slug('C%s' % filenode.path)}" class="code-header"> | 95 <div id="${h.repo_name_slug('C%s' % filenode.path.decode('utf-8'))}" class="code-header"> |
96 <div class="changeset_header"> | 96 <div class="changeset_header"> |
97 <span class="changeset_file"> | 97 <span class="changeset_file"> |
98 ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name, | 98 ${h.link_to_if(change!='removed',filenode.path.decode('utf-8'),h.url('files_home',repo_name=c.repo_name, |
99 revision=filenode.changeset.raw_id,f_path=filenode.path))} | 99 revision=filenode.changeset.raw_id,f_path=filenode.path.decode('utf-8')))} |
100 </span> | 100 </span> |
101 %if 1: | 101 %if 1: |
102 » <span>${h.link_to(_('diff'), | 102 » <span>${h.link_to(_('diff'), |
103 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='diff'))}</span> | 103 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path.decode('utf-8'),diff2=cs2,diff1=cs1,diff='diff'))}</span> |
104 » <span>${h.link_to(_('raw diff'), | 104 » <span>${h.link_to(_('raw diff'), |
105 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='raw'))}</span> | 105 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path.decode('utf-8'),diff2=cs2,diff1=cs1,diff='raw'))}</span> |
106 » <span>${h.link_to(_('download diff'), | 106 » <span>${h.link_to(_('download diff'), |
107 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='download'))}</span> | 107 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path.decode('utf-8'),diff2=cs2,diff1=cs1,diff='download'))}</span> |
108 %endif | 108 %endif |
109 </div> | 109 </div> |
110 </div> | 110 </div> |
111 <div class="code-body"> | 111 <div class="code-body"> |
112 %if diff: | 112 %if diff: |