Skip to content
Snippets Groups Projects
Commit a696047a authored by Jan Prachař's avatar Jan Prachař
Browse files

pdf ikonka

parent f67b4c80
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ konkrétní úlohu. Symbol <span class="icon">🗐</span> značí, že existuje ...@@ -72,7 +72,7 @@ konkrétní úlohu. Symbol <span class="icon">🗐</span> značí, že existuje
{% set p = sol.final_submit_obj %} {% set p = sol.final_submit_obj %}
{% set late = p.check_deadline(round) %} {% set late = p.check_deadline(round) %}
<td class="{% if late or p.broken %}danger{% else %}success{% endif %}"> <td class="{% if late or p.broken %}danger{% else %}success{% endif %}">
<a href="{{ paper_link(u, p) }}" title="{{ p.uploaded_at|timeformat }}{% if p.is_broken() %} - nekorektní PDF{% endif %}{% if p.pages != None %} - {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}{% endif %}{% if late %} - {{ late }}{% endif %}">🖺</a> <a href="{{ paper_link(u, p) }}" title="{{ p.uploaded_at|timeformat }}{% if p.is_broken() %} nekorektní PDF{% endif %}{% if p.pages != None %} {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}{% endif %}{% if late %} {{ late }}{% endif %}" class="pdf-icon">📄</a>
{% set key = (u.user_id, task.task_id, "solution") %} {% set key = (u.user_id, task.task_id, "solution") %}
{% if key in paper_counts and paper_counts[key] > 1 %} {% if key in paper_counts and paper_counts[key] > 1 %}
<span title="Celkem {{ paper_counts[key]|inflected('verze', 'verze', 'verzí') }}" class="icon">🗐</span> <span title="Celkem {{ paper_counts[key]|inflected('verze', 'verze', 'verzí') }}" class="icon">🗐</span>
...@@ -83,10 +83,10 @@ konkrétní úlohu. Symbol <span class="icon">🗐</span> značí, že existuje ...@@ -83,10 +83,10 @@ konkrétní úlohu. Symbol <span class="icon">🗐</span> značí, že existuje
{% if sol.final_feedback_obj %} {% if sol.final_feedback_obj %}
{% set p = sol.final_feedback_obj %} {% set p = sol.final_feedback_obj %}
<td class="{% if p.broken %}danger{% else %}success{% endif %}"> <td class="{% if p.broken %}danger{% else %}success{% endif %}">
<a href="{{ paper_link(u, p) }}" title="{{ p.uploaded_at|timeformat }}{% if p.is_broken() %} - nekorektní PDF{% endif %}{% if p.pages != None %} - {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}{% endif %}">🖺</a> <a href="{{ paper_link(u, p) }}" title="{{ p.uploaded_at|timeformat }}{% if p.is_broken() %} nekorektní PDF{% endif %}{% if p.pages != None %} {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}{% endif %}" class="pdf-icon">📄</a>
{% set key = (u.user_id, task.task_id, "feedback") %} {% set key = (u.user_id, task.task_id, "feedback") %}
{% if key in paper_counts and paper_counts[key] > 1 %} {% if key in paper_counts and paper_counts[key] > 1 %}
<span title="Celkem {{ paper_counts[key]|inflected('verze', 'verze', 'verzí') }}" class="icon">📄</span> <span title="Celkem {{ paper_counts[key]|inflected('verze', 'verze', 'verzí') }}" class="icon">🗐</span>
{% endif %} {% endif %}
{% else %} {% else %}
<td class="success"> <td class="success">
... ...
......
...@@ -247,6 +247,11 @@ select.no-scroll::-webkit-scrollbar { ...@@ -247,6 +247,11 @@ select.no-scroll::-webkit-scrollbar {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.pdf-icon:hover, .pdf-icon:focus {
text-decoration: none;
border: 1px solid #337ab7;
}
/* Collapsible */ /* Collapsible */
.collapsible { .collapsible {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment