diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-16 23:51:21 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-16 23:51:21 +0530 |
commit | d20017680bf6e8dfd2e4bcd69654a545f9a8350c (patch) | |
tree | 796e228c567f34136941d68b0de100b0376a4f0e /app/templates/base.html | |
parent | 1b530ca5d1662df06b9d6d3fb5980bcfed1fda5e (diff) |
added active link for all pages to navbar
added dropdowns
removed starter files
removed sentry completely
Diffstat (limited to 'app/templates/base.html')
-rw-r--r-- | app/templates/base.html | 49 |
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> |