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.
Add revlink arg to WebStatus (adds links to revisions-ids) + cleanups
* move shortrev/revlink html from python to jinja2 macro * add missing revlink, shortrev filters in html templates * remove TODO on b.changesText() (we list any change comments already)
- Loading branch information
1 parent
4e6513b
commit dee5b49
Showing
7 changed files
with
113 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{# both macro pairs must have the same signature #} | ||
|
||
{% macro id_replace(rev, url) -%} | ||
<span class="revision"><a href="{{ url }}">r{{ rev }}</span> | ||
{%- endmacro %} | ||
|
||
{% macro shorten_replace(short, rev, url) -%} | ||
<div class="revision"> | ||
<div class="short" title="{{ rev }}"> | ||
<a href="{{ url }}">r{{ short }}</a> | ||
</div> | ||
<div class="full"> | ||
<a href="{{ url }}">r{{ rev }}</a> | ||
</div> | ||
</div> | ||
{% endmacro %} | ||
|
||
{% macro id(rev, url) -%} | ||
<span class="revision">r{{ rev }}</span> | ||
{%- endmacro %} | ||
|
||
{% macro shorten(short, rev, url) -%} | ||
<div class="revision"> | ||
<div class="short" title="{{ rev }}">r{{ short }}</div> | ||
<div class="full">r{{ rev }}</div> | ||
</div> | ||
{% endmacro %} |