diff --git a/mo/web/templates/org_index.html b/mo/web/templates/org_index.html index 13eec98577dd261a4008d09f8cc2f6bb155450c1..7e9f22aa9cf9817592e395a82447218a2edf6013 100644 --- a/mo/web/templates/org_index.html +++ b/mo/web/templates/org_index.html @@ -88,7 +88,9 @@ <td class="hidden-xs"> {% set can, reason = o.rights.offer_view_statement() %} {% if can %} - <a href='{{ url_for('org_task_statement', round_id=o.round.round_id) }}'>stáhnout</a> + <a class="pdf-icon" href='{{ url_for('org_task_statement', round_id=o.round.round_id) }}' title='Stáhnout zadání'> + <img class="media-object" src="{{ url_for('static', filename='img/pdficon.svg') }}" alt="PDF" style="width: 16px; display: inline-block; margin: 2px"> + </a> {% else %} {{ reason }} {% endif %} diff --git a/static/img/pdficon.svg b/static/img/pdficon.svg new file mode 100644 index 0000000000000000000000000000000000000000..881c7f11d2d8e7cbdfa69fb951d2aefcbdaa05dd --- /dev/null +++ b/static/img/pdficon.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3800 4800"> + <g><path fill="#F00" d="M0 4800h3800V840L2960 0H0z"/><path fill="#FAFAFA" d="M100 4700h3600V840l-740-740H100z"/><path fill="#F00" d="M2960 840h840L2960 0z"/><path fill="#800" d="M3800 1680V840h-100v740z"/><path fill="#AAA" d="M3700 1580V840h-740z"/></g> + <g><path fill="#FAA" fill-rule="evenodd" d="M400 4400h3000V1400H400zm200-200h2600v-200H600zm0-400h2600v-200H600zm0-400h2600v-200H600zm0-400h2600v-200H600zm0-400h1400v-200H600zm0-400h1400v-200H600zm0-400h1400v-200H600zm1600 800h1000V1600H2200z"/> + <path fill="#F00" fill-rule="evenodd" d="M400 1200h200V900h100c450 0 450-600 0-600H400zm200-450h100c250 0 250-300 0-300H600zm600 450h200c650 0 650-900 0-900h-200zm200-200c400 0 400-500 0-500zm600 200h200V900h300V700h-300V500h400V300h-600"/></g> +</svg> diff --git a/static/mo.css b/static/mo.css index c6dac737920553fb31e99afec01917dca5bcf88c..301f71701c82cd47e946befe2d2845deeeb68da1 100644 --- a/static/mo.css +++ b/static/mo.css @@ -282,6 +282,7 @@ select.no-scroll::-webkit-scrollbar { } .pdf-icon { + display: inline-block; border: 1px solid transparent; } .pdf-icon:hover, .pdf-icon:focus {