Skip to content

Commit

Permalink
🐛前端样式小bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Apr 23, 2019
1 parent 41b321f commit fe1ee54
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions application/frontend/templates/frontend/recent.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ <h3>&nbsp;&nbsp;组件</h3>
<div class="card-body-left">
<h4 class="card-title"><a
href="{% url 'detail' data.id %}">{{ data.target }}</a></h4>
<p class="card-text">
<div class="card-text">
<p class="text-muted">
{% for info in data.info_tags %}
<div class="badge badge-outline-info">{{ info }}</div>
{% endfor %}
{% if data.bugs %}
<label class="badge badge-danger">存在威胁</label>
{% endif %}
</p>

<p class="text-muted">
{% if data.location %}
<span
Expand All @@ -119,13 +121,15 @@ <h4 class="card-title"><a
</p>
<p class="text-muted"><span><i class="icon-clock"></i> {{ data.published_from }}</span>
</p>
</div>
</div>
<pre>{{ data.infos }}</pre>
{% elif data.doc_type == "domains" %}
<div class="card-body-left">
<h4 class="card-title"><a href="{% url 'detail' data.id %}"
class="domain-inline">{{ data.target }}</a></h4>
<p class="card-text">
<div class="card-text">
<p class="text-muted">
{% for app in data.app %}
{{ app|app_icon|safe }}
{% endfor %}
Expand All @@ -151,11 +155,13 @@ <h4 class="card-title"><a href="{% url 'detail' data.id %}"
<p class="text-muted"><span><i class="icon-link"></i> {{ data.url }}</span><br/>
<span><i class="icon-clock"></i> {{ data.published_from }}</span>
</p>
</div>
</div>
<pre>{{ data.headers }}<br/><br/>{{ data.body }}
</pre>
{% endif %}
</div>
<div style="clear: both"></div>
</div>
{% endfor %}

Expand Down

0 comments on commit fe1ee54

Please sign in to comment.