aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Chen2020-04-22 09:23:53 -0500
committerHao Chen2020-04-22 09:23:53 -0500
commit35179dec9aa1926102ad2ddbbd5b8ad2882be92e (patch)
treeb426a0facf891470f3d78cf6ef948d05a05c6688
parent0bbc6715cd1273d2ba4e7daa7262a4cf84790e45 (diff)
downloadgenecup-35179dec9aa1926102ad2ddbbd5b8ad2882be92e.tar.gz
more ui tweaks
-rwxr-xr-xserver.py8
-rw-r--r--templates/signin.html2
-rw-r--r--templates/signup.html5
3 files changed, 8 insertions, 7 deletions
diff --git a/server.py b/server.py
index 1ac44f7..254fdcb 100755
--- a/server.py
+++ b/server.py
@@ -447,7 +447,7 @@ def tableview():
gene_name=gene_name.replace("'","")
gene_name = gene_name+added
num_gene = gene_name.count(',')+1
- message3="<b> Actions: </b><li> <font color=\"red\">Click on the abstract count to read sentences linking the keyword and the gene.</font> <li> Click on a gene to search its relations with top 200 addiction genes. <li> Click on a keyword to see the terms included in the search. <li>View the results in <a href='cytoscape'><b> a graph.</b></a>"
+ message3="<b> Actions: </b><li> <font color=\"#E74C3C\">Click on the abstract count to read sentences linking the keyword and the gene</font> <li> Click on a gene to search its relations with top 200 addiction genes. <li> Click on a keyword to see the terms included in the search. <li>View the results in <a href='cytoscape'><b> a graph.</b></a><li>All results will appear in a new Browser window (or tab)"
return render_template('tableview.html', nodata_temp=nodata_temp, num_gene=num_gene,session_path = session['path'], jedges=jedges, jnodes=jnodes,gene_name=gene_name, message3=message3)
@app.route("/tableview0")
@@ -575,12 +575,12 @@ def date():
for i in range(0,num_gene):
gene_list.append(gene_name1.split(',')[i])
session['query'] = gene_list
- message3="<b> Actions: </b><li><font color=\"red\">Click on the keywords to see the indicated number of abstracts </font><li> Click on a gene to search its relations with top 200 addiction genes<li>Click on a keyword to see the terms included in the search<li>Hover your pointer over a node to hide other links <li>Nodes can be moved around for better visibility, reload the page will restore the original layout<li> View the results in <a href='cytoscape'><b>a graph.</b></a>"
+ message3="<b> Actions: </b><li><font color=\"#E74C3C\">Click on the keywords to see the indicated number of abstracts </font><li> Click on a gene to search its relations with top 200 addiction genes<li>Click on a keyword to see the terms included in the search<li>Hover your pointer over a node to hide other links <li>Move nodes around to adjust visibility, reload the page to restore the default layout<li> View the results in <a href='cytoscape'><b>a graph.</b></a>"
return render_template('tableview.html', title='',nodata_temp=nodata_temp, date=select_date, num_gene=num_gene,session_path = session['path'], jedges=jedges, jnodes=jnodes,gene_name=gene_name, message3=message3)
@app.route('/cytoscape')
def cytoscape():
- message2="<b> Notes: </b><li><font color=\"red\">Click on a line to see the indicated number of abstracts </font> <li> Click on a gene to search its relations with top 200 addiction genes<li>Click on a keyword to see the terms included in the search<li>Hover your pointer over a node to hide other links <li>Nodes can be moved around for better visibility, reload the page will restore the original layout<li>View the results in <a href='tableview'><b>a table. </b></a>"
+ message2="<b> Actions: </b><li><font color=\"#E74C3C\">Click on a line to see the indicated number of abstracts </font> <li> Click on a gene to search its relations with top 200 addiction genes<li>Click on a keyword to see the terms included in the search<li>Hover your pointer over a node to hide other links <li>Move nodes around to adjust visibility, reload the page to restore the default layout<li>View the results in <a href='tableview'><b>a table. </b></a> <li>All results will appear in a new Browser window (or tab)"
with open(session['path']+"_cy","r") as f:
elements=f.read()
with open(session['path']+"_0link","r") as z:
@@ -756,4 +756,4 @@ def top150genes():
if __name__ == '__main__':
db.create_all()
- app.run(debug=True, port=4200)
+ app.run(debug=True, port=4201)
diff --git a/templates/signin.html b/templates/signin.html
index 99c0d75..f315d71 100644
--- a/templates/signin.html
+++ b/templates/signin.html
@@ -23,7 +23,7 @@
<button type="submit" class="btn btn-primary btn-block">Sign in</button>
</div>
</form>
- Please make sure you backup your password. To ensure security, your actual password is not saved in our database. Thus we have limited ability to reset your password. If you need to recovery your account, please <a href = "mailto: hakan@uthsc.edu">contact us</a>. We'll need the email address you used to create the account.
+ To ensure security, your actual password is not saved in our database. Thus we have limited ability to reset your password. If you do need to recovery your account, please <a href = "mailto: hakan@uthsc.edu">contact us</a>. We'll need the email address you used to create the account.
</td>
</tr>
</table>
diff --git a/templates/signup.html b/templates/signup.html
index b3cb061..795b620 100644
--- a/templates/signup.html
+++ b/templates/signup.html
@@ -26,9 +26,10 @@
<button type="submit" class="btn btn-primary btn-block">Sign Up</button>
</div>
</form>
- If you forgot your password, you can <a href = "mailto: hakan@uthsc.edu">send email</a> us to get a new one. Please use your e-mail in the system. You can send to hakan@uthsc.edu
+ <font color="#E74C3C"><strong>Please make sure you backup your password.</strong></font>To ensure security, your actual password is not saved in our database. Thus we have limited ability to reset your password. If you need to recovery your account, please <a href = "mailto: hakan@uthsc.edu">contact us</a>. We'll need the email address you used to create the account.
+ </td>
</td>
</tr>
</table>
-{% endblock %} \ No newline at end of file
+{% endblock %}