Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 6 additions & 4 deletions ckanext/opendata_theme/opengov_custom_css/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,6 @@ form.form-inline.form-select.lang-select {
background-color: #852c7b !important;
}

#dataset-resources .btn-group .btn {
margin-left: 5px;
}

.module-heading .action {
color: #ffffff !important;
}
Expand Down Expand Up @@ -471,6 +467,12 @@ form.form-inline.form-select.lang-select {
}
}

@media (min-width: 991px) {
.resource-item {
padding-right: 140px;
}
}

.site-footer .og-attribution {
display: inline-block;
float: right;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,28 @@
{{ h.popular('views', res.tracking_summary.total, min=10) if res.tracking_summary }}
</a>
{% endblock %}

{% block resource_item_explore %}
{% if not url_is_edit %}
<div class="btn-group">
{% if can_edit %}
<a href="{{ h.url_for(pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id) }}" class="btn btn-sm btn-primary" aria-label="Edit resource {{ res.name or res.id }}">
<i class="fa fa-pencil-square-o"></i>
{{ _('Edit') }}
</a>
{% else %}
{% if res.url and res.url_type == 'upload' %}
<a href="{{ res.url }}" class="btn btn-sm btn-primary resource-url-analytics" target="_blank" aria-label="Download resource {{ res.name or res.id }}">
<i class="fa fa-arrow-circle-o-down"></i>
{{ _('Download') }}
</a>
{% else %}
<a href="{{ res.url }}" class="btn btn-sm btn-primary resource-url-analytics" target="_blank" aria-label="Go to resource {{ res.name or res.id }}">
<i class="fa fa-external-link"></i>
{{ _('Go to resource') }}
</a>
{% endif %}
{% endif %}
</div>
{% endif %}
{% endblock %}