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
caf2d715
Commit
caf2d715
authored
2 years ago
by
Jesper Zedlitz
Browse files
Options
Downloads
Patches
Plain Diff
_SRVC aus der Formatanzeige entfernen
parent
ee5792be
No related branches found
No related tags found
2 merge requests
!17
Stage System soll in Zukunft Master Branch erhalten
,
!13
_SRVC aus der Formatanzeige entfernen
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/templates/package/snippets/resource_item.html
+3
-2
3 additions, 2 deletions
ckanext/odsh/templates/package/snippets/resource_item.html
ckanext/odsh/templates/snippets/package_item.html
+2
-2
2 additions, 2 deletions
ckanext/odsh/templates/snippets/package_item.html
with
5 additions
and
4 deletions
ckanext/odsh/templates/package/snippets/resource_item.html
+
3
−
2
View file @
caf2d715
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
{% set rtitle=h.resource_display_name(res) if res.name else ' '%}
{% set rtitle=h.resource_display_name(res) if res.name else ' '%}
{% set resource_size = h.tpsh_get_resource_size(res) %}
{% set resource_size = h.tpsh_get_resource_size(res) %}
{% set res_format = res.format.replace('_SRVC','') %}
<li
class=
"resource-item"
data-id=
"{{ res.id }}"
>
<li
class=
"resource-item"
data-id=
"{{ res.id }}"
>
<div
class=
"resource-title-container"
>
<div
class=
"resource-title-container"
>
...
@@ -35,9 +36,9 @@
...
@@ -35,9 +36,9 @@
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
</div>
</div>
{% if res
.
format %}
{% if res
_
format %}
<a
href=
"{{ download }}"
>
<a
href=
"{{ download }}"
>
<div
class=
"dataformat-label resource-dataformat-label label"
style=
'font-size:{{150/(res
.
format|length)}}px'
>
{{res
.
format}}
</div>
<div
class=
"dataformat-label resource-dataformat-label label"
style=
'font-size:{{150/(res
_
format|length)}}px'
>
{{res
_
format}}
</div>
</a>
</a>
{% endif %}
{% endif %}
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/snippets/package_item.html
+
2
−
2
View file @
caf2d715
...
@@ -121,8 +121,8 @@ Example:
...
@@ -121,8 +121,8 @@ Example:
{% for resource in h.dict_list_reduce(package.resources, 'format') %}
{% for resource in h.dict_list_reduce(package.resources, 'format') %}
<li>
<li>
<a
href=
"{{ h.url_for(controller='package', action='read', id=package.name) }}"
class=
"label dataformat-label"
<a
href=
"{{ h.url_for(controller='package', action='read', id=package.name) }}"
class=
"label dataformat-label"
data-format=
"{{ resource.lower() }}"
>
{{
data-format=
"{{ resource.lower()
.replace('_srvc','')
}}"
>
{{
resource }}
</a>
resource
.replace('_srvc','')
}}
</a>
</li>
</li>
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
...
...
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