From a8c927cc2a97f3991a3f605287c5a23439a6265b Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Wed, 10 Jul 2019 15:21:25 -0500 Subject: [PATCH] settings/templates: customize home page view for playground instance --- config/settings/vm/playground.py | 1 + gracedb/templates/gracedb/index.html | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config/settings/vm/playground.py b/config/settings/vm/playground.py index 32ed2bb99..c58ac32d8 100644 --- a/config/settings/vm/playground.py +++ b/config/settings/vm/playground.py @@ -33,6 +33,7 @@ ALLOWED_HOSTS += ['testserver'] # Home page stuff INSTANCE_TITLE = 'GraceDB Playground' INSTANCE_INFO = """ +<h3>Playground instance</h3> <p> This GraceDB instance is designed for users to develop and test their own applications. It mimics the production instance in all but the following ways: diff --git a/gracedb/templates/gracedb/index.html b/gracedb/templates/gracedb/index.html index 9006a2bd1..189244bec 100644 --- a/gracedb/templates/gracedb/index.html +++ b/gracedb/templates/gracedb/index.html @@ -76,11 +76,6 @@ body { </h2> <div class="text"> - -{# Can customize main informational display on home page or just use default #} -{% if information %} - {{ information|safe }} -{% else %} <p> The gravitational-wave candidate event database (GraceDB) is a service operated by the <a href="https://www.ligo.org/">LIGO Scientific Collaboration</a>. It provides a centralized location for aggregating and retrieving information about candidate gravitational-wave events. GraceDB provides an <a href="{% url "legacy_apiweb:default:root" %}">API</a> for programmatic access, and a <a href="https://ligo-gracedb.readthedocs.io/">client package</a> is available for interacting with the API. </p> @@ -90,6 +85,8 @@ body { <li>Information about GW alerts and real-time data products is available in the <a href="https://emfollow.docs.ligo.org/userguide/">LIGO/Virgo Public Alert Guide</a>.</li> <li>Found a bug? LIGO/Virgo users can report issues on the GraceDB <a href="https://git.ligo.org/lscsoft/gracedb/issues">Gitlab page</a>.</li> </ul> +{% if information %} + {{ information|safe }} {% endif %} <p><b>Server code version: <a href="https://git.ligo.org/lscsoft/gracedb/tree/gracedb-{{server_version}}">{{server_version}}</a></b></p> </div> -- GitLab