Added External Links
This commit is contained in:
4
app.py
4
app.py
@@ -95,7 +95,7 @@ def index_des():
|
||||
|
||||
def render_main():
|
||||
session["main"] = request.endpoint
|
||||
wdata = db.welcomes.find_one({"id": request.endpoint})
|
||||
fpdata = db.frontpage.find_one({"id": request.endpoint})
|
||||
dsdata = db.domains.find({"cat": {"$ne": None}})
|
||||
udata = (
|
||||
db.users.find_one({"id": session["username"]}) if session["username"] else None
|
||||
@@ -109,7 +109,7 @@ def render_main():
|
||||
results[ddata["quad"]][ddata["cat"]][ddata["name"]] = ddata["id"]
|
||||
return render_template(
|
||||
"index.html",
|
||||
wdata=wdata,
|
||||
fpdata=fpdata,
|
||||
domains=results,
|
||||
quad=(request.endpoint or "ade")[-3:],
|
||||
)
|
||||
|
||||
@@ -43,13 +43,23 @@
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if fpdata["links"] %}
|
||||
<div>
|
||||
<h2>Links</h2>
|
||||
<ul>
|
||||
{% for link in fpdata["links"] %}
|
||||
<li><a href="{{ fpdata['links'][link] }}">{{ link }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="other">
|
||||
<div id="welcome">
|
||||
<h2>{{ wdata["header"] }}</h2>
|
||||
<p>{{ wdata["text"] }}</p>
|
||||
<h2>{{ fpdata["header"] }}</h2>
|
||||
<p>{{ fpdata["text"] }}</p>
|
||||
<i>For assistance, please contact the Sector Administrator at <a
|
||||
href="mailto:{{ wdata['email'] }}@icolotl.com">{{ wdata['email'] }}@icolotl.com</a>.</i>
|
||||
href="mailto:{{ fpdata['email'] }}@icolotl.com">{{ fpdata['email'] }}@icolotl.com</a>.</i>
|
||||
</div>
|
||||
<div id="login">
|
||||
<h2>Index Unified Login</h2>
|
||||
|
||||
Reference in New Issue
Block a user