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