# -*- coding: utf-8 -*-

# This file is part of wger Workout Manager.
#
# wger Workout Manager is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# wger Workout Manager is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License

# Django
from django.conf.urls import url
from django.views.generic import (
    RedirectView,
    TemplateView
)

# wger
from wger.software import views


urlpatterns = [

    url(r'^issues$',
        TemplateView.as_view(template_name="issues.html"),
        name='issues'),
    url(r'^terms-of-service$',
        TemplateView.as_view(template_name="tos.html"),
        name='tos'),

    url(r'^features$',
        views.features,
        name='features'),

    url(r'^license$',
        TemplateView.as_view(template_name="license.html"),
        name='license'),

    url(r'^code$',
        RedirectView.as_view(permanent=True, url='https://github.com/wger-project/wger'),
        name='code'),

    url(r'^contribute$',
        TemplateView.as_view(template_name="contribute.html"),
        name='contribute'),

    url(r'^api$',
        TemplateView.as_view(template_name="api.html"),
        name='api'),
]
