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