| OLD | NEW |
| (Empty) |
| 1 {% macro change(c) %} | |
| 2 | |
| 3 <table class="info"> | |
| 4 {% set row_class=cycler('alt','') %} | |
| 5 <tr class="{{ row_class.next() }}"> | |
| 6 <td class="left">Changed by</td> | |
| 7 <td><b>{{ c.who|email }}</b></td> | |
| 8 </tr> | |
| 9 <tr class="{{ row_class.next() }}"> | |
| 10 <td class="left">Changed at</td> | |
| 11 <td><b>{{ c.at }}</b></td> | |
| 12 </tr> | |
| 13 | |
| 14 {% if c.repository %} | |
| 15 <tr class="{{ row_class.next() }}"> | |
| 16 <td class="left">Repository</td> | |
| 17 <td><b>{{ c.repository|repolink }}</b></td> | |
| 18 </tr> | |
| 19 {% endif %} {% if c.project %} | |
| 20 <tr class="{{ row_class.next() }}"> | |
| 21 <td class="left">Project</td> | |
| 22 <td><b>{{ c.project|projectlink }}</b></td> | |
| 23 </tr> | |
| 24 {% endif %} {% if c.branch %} | |
| 25 <tr class="{{ row_class.next() }}"> | |
| 26 <td class="left">Branch</td> | |
| 27 <td><b>{{ c.branch|e }}</b></td> | |
| 28 </tr> | |
| 29 {% endif %} {% if c.rev %} | |
| 30 <tr class="{{ row_class.next() }}"> | |
| 31 <td class="left">Revision</td> | |
| 32 <td>{%- if c.revlink -%}<a href="{{ c.revlink }}">{{ c.rev|e }}</a> | |
| 33 {%- else -%}{{ c.rev|revlink(c.repository) }} {%- endif -%}</td> | |
| 34 </tr> | |
| 35 {% endif %} | |
| 36 </table> | |
| 37 | |
| 38 {% if c.comments %} | |
| 39 <h3>Comments</h3> | |
| 40 <pre class="comments">{{ c.comments|changecomment(c.project) }}</pre> | |
| 41 {% endif %} | |
| 42 | |
| 43 <h3 class="files">Changed files</h3> | |
| 44 <ul> | |
| 45 {% for f in c.files -%} | |
| 46 <li class="{{ loop.cycle('alt', '') }}">{%- if f.url %}<a | |
| 47 href="{{ f.url }}"><b>{{ f.name|e }}</b></a></li> | |
| 48 {%- else %} | |
| 49 <b>{{ f.name|e }}</b> | |
| 50 {%- endif -%} | |
| 51 </li> | |
| 52 {% else %} | |
| 53 <li>no files</li> | |
| 54 {% endfor %} | |
| 55 </ul> | |
| 56 | |
| 57 {% if c.properties %} | |
| 58 <h3>Properties</h3> | |
| 59 <table class="info"> | |
| 60 {% for p in c.properties %} | |
| 61 <tr class="{{ loop.cycle('alt') }}"> | |
| 62 <td class="left">{{ p[0]|capitalize|e }}</td> | |
| 63 <td>{{ p[1]|e }}</td> | |
| 64 </tr> | |
| 65 {% endfor %} | |
| 66 </table> | |
| 67 {% endif %} | |
| 68 {%- endmacro %} | |
| 69 | |
| 70 {% macro box_contents(who, url, pageTitle, revision, project) -%} | |
| 71 <a href="{{ url }}" title="{{ pageTitle|e }}">{{ who|user }}</a><br><a href='{{
revision }}'>{{ revision }}</a> | |
| 72 {%- endmacro %} | |
| OLD | NEW |