注释掉了用户主页里还没有后端配套的submission部分,添加学校显示,修复了settings里codeforces用户名无法编辑的问题,原来是html里边拼错了

This commit is contained in:
sxw 2015-12-08 16:29:27 +08:00
parent 7cd012af48
commit 4d975b98fb
2 changed files with 8 additions and 4 deletions

View File

@ -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>

View File

@ -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">
@ -57,7 +60,7 @@
</a>
</p>
{% endif %}
<p class="list-group-item">
<span class="glyphicon glyphicon-calendar"></span>
{{ user.create_time }}
@ -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>