Merge pull request #66 from jelle619/master

Titan now displays an error when JavaScript isn't enabled
This commit is contained in:
Jeremy "EndenDragon" Zhang 2018-01-04 15:37:57 -08:00 committed by GitHub
commit 6c4b850669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 1 deletions

View File

@ -87,3 +87,7 @@ def signin_complete():
@embed.route("/login_discord") @embed.route("/login_discord")
def login_discord(): def login_discord():
return redirect(url_for("user.login_authenticated", redirect=url_for("embed.signin_complete", _external=True))) return redirect(url_for("user.login_authenticated", redirect=url_for("embed.signin_complete", _external=True)))
@embed.route("/noscript")
def noscript():
return render_template("noscript.html.j2")

View File

@ -9,6 +9,11 @@
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/embedstyle.css') }}"> <link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/embedstyle.css') }}">
<link id="css-theme" type="text/css" rel="stylesheet" href=""> <link id="css-theme" type="text/css" rel="stylesheet" href="">
<!--Check whether JavaScript is enabled, otherwise redirect to error page-->
<noscript>
<meta http-equiv="refresh" content="0; URL={{ url_for("embed.noscript") }}">
</noscript>
<!--Let browser know website is optimized for mobile--> <!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

File diff suppressed because one or more lines are too long