2021的特普通奖
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.
 
 
 

110 lines
4.4 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" type="image/png" href="static/img/icon-128.png" />
<link href="https://fonts.yecdn.com/css2?family=Noto+Serif+SC:wght@300;700&display=swap" rel="stylesheet">
<link href="https://fonts.yecdn.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">
<meta property="og:title" content="华清大学特普通奖学金 主页" />
<meta property="og:description" content="华清大学特普通奖学金" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="static/css/ordinary.css" rel="stylesheet">
<title>第二届 华清大学特普通奖</title>
<script>
if(navigator.userAgent.search('MicroMessenger') !== -1)
location.href = `https://closed.social/tools/safe_jump/?go=${encodeURIComponent(location.href)}&t=${encodeURIComponent('华清大学特普通奖')}`;
</script>
</head>
<body>
<div class="container">
<div style='padding:15px'>
<img src="static/img/logo.png" width="200px" />
</div>
<div class="user-info">
<div class="btn-group">
<button type="button" class="btn btn-dark rounded-0 p-1 pl-2">
<img class="rounded-circle" src="{{avatar}}" width="24">
<span class="username ml-2">{{username or '未登录'}}</span>
</button>
</div>
</div>
{% for story in stories %}
<a href="{{story.id}}">
<div class="card story-card" data-story-id="{{story.id}}">
<img src="{{story.avatar}}" class="card-img-top">
<div class="card-body">
<h5 class="card-title">{{story.title}}</h5>
<p class="card-text">{{story.text_abstract()}}</p>
<span><small>(未完待<b></b>)</small></span><br/>
<span><small>赞数和: {{story.total_like_num}} </small></span>
</div>
</div>
</a>
{% endfor %}
<div class="modal fade" id="loginModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">登录</h3>
</div>
<div class="modal-body">
<div class="text-center mb-4">
<a href="{{cs_login_url}}" target="_blank" class="btn btn-link">闭社帐号登录</a>
</div>
<div class="text-center mb-4">
<a href="#answerLogin" data-bs-toggle="collapse" class="btn btn-link" role="button">答题验证登录</a>
<div class="collapse" id="answerLogin">
<form action="{{guest_login_url}}" method="post">
{% for id, question, hint, answer in verify_questions %}
<div class="form-group row">
<label for="{{id}}" class="col-sm-8 col-form-label">{{question}}</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="{{id}}" id="{{id}}" placeholder="{{hint}}" required="required">
</div>
</div>
{% endfor %}
<button type="submit" class="btn btn-link btn-lg mb-3">提交</button>
</form>
</div>
<p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<a href="//closed.social" target="_blank">闭社</a>提供技术支持,本创作系统开源于<a href="//git.closed.social/">碧茶</a>
</p>
<p> 🄯 2021 Copyleft: closed.social</p>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script>
function check_login() {
if (! "{{username}}") {
new bootstrap.Modal(document.getElementById('loginModal')).show();
return true;
}
}
$('.user-info .btn').click(check_login);
</script>
</html>