Skip to content

Commit

Permalink
Remove multinode buttons in both Logs page and Items page
Browse files Browse the repository at this point in the history
  • Loading branch information
my8100 committed Jul 30, 2019
1 parent 03934cc commit ce0d47d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scrapydweb/templates/scrapydweb/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ <h2>
<el-table-column prop="size" label="Size" sortable align="center" width="100" :sort-method="sortSize" :sort-orders=['descending','ascending',null]></el-table-column>

{% if project and spider %}
<el-table-column prop="stats" label="Stats" sortable align="center" width="160">
<el-table-column prop="stats" label="Stats" sortable align="center" width="{% if SCRAPYD_SERVERS_AMOUNT > 1 %}160{% else %}80{% endif %}">
<template slot-scope="scope">
{% if SCRAPYD_SERVERS_AMOUNT > 1 %}
<a class="state multinode" :href="scope.row.url_clusterreports" target="_blank">multinode</a>
{% endif %}
<a class="state normal" :href="scope.row.url_stats" target="_blank">Stats</a>
</template>
</el-table-column>
Expand Down
4 changes: 3 additions & 1 deletion scrapydweb/templates/scrapydweb/logs.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ <h2>
<el-table-column prop="size" label="Size" sortable align="center" width="100" :sort-method="sortSize" :sort-orders=['descending','ascending',null]></el-table-column>

{% if project and spider %}
<el-table-column prop="stats" label="Stats" sortable align="center" width="160">
<el-table-column prop="stats" label="Stats" sortable align="center" width="{% if SCRAPYD_SERVERS_AMOUNT > 1 %}160{% else %}80{% endif %}">
<template slot-scope="scope">
{% if SCRAPYD_SERVERS_AMOUNT > 1 %}
<a class="state multinode" :href="scope.row.url_clusterreports" target="_blank">multinode</a>
{% endif %}
<a :class="scope.row.stats_class" :href="scope.row.url_stats" target="_blank">Stats</a>
</template>
</el-table-column>
Expand Down

0 comments on commit ce0d47d

Please sign in to comment.