--- /dev/null
+{% extends "base-1.html" %}
+
+{% block title %}{{ _("Profile not found") }}}{% end block %}
+
+{% block content %}
+ <h3>404 - {{ _("Profile not found") }}</h3>
+ <img class="floatTL" src="{{ static_url("images/error/404.png") }}"
+ alt="{{ _("Error") }}" />
+ <p>
+ {% if lang == "de" %}
+ Es wurden keine Daten für das Profil <em>{{ profile_id }}</em>
+ gefunden.
+ {% else %}
+ There was no profile data found for profile
+ <em>{{ profile_id }}</em>.
+ {% end %}
+ </p>
+ <p>
+ {% if lang == "de" %}
+ Der Eigentümer dieses Profils hat möglicherweise der Veröffentlichung
+ der Daten nicht zugestimmt oder diese abgeschaltet.
+ {% else %}
+ Apparently, the profile owner has not submitted any data or disabled
+ it recently.
+ {% end %}
+ </p>
+ <p>
+ {% if lang == "de" %}
+ Falls dieses Profile Ihr eigenes ist, so können Sie die Veröffentlichung
+ im Web-Interface
+ <a href="http://wiki.ipfire.org/de/fireinfo/my_profile" target="_blank">einschalten</a>.
+ {% else %}
+ If this is your own profile, you can
+ <a href="http://wiki.ipfire.org/en/fireinfo/my_profile" target="_blank">enable</a>
+ the submission on the web user interface.
+ {% end %}
+ </p>
+{% end block %}
"Mirror servers nearby","Mirror-Server in der Nähe"
"Worldwide mirror servers","Weltweite Mirror-Server"
"Preferred for","Bevorzugt für"
+"Profile not found","Profil nicht gefunden"
class StasyIndexHandler(StasyBaseHandler):
+ def _profile_not_found(self, profile_id):
+ self.set_status(404)
+ self.render("stasy-profile-notfound.html", profile_id=profile_id)
+
def get(self):
self.render("stasy-index.html")
raise tornado.web.HTTPError(400, "No profile ID was given.")
if not self.stasy.profile_exists(profile_id):
- raise tornado.web.HTTPError(404, "Profile does not exist.")
+ self._profile_not_found(profile_id)
+ return
self.redirect("/profile/%s" % profile_id)
-class StasyProfileDetailHandler(StasyBaseHandler):
+class StasyProfileDetailHandler(StasyIndexHandler):
def get(self, profile_id):
profile = self.stasy.get_profile(profile_id)
if not profile:
- raise tornado.web.HTTPError(404, "Profile not found: %s" % profile_id)
+ self._profile_not_found(profile_id)
+ return
self.render("stasy-profile-detail.html", profile=profile)