Commit 9423dfd1 authored by Marko Kuder's avatar Marko Kuder
Browse files

reorganize resource buttons to use float:right (must deploy with pops_d7 update)

parent 8b097675
......@@ -333,45 +333,38 @@
{% set archiver_format = res.get('archiver', {})['format'] or '' %}
{% set is_download = not is_location_data and res.get('resource_type') != 'api' and (res.format or '').upper() not in non_download_formats and archiver_format not in non_download_formats %}
{% set is_html = not is_download and (res.format and res.format.upper() == 'HTML' or archiver_format.upper() == 'HTML') %}
<span>
{# exclamation mark #}
{% if h.is_resource_broken(res) %}
<a class="js-tooltip button" data-toggle="tooltip" data-placement="right" title="S tem virom je nekaj narobe" href="{{h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])}}#qualitycheck" style="text-decoration:none;background-color:#D81F25;">
<i class="fi-alert"></i>
</a>
{% endif %}
{% if h.is_datastore_compatible(res) %}
{% snippet 'package/snippets/data_api_button.html', resource=res, suppress_script=(api_res_count|length > 0) %}
{% if api_res_count.append(1) %}{% endif %}
{% endif %}
{% if not is_harvest_metadata %}
<a class="button" href="{{h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])}}">
<strong>
Več ...
</strong>
</a>
{% endif %}
</span>
<span>
<a href="{{res.get('url', '')}}" onclick="{{h.ga_download_tracking(res, publisher_name)}}" class="button">
<span class="icon-download"></span>
<strong>
{% if is_download and not is_harvest_metadata %}
Prenos
{% if res.get('archiver') and res['archiver'].get('size') %}
({{ res['archiver']['size']|filesizeformat }})
{% endif %}
{% else %}
Povezava
{% if not is_html and res.format %} na {% endif %}
{% if not is_html and res.format %} na {{ res.format }}{% endif %}
{% endif %}
{#% if not is_html and res.format %}
{{ res.format }}
{% endif %#}
</strong>
<!--
{% if is_download and res.get('archiver') and res['archiver'].get('size') %}
({{ res['archiver']['size']|filesizeformat }})
{% endif %}
-->
</a>
{% if h.is_datastore_compatible(res) %}
{% snippet 'package/snippets/data_api_button.html', resource=res, suppress_script=(api_res_count|length > 0) %}
{% if api_res_count.append(1) %}{% endif %}
{% endif %}
{% if not is_harvest_metadata %}
<a class="button" href="{{h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])}}">
<strong>
Več ...
</strong>
</a>
{% endif %}
{# exclamation mark #}
{% if h.is_resource_broken(res) %}
<a class="js-tooltip button" data-toggle="tooltip" data-placement="right" title="S tem virom je nekaj narobe" href="{{h.url_for(controller='package', action='resource_read', id=c.pkg_dict['name'], resource_id=res['id'])}}#qualitycheck" style="text-decoration:none;background-color:#D81F25;">
<i class="fi-alert"></i>
</a>
{% endif %}
</span>
{% endwith %}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment