# !/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK

from ckan.plugins import toolkit
from flask import Blueprint

blueprint = Blueprint(name='legal', import_name=__name__)


@blueprint.route('/privacy')
def privacy():
    '''Redirect to the museum's privacy notice page.'''
    return toolkit.redirect_to('http://www.nhm.ac.uk/about-us/privacy-notice.html')


@blueprint.route('/terms-conditions')
def terms():
    '''Render the terms and conditions page.'''
    return toolkit.render('legal/terms.html', {
        'title': 'Terms and conditions'
    })

# !/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK

from ckan.plugins import toolkit
from flask import Blueprint

blueprint = Blueprint(name='legal', import_name=__name__)


@blueprint.route('/privacy')
def privacy():
    '''Redirect to the museum's privacy notice page.'''
    return toolkit.redirect_to('http://www.nhm.ac.uk/about-us/privacy-notice.html')


@blueprint.route('/terms-conditions')
def terms():
    '''Render the terms and conditions page.'''
    return toolkit.render('legal/terms.html', {
        'title': 'Terms and conditions'
    })

# !/usr/bin/env python # encoding: utf-8 # # This file is part of ckanext-nhm # Created by the Natural History Museum in London, UK Redirect to the museum's privacy notice page. Render the terms and conditions page.