This commit is contained in:
baoliang 2018-11-27 22:32:11 +08:00
parent 36c42ecb33
commit 331a7f8c6c
1 changed files with 6 additions and 34 deletions

View File

@ -137,45 +137,17 @@
<!-- Nav tabs -->
<ul class="data-nav navbar-right nav nav-tabs" role="tablist">
<!--<h3 class="panel-title col-md-12">工作状态</h3>-->
<li role="presentation" class="active"><a href="#profile" aria-controls="profile" role="tab"
data-toggle="tab">最新数据</a>
<li role="presentation" class="active">
<a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">热门数据</a>
</li>
<li role="presentation">
<a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">最新数据</a>
</li>
<li role="presentation"><a href="#home" aria-controls="home" role="tab"
data-toggle="tab">全部数据</a></li>
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab"
data-toggle="tab">热门数据</a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="display-panel-content tab-content panel-body">
<div role="tabpanel" class="tab-content tab-pane active container data-content panel-body"
id="home">
<div class="row">
{% for m in metadatas %}
<div class="col-sm-6 col-md-3">
<div class="display-panel-content-thumbnail thumbnail">
<img width="150" height="150" alt="{{ m.title_cn }}"
src="{% if m.thumbnail %} {{ m.thumbnail.url }} {% else %} /static/upload/images/wutu.jpg {% endif %}">
<div class="caption">
<a href="{% url 'metadata_detail' m.id %}" target="_blank"><h4 title="{{ m.title_cn }}">{% if m.title_cn|length > 13 %}
{{ m.title_cn|slice:"13" }}...
{% else %}
{{ m.title_cn }}
{% endif %}</h4></a>
<p class="data-click">点击量:<span>{{ m.hit_count }}</span></p>
</div>
</div>
</div>
{% empty %}
<div>暂无数据.</div>
{% endfor %}
</div>
</div>
<div role="tabpanel" class="tab-content tab-pane container panel-body data-content" id="profile">
<div class="row">
{% for newest in newest_datas %}
@ -201,7 +173,7 @@
</div>
</div>
<div role="tabpanel" class="tab-content tab-pane container panel-body data-content" id="messages">
<div role="tabpanel" class="tab-content tab-pane container active panel-body data-content" id="messages">
<div class="row">
{% for hot in hot_datas %}
<div class="col-sm-6 col-md-3">