#92: Projector control: Add projector preview icon for all entries.

This commit is contained in:
Emanuel Schuetze 2012-04-18 22:00:58 +02:00
parent a35e1917a4
commit 4adb221a9d
5 changed files with 12 additions and 5 deletions

View File

@ -7,7 +7,7 @@
<a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}"> <a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}">
<div></div> <div></div>
</a> </a>
<a href="{% url projctor_preview_slide slide.sid %}">preview</a> <a href="{% url projctor_preview_slide slide.sid %}" title="{% trans 'Preview' %}" class="icon preview right"><span></span></a>
{% for p in slide.get_ancestors %} {% for p in slide.get_ancestors %}
<span class="indentation">&nbsp;</span> <span class="indentation">&nbsp;</span>
{% endfor %} {% endfor %}

View File

@ -6,7 +6,7 @@
<a href="{% url projector_activate_slide slides.key %}" class="activate_link {% if slides.active %}active{% endif %}"> <a href="{% url projector_activate_slide slides.key %}" class="activate_link {% if slides.active %}active{% endif %}">
<div></div> <div></div>
</a> </a>
<a href="{% url projctor_preview_slide slides.key %}">preview</a> <a href="{% url projctor_preview_slide slides.key %}" title="{% trans 'Preview' %}" class="icon preview right"><span></span></a>
{{ slides.name }} {{ slides.name }}
</li> </li>
</ul> </ul>

View File

@ -7,7 +7,7 @@
<a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}"> <a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}">
<div></div> <div></div>
</a> </a>
<a href="{% url projctor_preview_slide slide.sid %}">preview</a> <a href="{% url projctor_preview_slide slide.sid %}" title="{% trans 'Preview' %}" class="icon preview right"><span></span></a>
<a href="{{ slide.get_absolute_url }}">{{ slide }}</a> <a href="{{ slide.get_absolute_url }}">{{ slide }}</a>
</li> </li>
{% endfor %} {% endfor %}

View File

Before

Width:  |  Height:  |  Size: 808 B

After

Width:  |  Height:  |  Size: 808 B

View File

@ -572,10 +572,17 @@ ul.results {
color: #585B66; color: #585B66;
} }
.pdficon span { /* Icons */
background-image: url("../images/icons/application-pdf.png"); .icon span {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
width: 16px; width: 16px;
height: 16px; height: 16px;
display: inline-block; display: inline-block;
}
.right {
float: right
}
.preview {
background:url("../images/icons/preview.png") no-repeat 0px 0px;
}