Skip to content

Commit

Permalink
Fix dataset page & favicon modifications (#7)
Browse files Browse the repository at this point in the history
* Fix dataset page & favicon modifications

* Update ckanext/biskit/templates/package/base_form_page.html

Co-authored-by: Abdul-Hakeem Shaibu <[email protected]>

Co-authored-by: Abdul-Hakeem Shaibu <[email protected]>
  • Loading branch information
panveel and hkmshb authored Nov 10, 2020
1 parent 2aa9c28 commit db70c11
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
Binary file added ckanext/biskit/public/img/ckan.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions ckanext/biskit/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
{% resource 'biskit/styles/biskit.css' %}
{% ckan_extends %}

{% block links -%}
<link rel="shortcut icon" href="/img/ckan.ico" />
{% endblock -%}
4 changes: 2 additions & 2 deletions ckanext/biskit/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
</div>
<div class="footer-partner">
<h3 class="footer-title">Technical Patners</h3>
<h3 class="footer-title">Technical Partners</h3>
<img src="/img/eha.png" class="global-logo" alt="eHA logo">
</div>
</div>
Expand All @@ -45,5 +45,5 @@ <h3 class="footer-title">Technical Patners</h3>
<a href="#" class="fa fa-social fa-pinterest"></a>
</div> -->
</div>
<!-- {% block footer_debug %} {% if g.debug %} {% include 'snippets/debug.html' %} {% endif %} {% endblock %} -->
{% block footer_debug %} {% if g.debug %} {% include 'snippets/debug.html' %} {% endif %} {% endblock %}
</footer>
2 changes: 1 addition & 1 deletion ckanext/biskit/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{% block header_account_notlogged %}
<li>{% link_for _('Log in'), named_route='user.login' %}</li>
{% if h.check_access('user_create') %}
<li>{% link_for _('Register'), named_route='user.register', class_='sub' %}</li>
<!-- <li>{% link_for _('Register'), named_route='user.register', class_='sub' %}</li> -->
{% endif %} {% endblock %}
</ul>
</nav>
Expand Down
24 changes: 24 additions & 0 deletions ckanext/biskit/templates/package/base_form_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends "package/edit_base.html" %}


{% block secondary_content %}
{% block info_module %}
<section class="module module-narrow module-shallow">
<h2 class="module-heading"><i class="fa fa-info-circle"></i> {{ _('What are datasets?') }}</h2>
<div class="module-content">
<p>
{% trans %}
A Dataset is a collection of data resources (such as files),
together with a description and other information, at a fixed URL.
Datasets are what users see when searching for data.
{% endtrans %}
</p>
</div>
</section>
{% endblock %}

{% block resources_module %}
{# TODO: Pass in a list of previously created resources and the current package dict #}
{% snippet "package/snippets/resources.html", pkg={}, action='new_resource' %}
{% endblock %}
{% endblock %}

0 comments on commit db70c11

Please sign in to comment.