forked from buildbot/buildbot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IBox HTML -> jinja macro (fixes buildbot#652) + use path_to_build(er)…
… in grid
- Loading branch information
1 parent
5e8de8e
commit 70a6bb6
Showing
8 changed files
with
57 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% macro box(text=[], comment=None) -%} | ||
|
||
{%- if comment -%}<!-- {{ comment }} -->{%- endif -%} | ||
<td class="{{ kwargs.class or kwargs.class_ or "" }}" | ||
{%- for prop in ("align", "colspan", "rowspan", "border", "valign", "halign") -%} | ||
{%- if prop in kwargs -%} | ||
{{ prop }}="{{ kwargs[prop] }}" | ||
{%- endif -%} | ||
{%- endfor -%}> | ||
{{- text|join("<br/>") -}} | ||
</td> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{% extends "layout.html" %} | ||
{% from "box_macros.html" import box %} | ||
|
||
|
||
{% block content %} | ||
<table> | ||
{% for r in rows %} | ||
<tr>{{ r }}</tr> | ||
<tr>{{ box(r) }}</tr> | ||
{% endfor %} | ||
|
||
<tr>{{ build }}</tr> | ||
<tr>{{ box(build) }}</tr> | ||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters