From 086f930d11194519067a39da1c9a0959b85e6bb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com>
Date: Fri, 22 Apr 2022 17:57:29 +0200
Subject: [PATCH] =?UTF-8?q?org=5Findex:=20Ikonka=20pro=20zad=C3=A1n=C3=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/templates/org_index.html | 4 +++-
 static/img/pdficon.svg          | 7 +++++++
 static/mo.css                   | 1 +
 3 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 static/img/pdficon.svg

diff --git a/mo/web/templates/org_index.html b/mo/web/templates/org_index.html
index 13eec985..7e9f22aa 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 00000000..881c7f11
--- /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 c6dac737..301f7170 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 {
-- 
GitLab