highlighting of errorneous lines in from tool output
[phorkie.git] / data / templates / tool.htm
1 {% extends "base.htm" %}
2 {% block title %}
3  Tool results: 
4  {%if repo.getDescription %}
5   {{repo.getDescription}}
6  {%else%}
7   {{repo.id}}
8  {%endif%}
9 {% endblock %}
10
11 {% block content %}
12 <h1>Tool results:  {{repo.getDescription}}</h1>
13 <div class="row-fluid repo-info">
14  <div class="span4">
15   <a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a>
16   <a class="btn" href="{{repo.getLink('display')}}"><i class="icon-arrow-left"></i> back</a>
17  </div>
18  <div class="span4" style="text-align: center">
19   <h3>Paste #{{repo.id}}</h3>
20  </div>
21 </div>
22
23  {% for line in toolres.annotations.general %}
24   <div class="alert {{line.getAlertLevel}}">
25    {{line.message}}
26   </div>
27  {% endfor %}
28
29  {% include 'display-file.htm' %}
30
31  {% for number,lineinfos in toolres.annotations if number != 'general' %}
32   {% for line in lineinfos %}
33    <div class="alert {{line.getAlertLevel}}">
34     Line #{{number}}: {{line.message}}
35    </div>
36   {% endfor %}
37  {% endfor %}
38
39  {% include 'display-foot.htm' %}
40 {% endblock %}
41
42 {% block sidebar %}
43 sidebar FIXME
44 {% endblock %}