Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Rosanny Sihombing
ckan theme
Commits
2e6f4307
Commit
2e6f4307
authored
2 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
Add comments
parent
76bb2c42
Pipeline
#6456
passed with stage
in 19 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
ckanext-theme_hft/ckanext/theme_hft/templates/base.html
+2
-0
ckanext-theme_hft/ckanext/theme_hft/templates/base.html
ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
+2
-1
ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html
+2
-0
...hft/ckanext/theme_hft/templates/home/snippets/search.html
ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html
+2
-0
..._hft/ckanext/theme_hft/templates/home/snippets/stats.html
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html
+2
-0
..._hft/templates/package/snippets/package_basic_fields.html
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html
+2
-0
...t/templates/package/snippets/package_metadata_fields.html
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html
+2
-0
...t/theme_hft/templates/package/snippets/resource_form.html
ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html
+2
-0
...ckanext/theme_hft/templates/snippets/activity_stream.html
ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html
+2
-0
...theme_hft/ckanext/theme_hft/templates/user/dashboard.html
with
18 additions
and
1 deletion
+18
-1
ckanext-theme_hft/ckanext/theme_hft/templates/base.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Add HFT assets (figures, footer, css, etc.) #}
{% block styles %}
{% block styles %}
{{ super() }}
{{ super() }}
<link
rel=
"stylesheet"
href=
"https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity=
"sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity=
"sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"
crossorigin=
"anonymous"
>
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
+
2
-
1
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# override footer.html #}
{# Override footer.html to put M4_LAB footer #}
{% block footer_content %}
{% block footer_content %}
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-4 attribution"
>
<div
class=
"col-md-4 attribution"
>
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html
+
2
-
0
View file @
2e6f4307
{% set placeholder = _('E.g. environment') %}
{% set placeholder = _('E.g. environment') %}
{# Remove tags #}
<div
class=
"module module-search module-narrow module-shallow box"
>
<div
class=
"module module-search module-narrow module-shallow box"
>
<form
class=
"module-content search-form"
method=
"get"
action=
"{% url_for 'dataset.search' %}"
>
<form
class=
"module-content search-form"
method=
"get"
action=
"{% url_for 'dataset.search' %}"
>
<h3
class=
"heading"
>
{{ _("Search data") }}
</h3>
<h3
class=
"heading"
>
{{ _("Search data") }}
</h3>
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Remove Organization #}
{% block stats_group %}
{% block stats_group %}
<li>
<li>
<a
href=
"{{ h.url_for('dataset.search') }}"
>
<a
href=
"{{ h.url_for('dataset.search') }}"
>
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Simplifies the form for adding datasets by removing Tags. Titel field is marked as *Pflichtfeld (mandatory) #}
{% block package_basic_fields_title %}
{% block package_basic_fields_title %}
{{ form.input('title', id='field-title', label=_('Title'), placeholder=_('eg. A descriptive title'), value=data.title, error=errors.title, classes=['control-full', 'control-large'], attrs={'data-module': 'slug-preview-target', 'class': 'form-control'}, is_required=true) }}
{{ form.input('title', id='field-title', label=_('Title'), placeholder=_('eg. A descriptive title'), value=data.title, error=errors.title, classes=['control-full', 'control-large'], attrs={'data-module': 'slug-preview-target', 'class': 'form-control'}, is_required=true) }}
{% endblock %}
{% endblock %}
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Remove Custom Fields and marks Autor, Verantwortlicher, and their emails fields as *Pflichtfeld (mandatory) #}
{% block package_metadata_author %}
{% block package_metadata_author %}
{{ form.input('author', label=_('Author'), id='field-author', placeholder=_('Joe Bloggs'), value=data.author, error=errors.author, classes=['control-medium'], is_required=true) }}
{{ form.input('author', label=_('Author'), id='field-author', placeholder=_('Joe Bloggs'), value=data.author, error=errors.author, classes=['control-medium'], is_required=true) }}
{{ form.input('author_email', label=_('Author Email'), id='field-author-email', placeholder=_('joe@example.com'), value=data.author_email, error=errors.author_email, classes=['control-medium'], is_required=true) }}
{{ form.input('author_email', label=_('Author Email'), id='field-author-email', placeholder=_('joe@example.com'), value=data.author_email, error=errors.author_email, classes=['control-medium'], is_required=true) }}
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Add a label: maximum data size #}
{% block basic_fields_url %}
{% block basic_fields_url %}
{% set is_upload = (data.url_type == 'upload') %}
{% set is_upload = (data.url_type == 'upload') %}
{{ form.image_upload(data, errors, field_url='url', field_upload='upload', field_clear='clear_upload',
{{ form.image_upload(data, errors, field_url='url', field_upload='upload', field_clear='clear_upload',
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Remove all activity records #}
{% macro actor(activity) %}
{% macro actor(activity) %}
{% endmacro %}
{% endmacro %}
...
...
This diff is collapsed.
Click to expand it.
ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html
+
2
-
0
View file @
2e6f4307
{% ckan_extends %}
{% ckan_extends %}
{# Remove activity stream tab #}
{% block page_header %}
{% block page_header %}
<header
class=
"module-content page-header hug"
>
<header
class=
"module-content page-header hug"
>
{% block content_primary_nav %}
{% block content_primary_nav %}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets