Skip to content

Commit d1dd7e3

Browse files
committed
Added info block above "Upload to DataStore" button
1 parent ed5c06b commit d1dd7e3

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

ckanext/datapusher_plus/templates/datapusher/resource_data.html

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
<form method="post" action="{{ action }}" class="datapusher-form">
1111
{{ h.csrf_input() }}
12+
<p>The Datastore allows the Hub to store information from your resources to power features like data preview, search and filter, and the data dictionary.
13+
If you are experiencing issues with any of these features or there is an error in this section, first try to reupload the resource with the “Upload to Datastore” button.
14+
If you need additional assistance, please visit the <a href="https://docs.txwaterdatahub.org/catalog-management/application">Hub Documents Library</a> or reach out to <a href="/contact" >Hub support</a>.</p>
1215
<button class="btn btn-primary" name="save" type="submit">
1316
<i class="fa fa-cloud-upload"></i> {{ _('Upload to DataStore') }}
1417
</button>
@@ -59,37 +62,4 @@
5962
</tr>
6063
</table>
6164

62-
{% if status.status and status.task_info and show_table %}
63-
<h3>{{ _('Upload Log') }}</h3>
64-
<ul class="datapusher-activity">
65-
{% for item in status.task_info.logs|sort(attribute='timestamp') %}
66-
{% set icon = 'check' if item.level == 'INFO' else 'exclamation' %}
67-
{% set class = ' failure' if icon == 'exclamation' else ' success' %}
68-
{% set popover_content = 'test' %}
69-
<li class="item no-avatar{{ class }}">
70-
<span class="fa-stack fa-lg">
71-
<i class="fa fa-circle fa-stack-2x icon"></i>
72-
<i class="fa fa-{{ icon }} fa-stack-1x fa-inverse"></i>
73-
</span>
74-
{% for line in item.message.strip().split('\n') %}
75-
{{ line | urlize }}<br />
76-
{% endfor %}
77-
<span class="date" title="{{ h.render_datetime(item.timestamp, with_hours=True, with_seconds=True) }}">
78-
{{ h.time_ago_from_timestamp(item.timestamp) }}
79-
<a href="#" data-module="datapusher_popover" data-module-title="Details <a href='#' class='popover-close'>X</a>" data-module-content="<ul class='list-unstyled'>{% for key, value in item.items() %}<li><b>{{ key }}</b>: {{ h.clean_html(value|string) }}</li>{% endfor %}</ul>">
80-
{{ _('Details') }}
81-
</a>
82-
</span>
83-
</li>
84-
{% endfor %}
85-
<li class="item no-avatar">
86-
<span class="fa-stack fa-lg">
87-
<i class="fa fa-circle fa-stack-2x icon"></i>
88-
<i class="fa fa-info fa-stack-1x fa-inverse"></i>
89-
</span>
90-
{{ _('End of log') }}
91-
</li>
92-
</ul>
93-
{% endif %}
94-
9565
{% endblock %}

0 commit comments

Comments
 (0)