Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
0ee3cebf
Commit
0ee3cebf
authored
Aug 16, 2012
by
Clément Schreiner
Browse files
Beginning of the update to the new API. Not complete.
parent
d25c095b
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/templates/plugins/closedbugs/html.mako
View file @
0ee3cebf
<div class="qa-header">
${
o.outcome
}
${
test_result
}
</div>
<div class="qa-content">
%if
o.rich_data["
errors
"]
:
Errors:
<ul class="bugs-errors">
%
for
error in o.rich_data["errors"]
:
<li>${
error
}</li>
%
endfor
</ul>
%endif
<ul class="bugs-closed">
%for package in o.rich_data["
bug
s
"]:
<li>
<a href="http://bugs.debian.org/${package}">${package}</a>:
<ul>
%
for bugnum, title, severity in o.rich_data["bugs"][package]:
<li>
<a href="http://bugs.debian.org/${bugnum}">#${bugnum}</a> (${severity}): ${title}
</li>
%
endfor
</ul>
</li>
%
endfor
%if
test_result.nb_
errors:
Errors:
<ul class="bugs-errors">
%
for
bug in filter(lambda b: b.is_error, results['closed_bug'])
:
<li>${
bug
}</li>
%
endfor
</ul>
%endif
<ul class="bugs-closed">
% for bug in filter(lambda b: b.is_closed, results["closed_
bug"]
)
:
<li>
<a href="http://bugs.debian.org/${
bug.
package}">${
bug.
package}</a>:
<ul>
%
for bugnum, title, severity in o.rich_data["bugs"][package]:
<li>
<a href="http://bugs.debian.org/${bugnum}">#${bugnum}</a> (${severity}): ${title}
</li>
%
endfor
</ul>
</li>
%
endfor
</ul>
</div>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment