add JSON links to HTML templates
This commit is contained in:
@@ -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 |
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user