diff --git a/jm2l/models.py b/jm2l/models.py
index 78c712e..7443c92 100644
--- a/jm2l/models.py
+++ b/jm2l/models.py
@@ -111,6 +111,13 @@ class JM2L_Year(Base):
date_list = filter(lambda x: x.hour<12 or x.hour>=13, date_list)
return date_list
+ @property
+ def DocLinks(self):
+ from .upload import MediaPath
+ return zip( MediaPath().get_list('presse', self.year_uid, 'Other'),
+ MediaPath().get_thumb('presse', self.year_uid, 'Other')
+ )
+
class User(Base):
__tablename__ = 'users'
uid = Column(Integer, primary_key=True)
@@ -271,16 +278,23 @@ class Tiers(Base):
.filter(Media.media_table == 'tiers') \
.filter(Media.media_type == 'Image') \
.filter(Media.link_id == self.uid)
-
+
+ @property
+ def DocLinks(self):
+ from .upload import MediaPath
+ return zip( MediaPath().get_list('tiers', self.uid, 'Other'),
+ MediaPath().get_thumb('tiers', self.uid, 'Other')
+ )
+
@property
def PhotosLinks(self):
from .upload import MediaPath
- return MediaPath().get_list('tiers', self.uid)
+ return MediaPath().get_list('tiers', self.uid, 'Image')
@property
def ThumbLinks(self):
from .upload import MediaPath
- return MediaPath().get_thumb('tiers', self.uid)
+ return MediaPath().get_thumb('tiers', self.uid)
class Role_Tiers(Base):
""" Créer le lien entre le tiers et son rôle dans l'évenement en fonction de l'année"""
diff --git a/jm2l/static/img/shadow.svg b/jm2l/static/img/shadow.svg
index 1f6a7a0..dfb3e07 100644
--- a/jm2l/static/img/shadow.svg
+++ b/jm2l/static/img/shadow.svg
@@ -14,19 +14,19 @@