注释掉了用户主页里还没有后端配套的submission部分,添加学校显示,修复了settings里codeforces用户名无法编辑的问题,原来是html里边拼错了
This commit is contained in:
@@ -64,8 +64,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label>Codeforces 用户名</label>
|
<label>Codeforces 用户名</label>
|
||||||
<input name="codeforce_username" type="text" class="form-control" id="codeforce_username"
|
<input name="codeforces_username" type="text" class="form-control" id="codeforces_username"
|
||||||
value="{% if request.user.userprofile.codeforce_username %}{{ request.user.userprofile.codeforce_username }}{% endif %}">
|
value="{% if request.user.userprofile.codeforce_username %}{{ request.user.userprofile.codeforces_username }}{% endif %}">
|
||||||
|
|
||||||
<div class="help-block with-errors"></div>
|
<div class="help-block with-errors"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
{% if user.userprofile.mood %}
|
{% if user.userprofile.mood %}
|
||||||
<p id="user-mood">{{ user.userprofile.mood }}</p>
|
<p id="user-mood">{{ user.userprofile.mood }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if user.userprofile.school %}
|
||||||
|
<p id="user-mood">{{ user.userprofile.school }}</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="list-group col-lg-9">
|
<div class="list-group col-lg-9">
|
||||||
|
|
||||||
@@ -57,7 +60,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p class="list-group-item">
|
<p class="list-group-item">
|
||||||
<span class="glyphicon glyphicon-calendar"></span>
|
<span class="glyphicon glyphicon-calendar"></span>
|
||||||
{{ user.create_time }}
|
{{ user.create_time }}
|
||||||
@@ -68,7 +71,7 @@
|
|||||||
<strong id="user-data-number">{{ user.userprofile.rank }}</strong>
|
<strong id="user-data-number">{{ user.userprofile.rank }}</strong>
|
||||||
<span id="user-data-text">Rank</span>
|
<span id="user-data-text">Rank</span>
|
||||||
</div>
|
</div>
|
||||||
-->
|
|
||||||
<div class="col-lg-6 text-center">
|
<div class="col-lg-6 text-center">
|
||||||
<strong id="user-data-number">{{ user.userprofile.accepted_number }}</strong>
|
<strong id="user-data-number">{{ user.userprofile.accepted_number }}</strong>
|
||||||
<span id="user-data-text">AC</span>
|
<span id="user-data-text">AC</span>
|
||||||
@@ -77,6 +80,7 @@
|
|||||||
<strong id="user-data-number">{{ user.userprofile.submissions_number }}</strong>
|
<strong id="user-data-number">{{ user.userprofile.submissions_number }}</strong>
|
||||||
<span id="user-data-text">Submissions</span>
|
<span id="user-data-text">Submissions</span>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user