增加部分模板,还有开发完成
This commit is contained in:
40
template/src/oj/account/avatar.html
Normal file
40
template/src/oj/account/avatar.html
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{% extends "oj_base.html" %}
|
||||||
|
{% block title %}
|
||||||
|
更换头像
|
||||||
|
{% endblock %}
|
||||||
|
{% block body %}
|
||||||
|
<div class="container main">
|
||||||
|
|
||||||
|
<div class="col-lg-2">
|
||||||
|
<ul class="list-group">
|
||||||
|
<li class="list-group-header">通用设置</li>
|
||||||
|
<li class="list-group-item"><a href="/account/settings/">个人信息</a></li>
|
||||||
|
<li class="list-group-item active"><a href="/account/settings/avatar/">更换头像</a></li>
|
||||||
|
<li class="list-group-item"><a href="/change_password/">修改密码</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3">
|
||||||
|
<img src="https://coding.net/static/fruit_avatar/Fruit-1.png" class="img-responsive"
|
||||||
|
style="height: 200px;width: 200px;">
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<form>
|
||||||
|
<div class="row">
|
||||||
|
{% for i in "aaaaaaaaaaaaaaaaaaaa" %}
|
||||||
|
<div class="col-lg-2 avatar-item">
|
||||||
|
<div style="border: 1px solid red;" >
|
||||||
|
<img src="/static/img/avatar/avatar-{{ forloop.counter }}.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div title="Coding.net 是深圳市扣钉网络科技有限公司打造的国内最大的一站式云端开发平台,提供包括代码托管,项目管理,产品演示,WebIDE 等工具。">
|
||||||
|
<img src="https://coding.net/static/d0aa9dd75e2500930b9e6ef61d9bcfa0.jpg" style="height: 100px;width: 150px">
|
||||||
|
水果头像由<a href="https://coding.net">coding.net</a>提供。
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
79
template/src/oj/account/settings.html
Normal file
79
template/src/oj/account/settings.html
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
{% extends "oj_base.html" %}
|
||||||
|
{% block title %}
|
||||||
|
用户设置
|
||||||
|
{% endblock %}
|
||||||
|
{% block body %}
|
||||||
|
<div class="container main">
|
||||||
|
|
||||||
|
<div class="col-lg-2">
|
||||||
|
<ul class="list-group">
|
||||||
|
<li class="list-group-header">通用设置</li>
|
||||||
|
<li class="list-group-item active"><a href="/account/settings/">个人信息</a></li>
|
||||||
|
<li class="list-group-item"><a href="/account/settings/avatar/">更换头像</a></li>
|
||||||
|
<li class="list-group-item"><a href="/change_password/">修改密码</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3">
|
||||||
|
<img src="https://coding.net/static/fruit_avatar/Fruit-1.png" class="img-responsive"
|
||||||
|
style="height: 200px;width: 200px;">
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<form>
|
||||||
|
<div class="row">
|
||||||
|
<div class="form-group col-md-6"><label>用户名</label>
|
||||||
|
<input name="username" type="text" class="form-control"
|
||||||
|
value="{{ request.user.username }}" readonly>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6"><label>真实姓名</label>
|
||||||
|
<input name="real_name" type="text" class="form-control"
|
||||||
|
value="{{ request.user.real_name }}" readonly>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="form-group col-md-6"><label>电子邮箱</label>
|
||||||
|
<input name="email" type="email" class="form-control"
|
||||||
|
value="{{ request.user.email }}" readonly>
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6"><label>手机</label>
|
||||||
|
<input name="phone" type="text" class="form-control"
|
||||||
|
data-error="请填写手机号码" value="{{ request.user.phone }}">
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>hduoj 用户名</label>
|
||||||
|
<input name=hduoj" type="text" class="form-control"
|
||||||
|
value="{{ request.user.hduoj_username }}">
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>BestCoder 用户名</label>
|
||||||
|
<input name=bestcoder" type="text" class="form-control"
|
||||||
|
value="{{ request.user.bestcoder_username }}">
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>Codeforces 用户名</label>
|
||||||
|
<input name=codeforces" type="text" class="form-control"
|
||||||
|
value="{{ request.user.bestcoder_username }}">
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-12"><label>blog</label>
|
||||||
|
<input name=blog" type="url" class="form-control"
|
||||||
|
value="{{ request.user.blog }}">
|
||||||
|
<div class="help-block with-errors"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit" class="btn btn-primary">提交</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
90
template/src/oj/account/user_index.html
Normal file
90
template/src/oj/account/user_index.html
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
{% extends "oj_base.html" %}
|
||||||
|
{% block title %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
{% block body %}
|
||||||
|
<div class="container main">
|
||||||
|
<div class="col-lg-4">
|
||||||
|
<div class="avatar">
|
||||||
|
<img src="https://coding.net/static/fruit_avatar/Fruit-1.png" class="img-responsive"
|
||||||
|
style="height: 200px;width: 200px;">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>virusdefender</h2>
|
||||||
|
</div>
|
||||||
|
<div class="list-group col-lg-10">
|
||||||
|
<p class="list-group-item"><span class="glyphicon glyphicon-link"></span>
|
||||||
|
<a href="https://virusdefender.net">https://virusdefender.net</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<img src="/static/img/oj_logo/hdu_logo.png" style="height: 20px">
|
||||||
|
<a href="https://virusdefender.net">https://virusdefender.net</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<img src="/static/img/oj_logo/bestcoder_logo.png" style="height: 20px">
|
||||||
|
<a href="https://virusdefender.net">https://virusdefender.net</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<img src="/static/img/oj_logo/codeforces_logo.png" style="height: 20px">
|
||||||
|
<a href="https://virusdefender.net">https://virusdefender.net</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p class="list-group-item"><span class="glyphicon glyphicon-calendar"></span> 2015-9-10</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<ul class="nav nav-tabs" style="margin: 10px;;">
|
||||||
|
<li role="presentation" class="active"><a href="#">Home</a></li>
|
||||||
|
<li role="presentation"><a href="#123">全部分享</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div class="panel panel-success">
|
||||||
|
<div class="panel-heading"><h3 class="panel-title">正在做的题</h3></div>
|
||||||
|
|
||||||
|
<div class="list-group">
|
||||||
|
<p class="list-group-item">
|
||||||
|
<a href="#" style="font-size: large;">problem title</a>
|
||||||
|
<span class="right">3 / 10</span>
|
||||||
|
<span style="display: block;">Accepted</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<a href="#" style="font-size: large;">problem title</a>
|
||||||
|
<span class="right">3 / 10</span>
|
||||||
|
<span style="display: block;">Accepted</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<a href="#" style="font-size: large;">problem title</a>
|
||||||
|
<span class="right">3 / 10</span>
|
||||||
|
<span style="display: block;">Accepted</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p class="list-group-item">
|
||||||
|
<a href="#" style="font-size: large;">problem title</a>
|
||||||
|
<span class="right">3 / 10</span>
|
||||||
|
<span style="display: block;">Accepted</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div class="panel panel-info">
|
||||||
|
<div class="panel-heading"><h3 class="panel-title">分享的代码</h3></div>
|
||||||
|
<div class="panel-body"> Panel content</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
{% block js_block %}
|
||||||
|
<script src="/static/js/app/oj/account/register.js"></script>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user