Skip to content

Commit

Permalink
Merge pull request #60 from okfn/template-comments
Browse files Browse the repository at this point in the history
Replace copyright HTML comments with Jinja2 ones
  • Loading branch information
duskobogdanovski authored Oct 11, 2021
2 parents 4c70955 + 8f9fc5f commit 3ce4cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ckanext/saml2auth/templates/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
{#
Copyright (c) 2020 Keitaro AB

This program is free software: you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
#}

{% ckan_extends %}
{% block header_account_notlogged %}
Expand All @@ -27,4 +27,4 @@
<li>{% link_for _('Log in'), named_route='saml2auth.saml2login' %}</li>
{% endif %}

{% endblock %}
{% endblock %}
6 changes: 3 additions & 3 deletions ckanext/saml2auth/templates/user/snippets/login_form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
{#
Copyright (c) 2020 Keitaro AB

This program is free software: you can redistribute it and/or modify
Expand All @@ -13,10 +13,10 @@

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
#}

{% ckan_extends %}
{% block login_button %}
<button class="btn btn-primary" type="submit">{{ _('Login') }}</button>
<a class="btn btn-default" href="{{ h.url_for('saml2auth.saml2login') }}">{{ _('SSO') }}</a>
{% endblock %}
{% endblock %}

0 comments on commit 3ce4cf4

Please sign in to comment.