From 2de4ad2a2ff31541cb868ddb724e806afcbfd579 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 22 Jul 2024 13:58:55 +0200 Subject: [PATCH] link to mugshots --- media/css/trog3.css | 57 +++++++++++++++++++++++++++++++++++++++ templates/expedition.html | 31 +++++++++++++++------ 2 files changed, 80 insertions(+), 8 deletions(-) diff --git a/media/css/trog3.css b/media/css/trog3.css index 5325db5..26ec894 100644 --- a/media/css/trog3.css +++ b/media/css/trog3.css @@ -677,3 +677,60 @@ a.deletelink:link, a.deletelink:visited { a.deletelink:hover { color: #993333; } + +/* POPUP IMG */ +/*HOVER POPUP LINKS*/ + +/*hoverpopups type 1*/ +/* + +😃 + +*/ + +popup { color: #000; } + +popup:hover { + color: blue; + background-color: #e9e9e2; +} + +table td popup:hover { + color: blue; + background-color: #e9e9e2; +} + +popup img { + display: none; +} + +table td popup:hover img { + display: flex; + position: absolute; + top: 10%; + left: 50%; + float: right; + margin: 0px; + padding: 10px; + color: #335500; + font-weight: normal; + background: #e5e5e5; + text-align: left; + border: 1px solid #666; +} + +popup:hover img { + display: flex; + position: relative; + float: right; + top: 0px; + /*left: 170px;*/ + width: 15%; + margin: 0px; + padding: 10px; + color: #335500; + font-weight: normal; + background: #e5e5e5; + text-align: left; + border: 1px solid #666; +} \ No newline at end of file diff --git a/templates/expedition.html b/templates/expedition.html index 1623a0c..6356e91 100644 --- a/templates/expedition.html +++ b/templates/expedition.html @@ -25,6 +25,7 @@
  • full logbook for this Expo
  • logbook report for this Expo
  • new logbook entry for this Expo + {% if logged_in %}

    Reparse and reload this year's logbook by clicking here: RELOAD {% endif %} @@ -43,19 +44,32 @@ an "S" for a survey trip. The colours of the "T" and "S" a {{d.day}}/{{d.month}} {% endfor %} - + {% for personexpoday in personexpodays|dictsort:"sortname" %} - - {{personexpoday.personexpedition.person.fullname|safe}} + + + + + + {{personexpoday.personexpedition.person.fullname|safe}} + +{% if personexpoday.personexpedition.person.mug_shot %} + + 😃 -{% if personexpoday.personexpedition.person.mug_shot %} -

    😃
    {% else %} {% if personexpoday.personexpedition.person.blurb %} -😁 + + 😁 + + {% else %} {% endif %} {% endif %} - + {% for activities in personexpoday.personrow %} {% if activities.personentries or activities.survexblocks %} @@ -76,8 +90,9 @@ an "S" for a survey trip. The colours of the "T" and "S" a {% endif %} {% endif %} - + {% endfor %} + {% endfor %}