Add API resource for unified job stdout with HTML output of ANSI color codes.

This commit is contained in:
Chris Church
2014-04-01 20:15:36 -04:00
parent fb5b069273
commit 86599cf1e3
18 changed files with 747 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
{# Copy of base.html from rest_framework with minor AWX change. #}
{# Copy of base.html from rest_framework with minor Ansible Tower change. #}
{% load url from future %}
{% load rest_framework %}
<!DOCTYPE html>
@@ -34,7 +34,7 @@
<div class="navbar-inner">
<div class="container-fluid">
<span href="/">
{% block branding %}<a class='brand' href='http://django-rest-framework.org'>Django REST framework <span class="version">{{ version }}</span></a>{% endblock %}
{% block branding %}<a class='brand' rel="nofollow" href='http://www.django-rest-framework.org'>Django REST framework <span class="version">{{ version }}</span></a>{% endblock %}
</span>
<ul class="nav pull-right">
{% block userlinks %}
@@ -119,9 +119,9 @@
</div>
<div class="response-info">
<pre class="prettyprint"><div class="meta nocode"><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}
{% for key, val in response.items %}<b>{{ key }}:</b> <span class="lit">{{ val|break_long_headers|urlize_quoted_links }}</span>
{% for key, val in response_headers.items %}<b>{{ key }}:</b> <span class="lit">{{ val|break_long_headers|urlize_quoted_links }}</span>
{% endfor %}
{# Original line below had content|urlize_quoted_links; for AWX disable automatic URL creation here. #}
{# Original line below had content|urlize_quoted_links; for Ansible Tower disable automatic URL creation here. #}
</div>{{ content }}</pre>{% endautoescape %}
</div>
</div>