Rankmate / templates /base.html
sumit1901's picture
Made major changes in ui and functionality to handle the ledger
7e03cc0
Raw History Blame Contribute Delete
2.42 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Rankmate{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', path='icons/icon.ico') }}">
<link rel="shortcut icon" href="{{ url_for('static', path='icons/icon.jpg') }}" type="image/jpg">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', path='css/base.css') }}">
{% block extra_css %}{% endblock %}
</head>
<body>
<div id="mySidepanel" class="sidepanel">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
<div class="sidepanel-content">
<a href="{{ url_for('index') }}">Homepage</a>
<a href="{{ url_for('extract_get') }}">Extract</a>
<a href="{{ url_for('finalize_get') }}">Finalize</a>
<a href="{{ url_for('analyze_get') }}">Analyze</a>
<hr style="border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; margin: 20px 0;">
{% if user %}
<a href="/manage_subjects" style="color: white;">Manage Subjects</a>
<a href="{{ url_for('logout') }}" style="color: white;">Logout ({{ user.name }})</a>
{% else %}
<a href="{{ url_for('login_get') }}" style="color: white;">Faculty Login</a>
<a href="/admin/login" style="color: white;">Admin Login</a>
{% endif %}
</div>
</div>
{% block top_nav %}
<nav class="top-nav">
<button class="menu-btn" onclick="openNav()">
<span></span>
<span></span>
<span></span>
</button>
</nav>
{% endblock %}
<div class="main-content" id="main">
{% block content %}{% endblock %}
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
function openNav() {
document.getElementById("mySidepanel").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidepanel").style.width = "0";
}
</script>
{% block scripts %}{% endblock %}
</body>
</html>