Skip to content

Commit

Permalink
template for a version history page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Sep 4, 2012
1 parent 1bb1947 commit 7f7a319
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/python/moa/plugin/system/doc/templates/versioning.page.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Title: version info

Key | Run id | Value
----------------|-----------|----------------------------------------------------------------
{% for a in allkeys %}{% for r in vrange -%}
{% if loop.index0 == 0 -%}
{{ "%15s"|format('**' + a + '**') }} | {% set dummy=1 -%}
{{ "**%5d**"|format(r) }} | {% set dummy=1 -%}
{% if vinfo[r][a] %}{{ vinfo[r][a] }}{%else%}_(no value)_{% endif %}
{% else -%}
{%- if "%s"|format(vinfo[r][a]) != "%s"|format(vinfo[r+1][a]) -%}
{{ "%15s"|format("") }} | {% set dummy=1 -%}
{{ "%9d"|format(r) }} | {% set dummy=1 -%}
{% if vinfo[r][a] %}**{{ vinfo[r][a] }}**{%else%}***(no value)***{% endif %}
{% endif -%}
{%- endif -%}
{%- endfor -%}
{%- endfor %}

0 comments on commit 7f7a319

Please sign in to comment.