#208 and other symbol things

This commit is contained in:
Norman Jäckel 2012-06-23 13:14:18 +02:00
parent cc42792a38
commit 654388117b
4 changed files with 13 additions and 11 deletions

View File

@ -64,14 +64,11 @@
{% if perms.application.can_manage_application or poll.has_votes %}
<li>
{% if perms.application.can_manage_application %}
<a href="{% url application_poll_view poll.id %}">
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
</a>
<a href="{% url application_poll_delete poll.id %}">
<img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Delete Vote' %}">
</a>
<strong>{{ forloop.counter }}. {% trans "Vote" %} </strong>
<a class="icon edit" href="{% url application_poll_view poll.id %}" title="{% trans 'Edit Vote' %}"><span></span></a>
<a class="icon delete" href="{% url application_poll_delete poll.id %}" title="{% trans 'Delete Vote' %}"><span></span></a>
{% elif poll.has_votes %}
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
<strong>{{ forloop.counter }}. {% trans "Vote" %}:</strong>
{% endif %}
<br>
{% if poll.has_votes %}

View File

@ -56,7 +56,7 @@
{% if perms.assignment.can_manage_assignment %}
{% for poll in polls %}
{% url assignment_poll_view poll.id as url_assignmentpollview %}
<li class="{% if request.path == url_assignmentpollview %}selected{% endif %}"><a href="{% url assignment_poll_view poll.id %}">{{ forloop.counter }}. {% trans "ballot" %}</a></li>
<li class="{% if request.path == url_assignmentpollview %}selected{% endif %}"><a href="{% url assignment_poll_view poll.id %}"><img src="{% static 'images/icons/edit.png' %}"> {{ forloop.counter }}. {% trans "ballot" %}</a></li>
{% endfor %}
{% endif %}
</ul>

View File

@ -110,16 +110,17 @@
<th>{% trans "Candidates" %}</th>
{% for poll in polls %}
{# if poll.published and not perms.assignment.can_manage_assignment or perms.assignment.can_manage_assignment #}
<th style="vertical-align: top; white-space:nowrap;">{% if perms.assignment.can_manage_assignment %}<a href="{% url assignment_poll_view poll.id %}">{% endif %}
<th style="vertical-align: top; white-space:nowrap;">
{{ forloop.counter }}. {% trans 'ballot' %}
{% if perms.assignment.can_manage_assignment %}
</a>
<br>
<a class="publish_link {% if poll.published %}published{% endif %}"
href="{% url assignment_poll_publish_status poll.id %}"
title="{%trans 'Publish/unpublish results' %}">
<span></span>
</a>
<a href="{% url assignment_poll_delete poll.id %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Delete Poll' %}"></a>
<a href="{% url assignment_poll_view poll.id %}"><img src="{% static 'images/icons/edit.png' %}" title="{% trans 'Edit' %}"></a>
<a href="{% url assignment_poll_delete poll.id %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Delete' %}"></a>
{% endif %}
</th>
{# endif #}

View File

@ -568,6 +568,10 @@ ul.results {
}
/* Icons */
.icon {
font-size: 14px;
}
.icon span {
background-repeat: no-repeat;
background-position: center;