templates_nopaste_modulesdir = $(templates_nopastedir)/modules
-templates_people_DATA = \
- src/templates/people/index.html
-
-templates_peopledir = $(templatesdir)/people
-
templates_people_messages_DATA = \
src/templates/people/messages/new-account.txt
+++ /dev/null
-{% extends "../base.html" %}
-
-{% block title %}{{ _("Home") }}{% end block %}
-
-{% block content %}
- <section>
- <div class="row mb-5">
- <div class="col col-lg-6">
- <h1>{{ _("Hello, %s!") % current_user.first_name }}</h1>
-
- <p>
- {{ _("Welcome to the IPFire People Portal where you can manage your account and get in touch with others") }}
- </p>
- </div>
- </div>
-
- {% if not current_user.consents_to_promotional_emails %}
- <div class="card border-primary">
- <div class="card-body">
- <div class="row">
- <div class="col-2 d-flex align-items-center justify-content-center">
- <i class="fas fa-envelope-open-text fa-3x text-primary"></i>
- </div>
-
- <div class="col-10 mb-3">
- <h6 class="card-title">{{ _("You are currently not subscribed to important updates from the IPFire Project") }}</h6>
-
- <p class="card-text">
- {{ _("Subscribe to receive notifications about important security updates of IPFire and other news from inside the project") }}
- </p>
- </div>
- </div>
-
- <form action="/subscribe" method="POST">
- {% raw xsrf_form_html() %}
-
- <div class="d-grid">
- <button type="submit" class="btn btn-success">
- {{ _("Subscribe Now") }}
- </button>
- </div>
- </form>
- </div>
- </div>
- {% end %}
- </section>
-{% end block %}
from . import iuse
from . import location
from . import nopaste
-from . import people
from . import ui_modules
from . import users
from . import voip
# people.ipfire.org
self.add_handlers(r"people\.([a-z]+\.dev\.)?ipfire\.org", [
- (r"/", people.IndexHandler),
- (r"/register", auth.RegisterHandler),
-
- # Serve any static files
- (r"/static/(.*)", tornado.web.StaticFileHandler, { "path" : self.settings.get("static_path") }),
- ] + authentication_handlers)
+ (r"/", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/users" }),
+ (r"/register", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/register" }),
+ (r"/users", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/users" }),
+ (r"/users/([a-z_][a-z0-9_-]{0,31})", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/users/{0}" }),
+ (r"/users/([a-z_][a-z0-9_-]{0,31})\.jpg", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/users/{0}.jpg" }),
+ ])
# wiki.ipfire.org
self.add_handlers(r"wiki\.([a-z]+\.dev\.)?ipfire\.org", [
+++ /dev/null
-#!/usr/bin/python
-
-import tornado.web
-
-from . import base
-from . import ui_modules
-
-class IndexHandler(base.BaseHandler):
- @tornado.web.authenticated
- def get(self):
- self.render("people/index.html")