From c3a48b5be5cb8ca51e707e0cce470130d4390e3f Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Mon, 8 Oct 2018 11:50:30 +0200 Subject: [PATCH] Add 'contact' view --- ivatar/urls.py | 4 +++- templates/base.html | 2 +- templates/contact.html | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 templates/contact.html diff --git a/ivatar/urls.py b/ivatar/urls.py index ed6deb8..828d0c4 100644 --- a/ivatar/urls.py +++ b/ivatar/urls.py @@ -5,7 +5,7 @@ from django.contrib import admin from django.urls import path, include from django.conf.urls import url from django.conf.urls.static import static -from django.views.generic import TemplateView +from django.views.generic import TemplateView, RedirectView from ivatar import settings from . views import AvatarImageView @@ -20,6 +20,8 @@ urlpatterns = [ # pylint: disable=invalid-name url( r'avatar/(?P\w{32})', AvatarImageView.as_view(), name='avatar_view'), + url('contact/', TemplateView.as_view(template_name='contact.html'), name='contact'), + path('talk_to_us/', RedirectView.as_view(url='/contact'), name='talk_to_us'), url('', TemplateView.as_view(template_name='home.html')), ] diff --git a/templates/base.html b/templates/base.html index 69426e0..0ff3bac 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,7 +38,7 @@ {% endif %}
  • - + {% trans 'Contact' %}
  • diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 0000000..4ff25ea --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,39 @@ +{% extends 'base.html' %} +{% load i18n %} +{% load static %} +{% load bootstrap4 %} + +{% block title %}{% trans 'federated avatar hosting service' %}{% endblock %} + +{% block content %} + +There are a few ways to get in touch with the ivatar/libravatar developers: +

    IRC

    + +If you have an IRC client already, you can join #libravatar on chat.freenode.net. + +Otherwise, you can use this simple web interface. + +Please keep in mind that you may live in a different timezone than most of the developers. So if you do not get a response, it's not because we're ignoring you, it's probably because we're sleeping :) + +

    Bug tracker

    + +If you have a question about a particular bug, or some feedback on it, the best thing to do is to comment on that bug itself. + +TODO TODO TODO + +

    Mailing list

    + +If you've got a proposal to discuss or prefer to write to us, you can join our developers mailing list. + +

    Identica / Twitter

    + +You can also put short notices to our attention on Identica or Twitter. + +

    Email

    + +Finally, if you need to email us: dev@libravatar.org + +
    + +{% endblock %}