##// END OF EJS Templates
removed decodes, thus it should be implemented on vcs side...
*** failed to import extension hggit: No module named hggit -
r428:dee0e7eb default
parent child Browse files
Show More
@@ -124,9 +124,9 b' class SummaryController(BaseController):'
124 tmpl1 = u"""{label:"%s",data:%s,schema:["commits"]},"""
124 tmpl1 = u"""{label:"%s",data:%s,schema:["commits"]},"""
125 for author in aggregate:
125 for author in aggregate:
126
126
127 d += tmpl0 % (author.decode('utf8'),
127 d += tmpl0 % (author,
128 tmpl1 \
128 tmpl1 \
129 % (author.decode('utf8'),
129 % (author,
130 [{"time":x,
130 [{"time":x,
131 "commits":aggregate[author][x]['commits'],
131 "commits":aggregate[author][x]['commits'],
132 "added":aggregate[author][x]['added'],
132 "added":aggregate[author][x]['added'],
@@ -220,7 +220,8 b' def pygmentize(filenode, **kwargs):'
220 pygmentize function using pygments
220 pygmentize function using pygments
221 @param filenode:
221 @param filenode:
222 """
222 """
223 return literal(code_highlight(filenode.content, filenode.lexer, HtmlFormatter(**kwargs)))
223 return literal(code_highlight(filenode.content,
224 filenode.lexer, HtmlFormatter(**kwargs)))
224
225
225 def pygmentize_annotation(filenode, **kwargs):
226 def pygmentize_annotation(filenode, **kwargs):
226 """
227 """
@@ -241,7 +242,8 b' def pygmentize_annotation(filenode, **kw'
241 return "color: rgb(%s) ! important;" % (', '.join(col))
242 return "color: rgb(%s) ! important;" % (', '.join(col))
242
243
243 def url_func(changeset):
244 def url_func(changeset):
244 tooltip_html = "<div style='font-size:0.8em'><b>Author:</b> %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>"
245 tooltip_html = "<div style='font-size:0.8em'><b>Author:</b>"+\
246 " %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>"
245
247
246 tooltip_html = tooltip_html % (changeset.author,
248 tooltip_html = tooltip_html % (changeset.author,
247 changeset.date,
249 changeset.date,
@@ -250,7 +252,7 b' def pygmentize_annotation(filenode, **kw'
250 changeset.raw_id)
252 changeset.raw_id)
251 uri = link_to(
253 uri = link_to(
252 lnk_format,
254 lnk_format,
253 url('changeset_home', repo_name='test',
255 url('changeset_home', repo_name=changeset.repository.name,
254 revision=changeset.raw_id),
256 revision=changeset.raw_id),
255 style=get_color_string(changeset.raw_id),
257 style=get_color_string(changeset.raw_id),
256 class_='tooltip',
258 class_='tooltip',
@@ -61,7 +61,7 b''
61 <span><a href="mailto:${h.email_or_none(cs.author)}">${h.email_or_none(cs.author)}</a></span><br/>
61 <span><a href="mailto:${h.email_or_none(cs.author)}">${h.email_or_none(cs.author)}</a></span><br/>
62 </div>
62 </div>
63 <div class="message">
63 <div class="message">
64 ${h.link_to(h.wrap_paragraphs(cs.message.decode('utf-8','replace')),
64 ${h.link_to(h.wrap_paragraphs(cs.message),
65 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
65 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
66 </div>
66 </div>
67 </div>
67 </div>
@@ -78,7 +78,7 b''
78 %endif
78 %endif
79 %for p_cs in reversed(cs.parents):
79 %for p_cs in reversed(cs.parents):
80 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
80 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
81 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message.decode('utf-8','replace'))}
81 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
82 </div>
82 </div>
83 %endfor
83 %endfor
84 </div>
84 </div>
General Comments 0
You need to be logged in to leave comments. Login now