github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/gubernator/templates/filtered_log.html (about) 1 % extends 'base.html' 2 {% block title %}{{job}} #{{build}} {{log_file}}{% endblock %} 3 % block header 4 <h1>{% if pr %}<a href="/pr/{{pr}}">PR #{{pr}}</a> {% endif %}<a href="/builds{{job_dir}}">{{job}}</a> <a href="/build{{build_dir}}">#{{build}}</a> {{log_file}}</h1> 5 % endblock 6 % block content 7 <div id="failures"> 8 <form method="get" onchange="submit()"> 9 <h3> Failed pod: <input type="text" name="pod" value="{{pod}}" style="width: 300px;"> 10 </h3> 11 <input type="hidden" name="junit" value="{{junit}}"> 12 <hr> 13 <label><input type="checkbox" name="wrap"{% if wrap %} checked{% endif %}> Wrap lines </label> 14 <label><input type="checkbox" name="weave"{% if weave %} checked{% endif %}> Weave by timestamp </label> 15 % for folder, filenames in all_logs.items()|sort 16 <hr> 17 <h4> {{folder|basename or folder|dirname|basename}} </h4> 18 % for filename in filenames 19 % set log_name = filename|basename 20 <label><input type="checkbox" name="logfiles" value={{filename}} {% if filename in log_files %} checked {% endif %}> {{log_name}}</label> 21 <a href="https://storage.googleapis.com{{filename}}">(Full Log)</a> <br> 22 % endfor 23 % endfor 24 <hr> 25 <label><input type="checkbox" name="UID"{% if uid %} checked {% endif %}> Highlight Pod UID: <input type="text" name="poduid" value="{{objref_dict['UID']}}" style="width: 300px;"></label><br> 26 <label><input type="checkbox" name="Namespace"{% if namespace %} checked {% endif %}> Highlight Namespace: <input type="text" name="ns" value="{{objref_dict['Namespace']}}" style="width: 300px;"></label><br> 27 <label><input type="checkbox" name="ContainerID"{% if containerID %} checked {% endif %}> Highlight ContainerID: <input type="text" name="cID" value="{{objref_dict['ContainerID']}}" style="width: 300px;"></label><br> 28 Add filter: <input type="text" name="others"><br> 29 % for other in others|sort 30 % if other 31 <label><input type="checkbox" name="others" value="{{other}}" {% if other in others %} checked {% endif %}> {{other}}</label><br> 32 % endif 33 % endfor 34 </form> 35 % if weave 36 <pre {% if not wrap %} style="white-space:pre"{% endif %}> 37 {{woven_logs | safe}} 38 </pre> 39 % else 40 <button onclick="javascript:expand_all(this)">Expand Skipped Lines</button> 41 % for file in log_files|sort 42 <h3>{{file}}</h3> 43 <pre {% if not wrap %} style="white-space:pre"{% endif %} data-src="{{file}}">{{logs[file] | safe}}</pre> 44 % endfor 45 % endif 46 </div> 47 % endblock