mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
AC-939 Update browsable REST API branding to Tower.
This commit is contained in:
parent
8aa9fe9d7e
commit
b6543be0cf
@ -54,7 +54,7 @@ within all designated text fields of a model.
|
||||
|
||||
?search=findme
|
||||
|
||||
_New in AWX 1.4_
|
||||
_New since AWX 1.4_
|
||||
|
||||
## Filtering
|
||||
|
||||
@ -75,7 +75,7 @@ To exclude results matching certain criteria, prefix the field parameter with
|
||||
|
||||
?not__field=value
|
||||
|
||||
(_New in AWX 1.4_) By default, all query string filters are AND'ed together, so
|
||||
(_New since AWX 1.4_) By default, all query string filters are AND'ed together, so
|
||||
only the results matching *all* filters will be returned. To combine results
|
||||
matching *any* one of multiple criteria, prefix each query string parameter
|
||||
with `or__`:
|
||||
@ -83,10 +83,10 @@ with `or__`:
|
||||
?or__field=value&or__field=othervalue
|
||||
?or__not__field=value&or__field=othervalue
|
||||
|
||||
(_New in AWX 1.5_) The default AND filtering applies all filters simultaneously
|
||||
to each related object being filtered across database relationships. The chain
|
||||
filter instead applies filters separately for each related object. To use,
|
||||
prefix the query string parameter with `chain__`:
|
||||
(_New in Ansible Tower 1.4.5_) The default AND filtering applies all filters
|
||||
simultaneously to each related object being filtered across database
|
||||
relationships. The chain filter instead applies filters separately for each
|
||||
related object. To use, prefix the query string parameter with `chain__`:
|
||||
|
||||
?chain__related__field=value&chain__related__field2=othervalue
|
||||
?chain__not__related__field=value&chain__related__field2=othervalue
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
{% if new_in_13 %}> _New in AWX 1.3_{% endif %}
|
||||
{% if new_in_14 %}> _New in AWX 1.4_{% endif %}
|
||||
{% if new_in_15 %}> _New in AWX 1.5_{% endif %}
|
||||
{% if new_in_13 %}> _New since AWX 1.3_{% endif %}
|
||||
{% if new_in_14 %}> _New since AWX 1.4_{% endif %}
|
||||
{% if new_in_145 %}> _New in Ansible Tower 1.4.5_{% endif %}
|
||||
{% if new_in_15 %}> _New in Ansible Tower 1.5_{% endif %}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
The root of the AWX REST API.
|
||||
The root of the Ansible Tower REST API.
|
||||
|
||||
Make a GET request to this resource to obtain information about the available
|
||||
API versions.
|
||||
|
||||
@ -9,4 +9,4 @@ the following fields (some fields may not be visible to all users):
|
||||
use when creating/editing a project.
|
||||
* `time_zone`: The configured time zone for the server.
|
||||
* `license_info`: Information about the current license.
|
||||
* `version`: Version of AWX package installed.
|
||||
* `version`: Version of Ansible Tower (AWX) package installed.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Version 1 of the AWX REST API.
|
||||
Version 1 of the Ansible Tower REST API.
|
||||
|
||||
Make a GET request to this resource to obtain a list of all child resources
|
||||
available via the API.
|
||||
|
||||
@ -10,7 +10,7 @@ object containing groups, including the hosts, children and variables for each
|
||||
group. The response data is equivalent to that returned by passing the
|
||||
`--list` argument to an inventory script.
|
||||
|
||||
_(New in AWX 1.3)_ Specify a query string of `?hostvars=1` to retrieve the JSON
|
||||
_(New since AWX 1.3)_ Specify a query string of `?hostvars=1` to retrieve the JSON
|
||||
object above including all host variables. The `['_meta']['hostvars']` object
|
||||
in the response contains an entry for each host with its variables. This
|
||||
response format can be used with Ansible 1.3 and later to avoid making a
|
||||
@ -18,7 +18,7 @@ separate API request for each host. Refer to
|
||||
[Tuning the External Inventory Script](http://www.ansibleworks.com/docs/api.html#tuning-the-external-inventory-script)
|
||||
for more information on this feature.
|
||||
|
||||
_(New in AWX 1.4)_ By default, the inventory script will only return hosts that
|
||||
_(New since AWX 1.4)_ By default, the inventory script will only return hosts that
|
||||
are enabled in the inventory. This feature allows disabled hosts to be skipped
|
||||
when running jobs without removing them from the inventory. Specify a query
|
||||
string of `?all=1` to return all hosts, including disabled ones.
|
||||
|
||||
@ -59,7 +59,7 @@ class ApiRootView(APIView):
|
||||
|
||||
current = reverse('api:api_v1_root_view', args=[])
|
||||
data = dict(
|
||||
description = 'AWX REST API',
|
||||
description = 'Ansible Tower REST API',
|
||||
current_version = current,
|
||||
available_versions = dict(
|
||||
v1 = current
|
||||
|
||||
@ -30,23 +30,23 @@ html body .navbar-inverse .nav > li > a {
|
||||
}
|
||||
html body .navbar-inverse .nav > li > a:hover,
|
||||
html body .navbar-inverse .nav > li > a:focus {
|
||||
color: #2078be;
|
||||
color: #4e9998;
|
||||
}
|
||||
html body .navbar .brand img {
|
||||
width: 200px;
|
||||
margin-top: -6px;
|
||||
margin-right: 0.5em;
|
||||
margin-top: -2px;
|
||||
margin-right: 0.75em;
|
||||
}
|
||||
html body .navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
|
||||
html body .navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
|
||||
html body .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
|
||||
background-color: #074979;
|
||||
background-color: #1a3333;
|
||||
}
|
||||
html body .navbar-inverse .brand {
|
||||
font-size: 1.2em;
|
||||
color: #fff;
|
||||
padding-top: 6px;
|
||||
padding-left: 4px;
|
||||
padding-top: 18px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
html body .navbar-inverse .nav.pull-right {
|
||||
margin-top: 8px;
|
||||
@ -68,11 +68,11 @@ html body .hero-unit h2,
|
||||
html body .hero-unit h1,
|
||||
html body a,
|
||||
html body a {
|
||||
color: #2078be;
|
||||
color: #4e9998;
|
||||
}
|
||||
html body .navbar .navbar-inner .dropdown-menu li a:hover,
|
||||
html body a:hover {
|
||||
color: #2078be;
|
||||
color: #4e9998;
|
||||
}
|
||||
html body ul.breadcrumb,
|
||||
html body .prettyprint,
|
||||
@ -85,7 +85,12 @@ html body .prettyprint {
|
||||
html body .str,
|
||||
html body .atv,
|
||||
html body code {
|
||||
color: #074979;
|
||||
color: #1a3333;
|
||||
}
|
||||
html body .kwd,
|
||||
html body .ta,
|
||||
html body .lit {
|
||||
color: #346665;
|
||||
}
|
||||
html body .str a {
|
||||
text-decoration: underline;
|
||||
@ -107,8 +112,7 @@ html body .description {
|
||||
#footer a:hover {
|
||||
color: #333;
|
||||
}
|
||||
img.awxlogo {
|
||||
width: 125px;
|
||||
img.towerlogo {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
html body .wrapper {
|
||||
@ -122,11 +126,55 @@ html body #footer {
|
||||
html body #push {
|
||||
height: 0;
|
||||
}
|
||||
html body .btn-success {
|
||||
color: #ffffff;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
background-color: #5bb75b; /* 66c8c7 l=6fd9d7 d=55a6a4 */
|
||||
background-image: -moz-linear-gradient(top, #6fd9d7, #55a6a4);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#6fd9d7), to(#55a6a4));
|
||||
background-image: -webkit-linear-gradient(top, #6fd9d7, #55a6a4);
|
||||
background-image: -o-linear-gradient(top, #6fd9d7, #55a6a4);
|
||||
background-image: linear-gradient(to bottom, #6fd9d7, #55a6a4);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6fd9d7', endColorstr='#ff55a6a4', GradientType=0);
|
||||
border-color: #55a6a4 #55a6a4 #41807e;
|
||||
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
}
|
||||
html body .btn-success:hover,
|
||||
html body .btn-success:active,
|
||||
html body .btn-success.active,
|
||||
html body .btn-success.disabled,
|
||||
html body .btn-success[disabled] {
|
||||
color: #ffffff;
|
||||
background-color: #55a6a4;
|
||||
}
|
||||
html body .btn-group.open .btn-success.dropdown-toggle {
|
||||
background-color: #55a6a4;
|
||||
}
|
||||
html body .btn-success:active,
|
||||
html body .btn-success.active {
|
||||
background-color:#41807e \9;
|
||||
}
|
||||
html body .dropdown-menu li>a:hover,
|
||||
html body .dropdown-menu li>a:focus,
|
||||
html body .dropdown-submenu:hover>a {
|
||||
text-decoration: none;
|
||||
color: #ffffff;
|
||||
background-color: #55a6a4;
|
||||
background-image: -moz-linear-gradient(top, #55a6a4, #41807e);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#55a6a4), to(#41807e));
|
||||
background-image: -webkit-linear-gradient(top, #55a6a4, #41807e);
|
||||
background-image: -o-linear-gradient(top, #55a6a4, #41807e);
|
||||
background-image: linear-gradient(to bottom, #55a6a4, #41807e);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff55a6a4', endColorstr='#ff41807e', GradientType=0);
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<a class="brand" href="/api/"><img class="logo" src="{{ STATIC_URL }}img/logo.png">{% block branding_title %}{% trans 'REST API' %}{% endblock %}</a>
|
||||
<a class="brand" href="/api/"><img class="logo" src="{{ STATIC_URL }}img/tower_console_logo.png">{% block branding_title %}{% trans 'REST API' %}{% endblock %}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block userlinks %}
|
||||
@ -139,7 +187,7 @@ html body #push {
|
||||
|
||||
{% block footer %}
|
||||
<div id="footer">
|
||||
<img class="awxlogo" src="{{ STATIC_URL }}img/AWX_logo.png" /><br/>
|
||||
<img class="towerlogo" src="{{ STATIC_URL }}img/tower_console_bug.png" /><br/>
|
||||
Copyright © 2014 <a href="http://www.ansibleworks.com" target="_blank">AnsibleWorks, Inc.</a> All rights reserved.
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user