This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource types shown as badges in promoted
- Loading branch information
Showing
4 changed files
with
87 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,3 +357,7 @@ | |
font-size: 14px; | ||
} | ||
|
||
.dataset.promoted-background .promoted-container .badge { | ||
margin-right: 5px; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,68 @@ | ||
{% ckan_extends %} | ||
|
||
{% block fx_bg %}{% endblock %} | ||
{% block promoted_toolbar %} | ||
|
||
{% block fx_container %} | ||
<div class="dataset promoted-background promoted-breadcrumbs"> | ||
<div class="flag-vertical-bars"> | ||
<div class="flag-bar flag-green"></div> | ||
<div class="flag-bar flag-red"></div> | ||
<div class="flag-bar flag-black"></div> | ||
<div class="flag-bar flag-orange"></div> | ||
</div> | ||
<div class="container"> | ||
<div class="toolbar" role="navigation" aria-label="{{ _('Breadcrumb') }}"> | ||
<div class="container"> | ||
<div class="promoted"> | ||
<div class="promoted-container container"> | ||
<div class="package-subtitle-and-action"> | ||
<div class="mini-breadcrumb"> | ||
{%- if not pkg -%} | ||
<p class="subtitle"> {{_('Home')}} / {{_(dataset_type)}} </p> | ||
{%- else -%} | ||
{%- set dataset_type_title = h.scheming_get_dataset_schema(pkg.type).get('name', pkg.type) -%} | ||
<p class="subtitle"> {{_('Home')}} / {{_(dataset_type_title)}} </p> | ||
{% endif %} | ||
</div> | ||
{%- if pkg -%} | ||
<div class="manage-button"> | ||
<div class="content_action"> | ||
{% block content_action %}{% endblock %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
{%- if not pkg -%} | ||
<h1 class="headline">{{_('New {dataset_type}').format(dataset_type=dataset_type)}}</h1> | ||
{%- else -%} | ||
<h1 class="headline">{% link_for pkg.title, named_route=pkg.type ~ '.read', id=pkg.name, title=pkg.title %}</h1> | ||
{% if pkg.private %} | ||
<span class="dataset-private badge badge-inverse"> | ||
<i class="fa fa-lock"></i> | ||
{{ _('Private') }} | ||
</span> | ||
{% endif %} | ||
{% set resource_type_labels = h.get_dataset_resource_type_groups(pkg.id) %} | ||
{% for label in resource_type_labels %} | ||
<span class="badge">{{ label }}</span> | ||
{% endfor %} | ||
<div class="description"> | ||
{%- set notes = h.render_markdown(h.get_translated(pkg, 'notes')) -%} | ||
{{ notes | truncate(430)}} | ||
{%- if notes | length > 430 -%} | ||
<a class="read-more" href="{% url_for pkg.type ~ '.read', id=pkg.name %}#dataset-description">{{_('Read More')}}</a> | ||
{%- endif -%} | ||
</div> | ||
{%- endif -%} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{%- if pkg -%} | ||
<ul class="nav nav-tabs"> | ||
{% block content_primary_nav %}{% endblock %} | ||
</ul> | ||
{%- endif -%} | ||
</div> | ||
</div> | ||
{% endblock %} |