mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Rename ansibleworks to awx.
This commit is contained in:
4
awx/templates/403.html
Normal file
4
awx/templates/403.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% extends "admin/403.html" %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{% endblock %}
|
||||
4
awx/templates/404.html
Normal file
4
awx/templates/404.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% extends "admin/404.html" %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{% endblock %}
|
||||
4
awx/templates/500.html
Normal file
4
awx/templates/500.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% extends "admin/500.html" %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{% endblock %}
|
||||
20
awx/templates/admin/403.html
Normal file
20
awx/templates/admin/403.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Forbidden" %}{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
||||
|
||||
{% block content_title %}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url "admin:index" %}">{% trans "Home" %}</a> ›
|
||||
{% trans "Forbidden" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 style="margin-bottom: 0.7em;">{% trans 'Forbidden' %}</h1>
|
||||
<p>{% trans "You don't have permission to access the requested page." %}</p>
|
||||
{% endblock %}
|
||||
18
awx/templates/admin/404.html
Normal file
18
awx/templates/admin/404.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Not Found" %}{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url "admin:index" %}">{% trans "Home" %}</a> ›
|
||||
{% trans "Not Found" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 style="margin-bottom: 0.7em;">{% trans 'Not Found' %}</h1>
|
||||
<p>{% trans "We're sorry, but the requested page could not be found." %}</p>
|
||||
{% endblock %}
|
||||
20
awx/templates/admin/500.html
Normal file
20
awx/templates/admin/500.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Server Error" %}{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
||||
|
||||
{% block content_title %}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url "admin:index" %}">{% trans "Home" %}</a> ›
|
||||
{% trans "Server Error" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 style="margin-bottom: 0.7em;">{% trans 'Server Error' %}</h1>
|
||||
<p>{% trans "A server error has occurred." %}</p>
|
||||
{% endblock %}
|
||||
191
awx/templates/admin/base_site.html
Normal file
191
awx/templates/admin/base_site.html
Normal file
@@ -0,0 +1,191 @@
|
||||
{# Admin site customizations. #}
|
||||
{% extends "admin/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{{ title }} | {% trans 'AWX Admin' %}{% endblock %}
|
||||
|
||||
{% block extrastyle %}
|
||||
{{ block.super }}
|
||||
<link href="{{ STATIC_URL }}favicon.ico" rel="shortcut icon" />
|
||||
<style type="text/css">
|
||||
/* Heading and button background colors. */
|
||||
#header
|
||||
{
|
||||
background: #1778C3 !important;
|
||||
}
|
||||
.module h2,
|
||||
#content-related .module h2,
|
||||
.module caption,
|
||||
.inline-group h2,
|
||||
.button.default,
|
||||
input[type="submit"].default,
|
||||
.submit-row input.default
|
||||
{
|
||||
background: #2773ae !important;
|
||||
}
|
||||
body
|
||||
{
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/* Heading and button foreground colors. */
|
||||
#branding h1
|
||||
{
|
||||
color: white !important;
|
||||
}
|
||||
.module h2,
|
||||
.module h2 a,
|
||||
#content-related .module h2,
|
||||
.module caption,
|
||||
.inline-group h2,
|
||||
a.section,
|
||||
a.section:link,
|
||||
a.section:visited,
|
||||
a.section:hover,
|
||||
.button.default,
|
||||
input[type="submit"].default,
|
||||
.submit-row input.default
|
||||
{
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
/* Link color. */
|
||||
a,
|
||||
a:link,
|
||||
a:visited,
|
||||
#changelist-filter a:hover,
|
||||
a:hover
|
||||
{
|
||||
color: #2773ae;
|
||||
}
|
||||
|
||||
/* Button border color. */
|
||||
.button.default,
|
||||
input[type="submit"].default,
|
||||
.submit-row input.default,
|
||||
.selector h2
|
||||
{
|
||||
border-color: #074979 !important;
|
||||
}
|
||||
#header {
|
||||
color: #ddd;
|
||||
border-bottom: solid 2px #074979;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a.section:hover
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
tr.row1 {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
ul.messagelist li {
|
||||
background-color: #ccddee;
|
||||
}
|
||||
.errornote {
|
||||
border-color: #b22222 !important;
|
||||
color: #b22222 !important;
|
||||
background-color: #fdc !important;
|
||||
}
|
||||
.errorlist li {
|
||||
border-color: #b22222 !important;
|
||||
background-color: #d24242 !important;
|
||||
}
|
||||
.errors {
|
||||
background-color: #fdc !important;
|
||||
}
|
||||
.errors input,
|
||||
.errors select,
|
||||
.errors textarea {
|
||||
border: 1px solid #b22222 !important;
|
||||
}
|
||||
pre.json-display, pre.result-display {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
pre.result-display {
|
||||
width: 75%;
|
||||
border: 1px solid #ccc;
|
||||
background: #444;
|
||||
color: #eee;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
#job_host_summaries-group table td.original p {
|
||||
display: none
|
||||
}
|
||||
#job_host_summaries-group table tr.has_original td {
|
||||
padding-top: 5px;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block extrahead %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block blockbots %}
|
||||
{{ block.super }}
|
||||
<script type="text/javascript">
|
||||
var django = django || {};
|
||||
if (django.jQuery) {
|
||||
(function($) {
|
||||
window.refreshJobStatus = function() {
|
||||
var status = $('.field-status p').text();
|
||||
if (status == 'Running' || status == 'Pending') {
|
||||
var url = '{{ request.path }}';
|
||||
$.get(url, function(data) {
|
||||
var selectors = [
|
||||
'.form-row.field-status',
|
||||
'.field-get_result_stdout_display pre',
|
||||
'.field-get_result_stderr_display pre',
|
||||
'.field-get_result_traceback_display pre',
|
||||
'.field-get_result_stdout_display pre',
|
||||
'#job_host_summaries-group',
|
||||
'#job_events-group',
|
||||
]
|
||||
$.each(selectors, function(index, selector) {
|
||||
$(selector).html($(data).find(selector).html());
|
||||
});
|
||||
setTimeout('window.refreshJobStatus()', 5000);
|
||||
});
|
||||
}
|
||||
}
|
||||
// Update playbook list based on project selected.
|
||||
function onProjectChange() {
|
||||
var project_pk = $('select[name="project"]').val() || 0;
|
||||
$('select[name="playbook"] span option').unwrap();
|
||||
$('select[name="playbook"] option:not(.project-' + project_pk + '):not([value=""])').wrap('<span/>');
|
||||
}
|
||||
$(function() {
|
||||
$('select[name="project"]').each(onProjectChange).change(onProjectChange);
|
||||
})
|
||||
setTimeout('window.refreshJobStatus()', 2000);
|
||||
})(django.jQuery);
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<h1 id="site-name">{% trans 'AWX Admin' %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block userlinks %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-global %}
|
||||
{% if user.is_active and user.is_staff and not is_popup %}
|
||||
{# Placeholder for version/hostname info. #}
|
||||
{% endif %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_title %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
147
awx/templates/rest_framework/api.html
Normal file
147
awx/templates/rest_framework/api.html
Normal file
@@ -0,0 +1,147 @@
|
||||
{% extends 'rest_framework/base.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans 'AWX REST API' %}{% endblock %}
|
||||
|
||||
{% block style %}
|
||||
{{ block.super }}
|
||||
<link href="{{ STATIC_URL }}img/favicon.ico" rel="shortcut icon" />
|
||||
<style type="text/css">
|
||||
html body {
|
||||
background: #ddd;
|
||||
}
|
||||
html body .navbar .navbar-inner {
|
||||
border-top: none;
|
||||
height: 20px;
|
||||
}
|
||||
html body .navbar-inverse .navbar-inner {
|
||||
background-color: #36454F;
|
||||
background-image: -moz-linear-gradient(top, #36454F, #36454F);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#36454F), to(#36454F));
|
||||
background-image: -webkit-linear-gradient(top, #36454F, #36454F);
|
||||
background-image: -o-linear-gradient(top, #36454F, #36454F);
|
||||
background-image: linear-gradient(to bottom, #36454F, #36454F);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #36454F;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#36454F', endColorstr='#36454F', GradientType=0);
|
||||
}
|
||||
html body .navbar-inverse .nav > li > a {
|
||||
color: #A9A9A9;
|
||||
}
|
||||
html body .navbar-inverse .nav > li > a:hover,
|
||||
html body .navbar-inverse .nav > li > a:focus {
|
||||
color: #2078be;
|
||||
}
|
||||
html body .navbar .brand img {
|
||||
width: 130px;
|
||||
margin-top: -6px;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
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;
|
||||
}
|
||||
html body .navbar-inverse .brand {
|
||||
font-size: 1.2em;
|
||||
color: #fff;
|
||||
}
|
||||
span.powered-by .version {
|
||||
color: #ddd;
|
||||
}
|
||||
span.powered-by {
|
||||
font-size: 75%;
|
||||
color: #ddd;
|
||||
}
|
||||
html body .navbar .navbar-inner .dropdown-menu li a,
|
||||
html body .navbar .navbar-inner .dropdown-menu li,
|
||||
html body .hero-unit h2,
|
||||
html body .hero-unit h1,
|
||||
html body a,
|
||||
html body a {
|
||||
color: #2078be;
|
||||
}
|
||||
html body .navbar .navbar-inner .dropdown-menu li a:hover,
|
||||
html body a:hover {
|
||||
color: #2078be;
|
||||
}
|
||||
html body ul.breadcrumb,
|
||||
html body .prettyprint,
|
||||
html body .well.tab-content {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
html body .prettyprint {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
html body .str,
|
||||
html body .atv,
|
||||
html body code {
|
||||
color: #074979;
|
||||
}
|
||||
html body .str a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
html body .page-header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
html body .description {
|
||||
padding-bottom: 0;
|
||||
display: none;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 0.5em;
|
||||
font-size: 0.8em;
|
||||
text-align: center;
|
||||
}
|
||||
.footer a,
|
||||
.footer a:hover {
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<a class="brand" href="/api/"><img class="logo" src="{{ STATIC_URL }}img/ansibleworks-logo.png">{% trans 'REST API' %}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block userlinks %}
|
||||
{% if user.is_authenticated %}
|
||||
<li>
|
||||
<a href="/api/v1/me/">{{ user }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<div class="footer">Copyright © 2013 <a href="http://www.ansibleworks.com/">AnsibleWorks, Inc.</a> All rights reserved.<br />
|
||||
1482 East Valley Road, Suite 888 · Montecito, California 9308 · <a href="tel:18008250212">+1-800-825-0212<a/></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
{{ block.super }}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
// Make linkes from relative URLs to resources.
|
||||
$('span.str').each(function() {
|
||||
var s = $(this).html();
|
||||
if (s.match(/^\"\/.+\/\"$/) || s.match(/^\"\/.+\/\?.*\"$/)) {
|
||||
$(this).html('"<a href=' + s + '>' + s.replace(/\"/g, '') + '</a>"');
|
||||
}
|
||||
});
|
||||
if ($('.description').html()) {
|
||||
$('.description').addClass('well').addClass('well-small').addClass('prettyprint');
|
||||
$('.description').prepend('<a class="hide-description pull-right" href="#" title="Hide Description"><i class="icon-remove"></i></a>');
|
||||
$('a.hide-description').click(function() {
|
||||
$('.description').slideUp('fast');
|
||||
return false;
|
||||
});
|
||||
$('.page-header h1').append('<a class="toggle-description" href="#" title="Show/Hide Description"><i class="icon-question-sign"></i></a>');
|
||||
$('a.toggle-description').click(function() {
|
||||
$('.description').slideToggle('fast');
|
||||
return false;
|
||||
});
|
||||
}
|
||||
$('.btn-primary').removeClass('btn-primary').addClass('btn-success');
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user