add JSON links to HTML templates

This commit is contained in:
Tom Kralidis
2018-04-04 21:54:18 +00:00
parent b01a516b66
commit 15b62bd283
7 changed files with 10 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
# Images
# `json.png`
- downloaded from https://thenounproject.com/search/?q=json&i=966215
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

+1 -1
View File
@@ -20,7 +20,7 @@
</head>
<body>
<header>
<h1><a title="{{ config['metadata']['identification']['title'] }}" href="{{ config['server']['url'] }}?f=html">{{ config['metadata']['identification']['title'] }}</a></h1>
<h1><a title="{{ config['metadata']['identification']['title'] }}" href="{{ config['server']['url'] }}?f=html">{{ config['metadata']['identification']['title'] }}</a><a title="JSON" href="{{ config['server']['url'] }}"><img alt="JSON" src="{{ config['server']['url'] }}/static/img/json.png" width="30" height="30"/></a></h1>
<span itemprop="description">{{ config['metadata']['identification']['description'] }}</span>
</header>
+1 -1
View File
@@ -2,7 +2,7 @@
{% block title %}{{ super() }} {{ data['title'] }} {% endblock %}
{% block body %}
<section id="collection">
<h2>{{ data['title'] }}</h2>
<h2>{{ data['title'] }}<a title="JSON" href="{{ config['server']['url'] }}/collections/{{ data['name'] }}"><img alt="JSON" src="{{ config['server']['url'] }}/static/img/json.png" width="30" height="30"/></a></h2>
<div>{{ data['description'] }}</div>
<div><a title="Browse Features" href="{{ config['server']['url'] }}/collections/{{ data['name'] }}/items?f=html">Browse Features</a></div>
<h2>Links</h2>
+1 -1
View File
@@ -2,7 +2,7 @@
{% block title %}{{ super() }} Collections {% endblock %}
{% block body %}
<section id="collections">
<h2>Collections</h2>
<h2>Collections <a title="JSON" href="{{ config['server']['url'] }}/collections"><img alt="JSON" src="{{ config['server']['url'] }}/static/img/json.png" width="30" height="30"/></a></h2>
<ul>
{% for k, v in config['datasets'].items()%}
<li><a title="{{ v['title'] }}" href="{{ config['server']['url'] }}/collections/{{ k }}?f=html">{{ v['title'] }}</a></li>
+1 -1
View File
@@ -2,7 +2,7 @@
{% block title %}{{ super() }} Conformance {% endblock %}
{% block body %}
<section id="conformance">
<h2>Conformance</h2>
<h2>Conformance <a title="JSON" href="{{ config['server']['url'] }}/conformance"><img alt="JSON" src="{{ config['server']['url'] }}/static/img/json.png" width="30" height="30"/></a></h2>
<ul>
{% for link in data['conformsTo'] %}
<li><a title="{{ link }}" href="{{ link }}">{{ link }}</a></li>
+2 -2
View File
@@ -8,7 +8,7 @@
width: 80%;
}
#items-map {
width: 600px;
width: 400px;
height: 400px;
}
</style>
@@ -18,7 +18,7 @@
<section id="items">
<h2>{{ data['title'] }}</h2>
<span>{{ data['description'] }}</span>
<h2>Features</h2>
<h2>Features <a title="JSON" href="./items"><img alt="JSON" src="{{ config['server']['url'] }}/static/img/json.png" width="30" height="30"/></a></h2>
<table>
<tr>
<td>