diff options
author | gunturkunhakan | 2021-05-18 22:39:49 -0500 |
---|---|---|
committer | gunturkunhakan | 2021-05-18 22:39:49 -0500 |
commit | 6235fb58955e2bc193d6ce40a4d74b33ab47dfce (patch) | |
tree | 557418e4f22e608a6c45ee220c02d47ca49510e0 /templates/layout.html | |
parent | a637889f13c2151303998e411dc81f3196a974f6 (diff) | |
download | genecup-6235fb58955e2bc193d6ce40a4d74b33ab47dfce.tar.gz |
Welcome to GeneCup
Diffstat (limited to 'templates/layout.html')
-rw-r--r-- | templates/layout.html | 77 |
1 files changed, 43 insertions, 34 deletions
diff --git a/templates/layout.html b/templates/layout.html index 6bbfc95..00674af 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -10,13 +10,18 @@ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"> - <title>RatsPub: Relationship with Addiction Through Searches of PubMed</title> + <title>GeneCup: Mining Gene Relationships from Pubmed using Custom Ontology </title> </head> <body> +<!-- Navigation bar --> <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> - <a class="navbar-brand" href="/">RatsPub</a> + <div class="col-1"> + <div class='img'><img src="/static/white_logo.png" class="img-fluid", style="width:60%"></div> + </div> + + <a class="navbar-brand" href="/">GeneCup</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> @@ -27,6 +32,9 @@ <a class="nav-link" href="/">Search <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> + <a class="nav-link" href="/ontology">Ontologies</a> + </li> + <li class="nav-item"> <a class="nav-link" href="/allTopGenes">Addiction Genes</a> </li> <li class="nav-item"> @@ -37,48 +45,49 @@ {% if session['email'] == email %} <ul class="navbar-nav ml-auto"> <li class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - Login<span class="sr-only">(current)</span> - </a> - <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> - <form class="p-2" action="/login" method="POST"> - <div class="form-group"> - <input type="email" class="form-control" name="email" id="email" aria-describedby="emailHelp" placeholder="Email address", value="{{email if email}}"> - </div> - <div class="form-group"> - <input type="password" class="form-control" name="password" id="password" placeholder="Password"> - <div class="dropdown-divider"></div> - <button type="submit" class="btn btn-primary btn-block">Sign in</button> - </div> - </form> - </div> + <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + Login<span class="sr-only">(current)</span> + </a> + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> + <form class="p-2" action="/login" method="POST"> + <div class="form-group"> + <input type="email" class="form-control" name="email" id="email" aria-describedby="emailHelp" placeholder="Email address", value="{{email if email}}"> + </div> + <div class="form-group"> + <input type="password" class="form-control" name="password" id="password" placeholder="Password"> + <div class="dropdown-divider"></div> + <button type="submit" class="btn btn-primary btn-block">Sign in</button> + </div> + </form> + </div> </li> <a class="nav-link" href="/signup">Sign Up</a> </ul> {%else%} - <ul class="navbar-nav ml-auto"> - <li class="nav-item active"> - {%if session['name'] != "" %} - <a class="nav-link" href="/userarchive">{{session['name']}}'s search history</a> <span class="sr-only">(current)</span></a> - </li> - {%endif%} - <li class="nav-item"> - <a class="nav-link active" href="/logout">Logout</a> - </li> - </ul> + <ul class="navbar-nav ml-auto"> + <li class="nav-item active"> + {%if session['name'] != "" %} + <a class="nav-link" href="/userarchive">{{session['name']}}'s search history</a> <span class="sr-only">(current)</span></a> + </li> + {%endif%} + <li class="nav-item"> + <a class="nav-link active" href="/logout">Logout</a> + </li> + </ul> {%endif%} </div> </nav> +<!-- Warning messages --> <div align="right"> {% with messages = get_flashed_messages()%} - {% if messages %} - <ul class=flashes> - {% for message in messages %} - <div class="loginout">{{ message }}</div> - {% endfor %} - </ul> - {% endif %} + {% if messages %} + <ul class=flashes> + {% for message in messages %} + <div class="inval">{{ message }}</div> + {% endfor %} + </ul> + {% endif %} {% endwith %} </div> <br> |