Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
8cc3a9b9
Commit
8cc3a9b9
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
ODPSH-138: add missing fields
parent
b5808ecb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/public/odsh.css
+3
-0
3 additions, 0 deletions
ckanext/odsh/public/odsh.css
ckanext/odsh/templates/snippets/package_item.html
+10
-2
10 additions, 2 deletions
ckanext/odsh/templates/snippets/package_item.html
with
13 additions
and
2 deletions
ckanext/odsh/public/odsh.css
+
3
−
0
View file @
8cc3a9b9
...
...
@@ -427,6 +427,9 @@ ul.dataset-resources {
font-size
:
12px
;
margin-bottom
:
1px
;
color
:
black
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
.toolbar
.breadcrumb
>
li
a
{
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/snippets/package_item.html
+
10
−
2
View file @
8cc3a9b9
...
...
@@ -17,13 +17,19 @@ Example:
{% set truncate_title = truncate_title or 80 %}
{% set title = package.title or package.name %}
{% set notes = h.markdown_extract(package.notes, extract_length=truncate) %}
{% set license = package.license or '-' %}
{% set timerange = '-' %}
{% set license_title =package.license_title if package.license_title else '-'%}
{% set license_name=' ('+package.access_constraints +')' if package.access_constraints else ''%}
{% set license = license_title + license_name %}
{% set start=h.render_datetime(package.temporal_start,'%d.%m.%Y') if package.temporal_start else ''%}
{% set end=h.render_datetime(package.temporal_end,'%d.%m.%Y') if package.temporal_end else ''%}
{% set timerange = start + '-' + end%}
{% set org = package.organization.title or package.organization.name or '-' %}
{% set stars = h.odsh_openness_score_dataset_html(package) %}
{% set access_count=(package.tracking_summary.total if package.tracking_summary) or '-' %}
{% set timerange_label ='Zeitraum' %}
{% set access_count_label ='Aufrufe' %}
{% set last_change = h.render_datetime(package.metadata_modified,'%d.%m.%Y') %}
{% set categories = package.groups|map(attribute='display_name')|join(', ') if package.groups else '-' %}
{% block package_item %}
<div
class=
"container-fluid odsh-dataset-item"
>
...
...
@@ -87,9 +93,11 @@ Example:
</div>
<div
class=
"dataset-info"
>
<p>
{{ _('Kategorie') }}: {{ categories}}
</p>
<p>
{{_('Lizenz')}}: {{license}}
</p>
<p>
{{_('Herausgeber')}}: {{org}}
</p>
<p>
{{timerange_label}}: {{timerange}}
</p>
<p>
{{ _('last change') }}: {{last_change }}
</p>
</div>
{% endblock %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment