aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/base.html')
-rw-r--r--app/templates/base.html49
1 files changed, 33 insertions, 16 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index 2e79a61..f92d59d 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -23,30 +23,47 @@
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
- <li class="nav-item active">
+ <li class="{{ 'nav-item active' if active_page == 'home' else 'nav-item' }}">
<a class="nav-link" href="{{ url_for('home') }}">Home <span class="sr-only">(current)</span></a>
</li>
- <li class="nav-item">
+ <li class="{{ 'nav-item active' if active_page == 'about' else 'nav-item' }}">
<a class="nav-link" href="{{ url_for('about') }}">About</a>
</li>
- <!--
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('basic_form') }}">Basic Form</a>
+ <li class="{{ 'nav-item dropdown active' if active_page == 'dock' else 'nav-item dropdown' }}">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Dock and Report
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <a class="dropdown-item" href="{{ url_for('dock_upload') }}">Automatic</a>
+ <a class="dropdown-item" href="{{ url_for('dock_upload_single') }}">Manual</a>
+ </div>
</li>
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('wtform') }}">WTForms</a>
- </li> -->
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('dock_upload') }}">Dock and Report</a>
- </li>
- <li class="nav-item">
+ <li class="{{ 'nav-item active' if active_page == 'generate' else 'nav-item' }}">
<a class="nav-link" href="{{ url_for('generate') }}">Generate</a>
</li>
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('status') }}">Job Status</a>
+ <li class="{{ 'nav-item dropdown active' if active_page == 'search' else 'nav-item dropdown' }}">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Research
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <a class="dropdown-item" href="{{url_for('pubmed')}}">PubMed</a>
+ <a class="dropdown-item" href="{{url_for('pubchem')}}">PubChem</a>
+ <div class="dropdown-divider"></div>
+ <a class="dropdown-item disabled" href="#">Qrious</a>
+ </div>
</li>
- <li class="nav-item">
- <a class="nav-link" href="{{url_for('pubmed')}}">Search</a>
+ <li class="{{ 'nav-item dropdown active' if active_page == 'tool' else 'nav-item dropdown' }}">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Other Tools
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <a class="dropdown-item" href="{{url_for('generate_pdbqts')}}">Generate PDBQTs</a>
+ <a class="dropdown-item" href="{{url_for('editor')}}">Molecule Editor</a>
+ <a class="dropdown-item" href="{{url_for('visualise')}}">Molecule Visualiser</a>
+ </div>
+ </li>
+ <li class="{{ 'nav-item active' if active_page == 'job_status' else 'nav-item' }}">
+ <a class="nav-link" href="{{ url_for('status') }}">Job Status</a>
</li>
</ul>
</div>