Skip to content

Commit

Permalink
CleanUp Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
htagTsc committed Oct 28, 2021
1 parent 28eed21 commit 5b3137d
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 384 deletions.
30 changes: 0 additions & 30 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
.. You should enable this project on travis-ci.org and coveralls.io to make
these badges work. The necessary Travis and Coverage config files have been
generated for you.
.. image:: https://travis-ci.org//ckanext-custom_theme.svg?branch=master
:target: https://travis-ci.org//ckanext-custom_theme

.. image:: https://coveralls.io/repos//ckanext-custom_theme/badge.svg
:target: https://coveralls.io/r//ckanext-custom_theme

.. image:: https://pypip.in/download/ckanext-custom_theme/badge.svg
:target: https://pypi.python.org/pypi//ckanext-custom_theme/
:alt: Downloads

.. image:: https://pypip.in/version/ckanext-custom_theme/badge.svg
:target: https://pypi.python.org/pypi/ckanext-custom_theme/
:alt: Latest Version

.. image:: https://pypip.in/py_versions/ckanext-custom_theme/badge.svg
:target: https://pypi.python.org/pypi/ckanext-custom_theme/
:alt: Supported Python versions

.. image:: https://pypip.in/status/ckanext-custom_theme/badge.svg
:target: https://pypi.python.org/pypi/ckanext-custom_theme/
:alt: Development Status

.. image:: https://pypip.in/license/ckanext-custom_theme/badge.svg
:target: https://pypi.python.org/pypi/ckanext-custom_theme/
:alt: License

=============
ckanext-custom_theme
=============
Expand Down
Empty file.
149 changes: 0 additions & 149 deletions ckanext/custom_theme/i18n/ckanext-custom_theme.pot

This file was deleted.

Binary file not shown.
158 changes: 0 additions & 158 deletions ckanext/custom_theme/i18n/de/LC_MESSAGES/ckanext-custom_theme.po

This file was deleted.

10 changes: 0 additions & 10 deletions ckanext/custom_theme/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ def recent_datasets(count=None):

return datasets['results']

def cookies_accepted():
value = request.cookies.get('cookie_consent')
return value == 'true'

def cookies_asked():
value = request.cookies.get('cookie_consent')
return value is not None

class Custom_ThemePlugin(plugins.SingletonPlugin, DefaultTranslation):
plugins.implements(plugins.IConfigurer)
plugins.implements(plugins.ITemplateHelpers)
Expand All @@ -59,8 +51,6 @@ def get_helpers(self):
'custom_theme_tags_and_counts': tags_and_counts,
'custom_theme_groups': all_groups,
'custom_theme_recent_datasets': recent_datasets,
'custom_theme_cookies_check': cookies_accepted,
'custom_theme_cookies_asked': cookies_asked
}


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
2 changes: 0 additions & 2 deletions ckanext/custom_theme/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
{% block footer_content %}
<div class="row">
<div>


<a class="footer-float-right" href="{{ h.url_for(controller='ckanext.pages.controller:PagesController', action='pages_show', page='/privacy') }}">{{ _('Privacy Policy') }}</a>
<a class="footer-float-right" href="{{ h.url_for(controller='ckanext.pages.controller:PagesController', action='pages_show', page='/licenses') }}">{{ _('Licenses and Terms of Use') }}</a>
<a class="footer-float-right" href="{{ h.url_for(controller='ckanext.pages.controller:PagesController', action='pages_show', page='/impressum') }}">{{ _('Impressum') }}</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div role="main" class="hero" id="maincontent">
<div class="container">
<div class="row custom-header">
<img class="img-fluid background-img" src="/cover_picture_paderborn_cropped.jpg">
<img class="img-fluid background-img" src="/Smart-City-Hero-3.png">
<div class="col-md-12">
{% snippet 'home/snippets/search.html' %}
</div>
Expand Down
Loading

0 comments on commit 5b3137d

Please sign in to comment.