Commit 2d6e0660 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Rename app + add description to index

parent 493d151a
......@@ -3,6 +3,10 @@ body {
font-family: sans-serif;
}
#body {
max-width: 850px;
}
#legend {
/*position: fixed;*/
/*top: calc(50% - 100px);*/
......
......@@ -23,7 +23,8 @@ config_reader = AppConfigReader()
UPLOAD_FOLDER = config_reader.get_upload_folder()
app_title = "ALGECO - A Live GEnome COmparator"
app_title = "DGENIES - Dotplot for Genomes Interactive, E-connected and Speed"
app_title_small = "DGENIES"
# Init Flask:
app = Flask(__name__, static_url_path='/static')
......@@ -43,7 +44,7 @@ def main():
email = ""
if "email" in request.args:
email = request.args["email"]
return render_template("index.html", title=app_title, id_job=id_job, email=email)
return render_template("index.html", title=app_title, title_small=app_title_small, id_job=id_job, email=email)
# Launch analysis
......@@ -110,14 +111,13 @@ def launch_analysis():
def status(id_job):
job = JobManager(id_job)
status = job.status()
return render_template("status.html", title=app_title, status=status, id_job=id_job)
return render_template("status.html", title=app_title, title_small=app_title_small, status=status, id_job=id_job)
# Results path
@app.route("/result/<id_res>", methods=['GET'])
def result(id_res):
title = app_title
return render_template("results.html", title=title, id=id_res)
return render_template("results.html", title=app_title, title_small=app_title_small, id=id_res)
# Get graph (ajax request)
......
......@@ -19,7 +19,7 @@
<body onload="{% block onload %}{% endblock %}">
{% block body %}
<div id="main-bar-title">
<img src="{{ url_for('static', filename='images/logo.png') }}" height="40px" alt=""/><h1>{{ title }}</h1>
<img src="{{ url_for('static', filename='images/logo.png') }}" height="40px" alt=""/><h1>{{ title_small }}</h1>
</div>
{% endblock %}
</body>
......
......@@ -2,6 +2,10 @@
{% block body %}
{{ super() }}
<div id="body">
<p class="description">DGENIES &#150; for Dotplot for Genomes Interactive, E-connected and Speed &#150; is an online tool
designed to compare two genomes. It supports large genome and you can interact with the lot to improve the visualisation.</p>
<p class="description">We use minimap version 2 to align the two genomes. Then, the PAF file is parsed and plotted into
an interactive plot written with d3.js library.</p>
<form id="submit_minimap" method=post enctype=multipart/form-data action="/launch_analysis">
<h2>Launch map analysis</h2>
{% with messages = get_flashed_messages() %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment