aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/status/web/templates/revmacros.html
blob: 87a87a025c32be151037313a65e98b7d8e6b5968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{# both macro pairs must have the same signature #}

{% macro id_replace(rev, url) -%}
  <span class="revision" title="Revision {{ rev }}"><a href="{{ url }}">
  {%- if rev|length > 40 %}{{ rev[:40] }}...
  {%- else %}{{ rev }}
  {%- endif -%}  
  </a></span>
{%- endmacro %}

{% macro shorten_replace(short, rev, url) %}
  <div class="revision">
      <div class="short" title="Revision {{ rev }}">
          <a href="{{ url }}">{{ short }}...</a>
      </div> 
      <div class="full">
          <a href="{{ url }}">{{ rev }}</a>
      </div>
  </div> 
{% endmacro %}

{% macro id(rev, url) -%}
  <span class="revision" title="Revision {{ rev }}">
  {%- if rev|length > 40 %}{{ rev[:40] }}...
  {%- else %}{{ rev }}
  {%- endif -%}
  </span>
{%- endmacro %}

{% macro shorten(short, rev, url) %}
  <div class="revision">
      <div class="short" title="Revision {{ rev }}">{{ short }}...</div> 
      <div class="full">{{ rev }}</div>
  </div> 
{% endmacro %}