change button style, highlight file rows for files that are unpublished

This commit is contained in:
Gered 2013-05-26 15:38:53 -04:00
parent 635f17433d
commit 5b05bff295
2 changed files with 7 additions and 6 deletions

View file

@ -36,7 +36,8 @@ code, pre {
padding-bottom: 10px;
}
.unpublished-post {
.unpublished-post,
.unpublished-file {
background-color: #e1edff;
}

View file

@ -44,7 +44,7 @@
</thead>
<tbody>
{% for file in files %}
<tr>
<tr{% if not file.published %} class="unpublished-file"{% endif %}>
<td>
<a href="{{context}}/files{{path}}{{file.filename}}"><i class="icon-file"></i> {{file.filename}}</a><br />
<small class="muted">{{file.content-type}}</small>
@ -52,14 +52,14 @@
<td>{{file.size}}</td>
<td>{{file.last_modified|to_fulltime}}</td>
<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 %}
<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 %}
{% 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 %}
<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>
</tr>
{% endfor %}