2024-06-05 11:33:02 +03:00

112 lines
4.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}Бортжурнал СРГ{% endblock %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<META NAME="author" CONTENT="Roman Krivonos, email: krivonos [at] iki.rssi.ru">
<META NAME="description" CONTENT="High Energy Astrophysics Department at IKI RAN (Moscow, Russia)">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<script>
function inArray(needle, haystack) {
var length = haystack.length;
for(var i = 0; i < length; i++) {
if(haystack[i] == needle) return true;
}
return false;
}
function days($d) {
$y = $d % 10;
$x = $d / 10 % 10;
if ($x && $x == 1) return "дней";
if ($y == 1) return "день";
if (inArray($y,"2,3,4")) return "дня";
return "дней";
}
</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/logbook"><i class="fa fa-rocket"></i> Бортжурнал СРГ</a>
</div>
<ul class="nav navbar-nav">
<li><a href="/monthplan"><span class="glyphicon glyphicon-list"></span> Месячный план</a></li>
{% if user.is_authenticated %}
<li><a href="https://docs.google.com/spreadsheets/d/1E994cGtfYUC8GqUPH_rGB2GgPfAE-VZFiHkUYx46tUc/edit?usp=sharing"><span class="glyphicon glyphicon-calendar"></span> Календарь работ</a></li>
<!--li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Документы<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/uploads/docs/current.pdf">Programm (PDF)</a></li>
<li><a href="/logbook/uploads">Загрузки</a></li>
<li><a href="/uploads/logbook/table.html">Загрузки (safe mode)</a></li>
</ul>
</li-->
{% if categories %}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Документы <span class="caret"></span></a>
<ul class="dropdown-menu">
{% for category in categories %}
<li><a href="{{ category.get_absolute_url }}">{{ category.name }}</a></li>
{% endfor %}
<li><a href="/logbook/uploads"><b>Все</b></a></li>
</ul>
</li>
{% endif %}
<li><a href="/logbook/info"><span class="glyphicon glyphicon-info-sign"></span> Информация</a></li>
{% endif %}
</ul>
{% if user.is_authenticated %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/logout">{{ user.email }} <span class="glyphicon glyphicon-log-out"></span> Выйти</a>
{% else %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/login"><span class="glyphicon glyphicon-log-in"></span> Войти</a>
{% endif %}
</div>
</nav>
<div class="container">
{% block content %}Base content{% endblock %}</div>
</div>
<footer class="bs-footer" role="contentinfo">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<div class="alert alert-light">
<p class="card-text">
<hr>
Отдел астрофизики высоких энергий ИКИ РАН © 2019 <a href="http://hea.cosmos.ru" target="_blank">Вебсайт отдела</a> |
<a href="http://www.iki.rssi.ru" target="_blank">ИКИ РАН</a> |
<a href="http://srg.iki.rssi.ru">Спектр-РГ</a> |
Разработка: Роман Кривонос, email: krivonos/@/cosmos.ru
</p>
<!--a href="#" class="btn btn-primary">Go somewhere</a-->
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>