Skip to content

Commit

Permalink
Add in Soteria Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 3, 2024
1 parent 6f96551 commit 0514bd4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions registry/templates/user/assistant.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "user/layout.html" %}
{% from "macros/layout/title.html" import title %}
{% block title %}SOTERIA: Assistant{% endblock %}
{% block page_class %}subpage{% endblock %}
{% block body_class %}container{% endblock %}
{% block nested_body %}
<iframe src="https://chatbot.soteria.osgconnect.net/" height="710" width="100%"></iframe>
{% endblock %}
3 changes: 3 additions & 0 deletions registry/templates/user/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ <h3>&nbsp</h3>
{% if is_researcher %}
{{ nav_item('/robots/create', "Create Robot") }}
{% endif %}
{% if is_researcher %}
{{ nav_item('/assistant', "Soteria Assistant") }}
{% endif %}
{% if is_admin %}
<li id="adminSidebarItem" class="nav-item accordion mb-1">
<div class="accordion-item border-0">
Expand Down
5 changes: 5 additions & 0 deletions registry/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ def create_starter_project() -> flask.Response:

return flask.make_response(html)

@bp.route("/assistant", methods=["GET"])
@registration_required
def get_chatbot() -> flask.Response:
return flask.make_response(flask.render_template("/user/assistant.html"))


@bp.route("/robots/create", methods=["GET", "POST"])
@researcher_required
Expand Down

0 comments on commit 0514bd4

Please sign in to comment.