-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2259 from WikiWatershed/tt/bigcz-cuahsi-detail-view
BiG-CZ: WDC / CUAHSI Details View Connects #2234
- Loading branch information
Showing
11 changed files
with
179 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/mmw/js/src/data_catalog/templates/resultDetailsCuahsi.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<div class="result"> | ||
<div class="result-detail-header"> | ||
<button type="button" class="close" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<h2> | ||
Site: {{ location }} {{ title }} | ||
</h2> | ||
<p> | ||
Source: {{ service_org }} {{ service_title }} | ||
<a data-toggle="popover" tabindex="0" | ||
data-html="true" data-container="body" role="button" | ||
data-content="{{ description }}" | ||
data-template="<div class='popover'><div class='pull-right' id='popover-close-button' onclick='closePopover()'><i class='fa fa-times' /></div><div class='popover-content'></div><div class='arrow'></div></div>"> | ||
<i class="fa fa-info-circle black"></i> | ||
</a> | ||
</p> | ||
</div> | ||
{% if author %} | ||
<p> | ||
<i class="fa fa-user"></i>{{ author }} | ||
</p> | ||
{% endif %} | ||
{% if begin_date == end_date %} | ||
<p> | ||
Data collected on: {{ begin_date|toDateWithoutTime }} | ||
</p> | ||
{% else %} | ||
<p> | ||
Data collected between: {{ begin_date|toDateWithoutTime }} - {{ end_date|toDateWithoutTime }} | ||
</p> | ||
{% endif %} | ||
<p> | ||
Medium: {{ sample_mediums|join(", ") }} | ||
</p> | ||
<p> | ||
{% if details_url %} | ||
<a class="btn btn-secondary" href="{{ details_url }}" | ||
target="_blank" rel="noreferrer noopener"> | ||
<i class="fa fa-external-link-square"></i> Source Data | ||
</a> | ||
{% endif %} | ||
<a class="btn btn-secondary" href="{{ service_url }}" | ||
target="_blank" rel="noreferrer noopener"> | ||
<i class="fa fa-globe"></i> Web Services | ||
</a> | ||
</p> | ||
<hr /> | ||
<p> | ||
Last collected value {{ end_date|toTimeAgo }}: | ||
</p> | ||
<table class="table custom-hover" data-toggle="table"> | ||
<thead> | ||
<tr> | ||
<th>Variable</th> | ||
<th class="text-right">Value</th> | ||
<th>Units</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for ck in concept_keywords %} | ||
<tr> | ||
<td>{{ ck }}</td> | ||
<td class="text-right"><!-- TODO Fetch Values --></td> | ||
<td><!-- TODO Fetch Units --></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<!-- TODO Insert Chart https://github.com/WikiWatershed/model-my-watershed/issues/2238 --> | ||
<hr /> | ||
<p>Citation: {{ service_citation }}</p> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/mmw/js/src/data_catalog/templates/resultDetailsHydroshare.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="result"> | ||
<div class="result-detail-header"> | ||
<h2> | ||
{{ title }} | ||
</h2> | ||
<button type="button" class="close" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<a href="#"><i class="fa fa-search-plus"></i> Zoom to extent</a> | ||
</div> | ||
<hr> | ||
{% if author %} | ||
<p> | ||
<i class="fa fa-user"></i>{{ author }} | ||
</p> | ||
{% endif %} | ||
<p> | ||
<i class="fa fa-calendar"></i> {{ created_at|toDateFullYear }} | ||
</p> | ||
<p> | ||
{{ description }} | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters