[前台]添加比赛模块里rank,submission页面的列表是空的情况的提示(修改模板)

This commit is contained in:
esp
2015-08-28 18:02:12 +08:00
parent 4847a3a36c
commit 4bfbaf249f
5 changed files with 20 additions and 7 deletions

View File

@@ -5,8 +5,13 @@
公告 公告
</h3></div> </h3></div>
<div class="panel-body"> <div class="panel-body">
{% if announcements %}
{% for item in announcements %} {% for item in announcements %}
<p>{{ forloop.counter }}.&nbsp;&nbsp;<a href="/announcement/{{ item.id }}/" target="_blank">{{ item.title }}</a></p> <p>{{ forloop.counter }}.&nbsp;&nbsp;<a href="/announcement/{{ item.id }}/" target="_blank">{{ item.title }}</a>
</p>
{% endfor %} {% endfor %}
{% else %}
<p>暂无可显示的公告</p>
{% endif %}
</div> </div>
</div> </div>

View File

@@ -26,7 +26,7 @@
</div> </div>
<div class="col-lg-9"> <div class="col-md-9 col-lg-9">
<div> <div>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@@ -55,7 +55,7 @@
</div> </div>
</div> </div>
<div class="col-lg-3"> <div class="col-md-3 col-lg-3">
{% include "oj/announcement/_announcement_panel.html" %} {% include "oj/announcement/_announcement_panel.html" %}
</div> </div>
</div> </div>

View File

@@ -20,6 +20,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
{% if result %}
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
@@ -49,6 +50,9 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% else %}
<p>还没有结果</p>
{% endif %}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -11,6 +11,7 @@
<a href="/problem/{{ problem.id }}/submissions/">我的提交</a></li> <a href="/problem/{{ problem.id }}/submissions/">我的提交</a></li>
</ul> </ul>
{% include "oj/problem/_problem_header.html" %} {% include "oj/problem/_problem_header.html" %}
{% if submissions %}
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr class="" success> <tr class="" success>
@@ -42,5 +43,8 @@
</tbody> </tbody>
</table> </table>
{% else %}
<p>你还没有提交该题目</p>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -3,7 +3,7 @@
{% load problem %} {% load problem %}
<div class="container main"> <div class="container main">
<div class="row"> <div class="row">
<div class="col-lg-9"> <div class="col-md-9 col-lg-9">
<div class="row"> <div class="row">
<div class="right"> <div class="right">
<form class="form-inline" method="get"> <form class="form-inline" method="get">
@@ -54,7 +54,7 @@
</div> </div>
</div> </div>
<div class="col-lg-3"> <div class="col-md-3 col-lg-3">
{% include "oj/announcement/_announcement_panel.html" %} {% include "oj/announcement/_announcement_panel.html" %}
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">