From 48c0b1c6d5dbf1a3fd4504c43c9ad5d496d9a188 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Sat, 27 Apr 2013 19:51:56 -0400 Subject: [PATCH] Update browseable REST API interface, make resource URLs into links. --- lib/templates/rest_framework/api.html | 77 +++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 lib/templates/rest_framework/api.html diff --git a/lib/templates/rest_framework/api.html b/lib/templates/rest_framework/api.html new file mode 100644 index 0000000000..36e7e32fb7 --- /dev/null +++ b/lib/templates/rest_framework/api.html @@ -0,0 +1,77 @@ +{% extends 'rest_framework/base.html' %} +{% load i18n %} + +{% block title %}{% trans 'Ansible Commander API' %}{% endblock %} + +{% block style %} +{{ block.super }} + + +{% endblock %} + +{% block branding %} + {% trans 'Ansible Commander API' %} + ({% trans 'powered by' %} {{ block.super }}) +{% endblock %} + +{% block userlinks %} + {% if user.is_authenticated %} +
  • + {{ user }} +
  • + {% endif %} +{% endblock %} + +{% block script %} +{{ block.super }} + +{% endblock %}