不是本人的提交就增加作者用户名

This commit is contained in:
virusdefender 2015-09-23 21:41:37 +08:00
parent e95bf8e162
commit 8fbc774dee

View File

@ -40,6 +40,9 @@
{{ submission.result|translate_result }} {{ submission.result|translate_result }}
</span> </span>
</h4> </h4>
{% ifnotequal request.user.id submission.user_id %}
<p>作者:{{ user.username }}</p>
{% endifnotequal %}
{% ifequal submission.result 0 %} {% ifequal submission.result 0 %}
<p>时间 : {{ submission.accepted_answer_time }}ms 语言 : <p>时间 : {{ submission.accepted_answer_time }}ms 语言 :
{{ submission.language|translate_language }} {{ submission.language|translate_language }}
@ -74,7 +77,7 @@
{% endif %} {% endif %}
<textarea class="form-control" id="share-code-textarea" <textarea class="form-control" id="share-code-textarea"
{% if not submission.shared %}style="display: none" {% endif %}>{{ problem.title }} {% if not submission.shared %}style="display: none" {% endif %}>{{ problem.title }}
{{ request.build_absolute_uri }}</textarea> {{ request.build_absolute_uri }}</textarea>
</div> </div>
{% endif %} {% endif %}