change button style, highlight file rows for files that are unpublished
This commit is contained in:
parent
635f17433d
commit
5b05bff295
|
@ -36,7 +36,8 @@ code, pre {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unpublished-post {
|
.unpublished-post,
|
||||||
|
.unpublished-file {
|
||||||
background-color: #e1edff;
|
background-color: #e1edff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<tr>
|
<tr{% if not file.published %} class="unpublished-file"{% endif %}>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{context}}/files{{path}}{{file.filename}}"><i class="icon-file"></i> {{file.filename}}</a><br />
|
<a href="{{context}}/files{{path}}{{file.filename}}"><i class="icon-file"></i> {{file.filename}}</a><br />
|
||||||
<small class="muted">{{file.content-type}}</small>
|
<small class="muted">{{file.content-type}}</small>
|
||||||
|
@ -52,14 +52,14 @@
|
||||||
<td>{{file.size}}</td>
|
<td>{{file.size}}</td>
|
||||||
<td>{{file.last_modified|to_fulltime}}</td>
|
<td>{{file.last_modified|to_fulltime}}</td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
<a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#"><i class="icon-pencil"></i></a>
|
<a class="btn btn-warning" data-updatefileid="{{file.id}}" href="#"><i class="icon-pencil icon-white"></i></a>
|
||||||
{% if file.published %}
|
{% if file.published %}
|
||||||
<a class="btn btn-warning" href="{{context}}/unpublishfile{{file.id}}"><i class="icon-minus-sign"></i></a>
|
<a class="btn btn-warning" href="{{context}}/unpublishfile{{file.id}}"><i class="icon-minus-sign icon-white"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not file.published %}
|
{% if not file.published %}
|
||||||
<a class="btn btn-warning" href="{{context}}/publishfile{{file.id}}"><i class="icon-ok-sign"></i></a>
|
<a class="btn btn-warning" href="{{context}}/publishfile{{file.id}}"><i class="icon-ok-sign icon-white"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#"><i class="icon-remove"></i></a>
|
<a class="btn btn-danger" data-deletefileid="{{file.id}}" href="#"><i class="icon-remove icon-white"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Reference in a new issue