forked from enviPath/enviPy
59 lines
3.5 KiB
HTML
59 lines
3.5 KiB
HTML
{% load static %}
|
|
{# Modern DaisyUI Navbar #}
|
|
<div class="navbar bg-neutral-50 text-neutral-950 shadow-lg x-50">
|
|
<div class="navbar-start">
|
|
<a href="{{ meta.server_url }}" class="btn btn-ghost normal-case text-xl">
|
|
<svg class="h-8 fill-base-content" viewBox="0 0 104 26" role="img">
|
|
<use href='{% static "/images/logo-name.svg" %}#ep-logo-name' />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="navbar-center hidden lg:flex">
|
|
<ul class="menu menu-horizontal px-1">
|
|
<li><a href="#" id="predictLink">Predict</a></li>
|
|
<!-- <li><a href="{{ meta.server_url }}/package" id="packageLink">Package</a></li> -->
|
|
<li><a href="{{ meta.server_url }}/browse" id="browseLink">Browse</a></li>
|
|
<li>
|
|
<!-- <details>
|
|
<summary>Browse Data</summary>
|
|
<ul class="bg-base-100 rounded-t-none p-2 w-48 z-50">
|
|
<li><a href="{{ meta.server_url }}/pathway" id="pathwayLink">Pathway</a></li>
|
|
<li><a href="{{ meta.server_url }}/rule" id="ruleLink">Rule</a></li>
|
|
<li><a href="{{ meta.server_url }}/compound" id="compoundLink">Compound</a></li>
|
|
<li><a href="{{ meta.server_url }}/reaction" id="reactionLink">Reaction</a></li>
|
|
<li><a href="{{ meta.server_url }}/model" id="relative-reasoningLink">Model</a></li>
|
|
<li><a href="{{ meta.server_url }}/scenario" id="scenarioLink">Scenario</a></li>
|
|
</ul>
|
|
</details> -->
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="navbar-end">
|
|
<ul class="menu menu-horizontal px-1">
|
|
<button type="button" class="inline-flex items-center gap-1 rounded-full bg-gray-950/2 px-2 py-1 inset-ring inset-ring-gray-950/8 dark:bg-white/5 dark:inset-ring-white/2"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="-ml-0.5 size-4 fill-gray-600 dark:fill-gray-500"><path fill-rule="evenodd" d="M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" clip-rule="evenodd"></path></svg><kbd class="hidden font-sans text-xs/4 text-gray-500 dark:text-gray-400 [.os-macos_&]:block">⌘K</kbd><kbd class="hidden font-sans text-xs/4 text-gray-500 not-[.os-macos_&]:block dark:text-gray-400">Ctrl K</kbd></button>
|
|
{% if meta.user.username == 'anonymous' %}
|
|
<li><a href="{% url 'login' %}" id="loginButton">Login</a></li>
|
|
{% else %}
|
|
<li>
|
|
<details>
|
|
<summary id="loggedInButton">{{ user.username }}</summary>
|
|
<ul class="bg-base-100 rounded-t-none p-2 w-48 z-50">
|
|
<li><a href="{{ meta.user.url }}" id="accountbutton">My Account</a></li>
|
|
<li class="divider"></li>
|
|
<li>
|
|
<form action="{% url 'logout' %}" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="logout" value="true">
|
|
<button type="submit" class="btn btn-ghost btn-sm w-full">Logout</button>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|