You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
4.8 KiB
74 lines
4.8 KiB
<% include util %> |
|
<!DOCTYPE html> |
|
<html lang="zh-CN"> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta content="IE=edge" http-equiv="X-UA-Compatible"> |
|
<meta name="viewport" content="width=1200"> |
|
<title><%= title %> - <%= syzoj.config.title %></title> |
|
<link href="https://cdnjs.loli.net/ajax/libs/semantic-ui/2.3.3/semantic.min.css" rel="stylesheet"> |
|
<link href="/tomorrow.css" rel="stylesheet"> |
|
<link href="/mathjax.css" rel="stylesheet"> |
|
<link href="https://cdnjs.loli.net/ajax/libs/KaTeX/0.10.0-rc.1/katex.min.css" rel="stylesheet"> |
|
<link href="https://cdnjs.loli.net/ajax/libs/morris.js/0.5.1/morris.css" rel="stylesheet"> |
|
<link href="/style.css?20181023" rel="stylesheet"> |
|
<link href="https://fonts.loli.net/css?family=Fira+Mono" rel="stylesheet"> |
|
<link href="https://fonts.loli.net/css?family=Lato:400,700,400italic,700italic&subset=latin" rel="stylesheet"> |
|
<link href="https://fonts.loli.net/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=latin-ext" rel="stylesheet"> |
|
<link href="https://fonts.loli.net/css?family=Raleway:300" rel="stylesheet"> |
|
<script src="https://cdnjs.loli.net/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
|
<% if (syzoj.config.google_analytics && syzoj.config.google_analytics !== 'UA-XXXXXXXX-X') { %> |
|
<script> |
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
|
|
|
ga('create', '<%= syzoj.config.google_analytics %>', 'auto'); |
|
ga('send', 'pageview'); |
|
|
|
</script> |
|
<% } %> |
|
</head> |
|
<body> |
|
<div class="ui fixed borderless menu" style="position: fixed; "> |
|
<div class="ui container"> |
|
<a class="header item" href="/"><span style="font-family: Raleway; font-size: 1.5em; font-weight: 300; "><%= syzoj.config.title %></span></a> |
|
<a class="item<% if (active === '') { %> active<% } %>" href="/"><i class="home icon"></i> 首页</a> |
|
<a class="item<% if (active.startsWith('problem')) { %> active<% } %>" href="/problems"><i class="list icon"></i> 题库</a> |
|
<a class="item<% if (active.startsWith('contest')) { %> active<% } %>" href="/contests"><i class="calendar icon"></i> 比赛</a> |
|
<a class="item<% if (active.startsWith('submission')) { %> active<% } %>" href="/submissions"><i class="tasks icon"></i> 评测</a> |
|
<a class="item<% if (active.startsWith('ranklist')) { %> active<% } %>" href="/ranklist"><i class="signal icon"></i> 排名</a> |
|
<a class="item<% if (active.startsWith('discussion') || active.startsWith('article')) { %> active<% } %>" href="/discussion/global"><i class="comments icon"></i> 讨论</a> |
|
<a class="item<% if (active.startsWith('help')) { %> active<% } %>" href="/help"><i class="help circle icon"></i> 帮助</a> |
|
<% if (typeof contest !== 'undefined' && contest && contest.id) { %> |
|
<a id="back_to_contest" class="item" href="<%= syzoj.utils.makeUrl(['contest', contest.id]) %>"><i class="arrow left icon"></i> 返回比赛</a> |
|
<% } %> |
|
<div class="right menu"> |
|
<% if (user) { %> |
|
<a href="<%= syzoj.utils.makeUrl(['user', user.id]) %>" style="color: inherit; "> |
|
<div class="ui simple dropdown item"> |
|
<%= user.username %><% if (user.nameplate) { %><%- user.nameplate %><% } %> <i class="dropdown icon"></i> |
|
<div class="menu"> |
|
<a class="item" href="<%= syzoj.utils.makeUrl(['user', user.id, 'edit']) %>"><i class="edit icon"></i>修改资料</a> |
|
<% if (user.is_admin) { %> |
|
<a class="item" href="<%= syzoj.utils.makeUrl(['admin', 'info']) %>"><i class="settings icon"></i>后台管理</a> |
|
<% } %> |
|
<a class="item" href-post="<%= syzoj.utils.makeUrl(['logout'], { url: req.originalUrl }) %>"><i class="power icon"></i>注销</a> |
|
</div> |
|
</div> |
|
</a> |
|
<% } else { %> |
|
<div class="item"> |
|
<a class="ui button" style="margin-right: 0.5em; " href="<%= syzoj.utils.makeUrl(['login'], { url: this.noPreserveUrl ? undefined : req.originalUrl }) %>"> |
|
登录 |
|
</a> |
|
<a class="ui primary button" href="<%= syzoj.utils.makeUrl(['sign_up'], { url: this.noPreserveUrl ? undefined : req.originalUrl }) %>"> |
|
注册 |
|
</a> |
|
</div> |
|
<% } %> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="ui main container">
|
|
|