Show More
@@ -124,9 +124,9 b' class SummaryController(BaseController):' | |||
|
124 | 124 | tmpl1 = u"""{label:"%s",data:%s,schema:["commits"]},""" |
|
125 | 125 | for author in aggregate: |
|
126 | 126 | |
|
127 |
d += tmpl0 % (author |
|
|
127 | d += tmpl0 % (author, | |
|
128 | 128 | tmpl1 \ |
|
129 |
% (author |
|
|
129 | % (author, | |
|
130 | 130 | [{"time":x, |
|
131 | 131 | "commits":aggregate[author][x]['commits'], |
|
132 | 132 | "added":aggregate[author][x]['added'], |
@@ -220,7 +220,8 b' def pygmentize(filenode, **kwargs):' | |||
|
220 | 220 | pygmentize function using pygments |
|
221 | 221 | @param filenode: |
|
222 | 222 | """ |
|
223 |
return literal(code_highlight(filenode.content, |
|
|
223 | return literal(code_highlight(filenode.content, | |
|
224 | filenode.lexer, HtmlFormatter(**kwargs))) | |
|
224 | 225 | |
|
225 | 226 | def pygmentize_annotation(filenode, **kwargs): |
|
226 | 227 | """ |
@@ -241,7 +242,8 b' def pygmentize_annotation(filenode, **kw' | |||
|
241 | 242 | return "color: rgb(%s) ! important;" % (', '.join(col)) |
|
242 | 243 | |
|
243 | 244 | def url_func(changeset): |
|
244 |
tooltip_html = "<div style='font-size:0.8em'><b>Author:</b> |
|
|
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 | 248 | tooltip_html = tooltip_html % (changeset.author, |
|
247 | 249 | changeset.date, |
@@ -250,7 +252,7 b' def pygmentize_annotation(filenode, **kw' | |||
|
250 | 252 | changeset.raw_id) |
|
251 | 253 | uri = link_to( |
|
252 | 254 | lnk_format, |
|
253 |
url('changeset_home', repo_name= |
|
|
255 | url('changeset_home', repo_name=changeset.repository.name, | |
|
254 | 256 | revision=changeset.raw_id), |
|
255 | 257 | style=get_color_string(changeset.raw_id), |
|
256 | 258 | class_='tooltip', |
@@ -61,7 +61,7 b'' | |||
|
61 | 61 | <span><a href="mailto:${h.email_or_none(cs.author)}">${h.email_or_none(cs.author)}</a></span><br/> |
|
62 | 62 | </div> |
|
63 | 63 | <div class="message"> |
|
64 |
${h.link_to(h.wrap_paragraphs(cs.message |
|
|
64 | ${h.link_to(h.wrap_paragraphs(cs.message), | |
|
65 | 65 | h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))} |
|
66 | 66 | </div> |
|
67 | 67 | </div> |
@@ -78,7 +78,7 b'' | |||
|
78 | 78 | %endif |
|
79 | 79 | %for p_cs in reversed(cs.parents): |
|
80 | 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 |
|
|
81 | h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} | |
|
82 | 82 | </div> |
|
83 | 83 | %endfor |
|
84 | 84 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now