Le repo des sources pour le site web des JM2L
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

107 lines
3.2 KiB

  1. <%inherit file="jm2l:templates/layout.mako"/>
  2. <%namespace name="helpers" file="jm2l:templates/helpers.mako"/>
  3. <% The_entity_type = entity.get_entity_type %>
  4. <div class="row-fluid">
  5. <div class="span10 offset1">
  6. <strong>${The_entity_type.entity_type}</strong>
  7. % if The_entity_type.entity_subtype!=The_entity_type.entity_type:
  8. ${The_entity_type.entity_subtype}
  9. % endif
  10. <div class="borderboxtime">
  11. ${The_entity_type.entity_subtype}
  12. </div>
  13. ##%if entity.tiers_id:
  14. ## <a href="http://jm2l.linux-azur.org/node/${entity.tiers_id}">Link</a> -
  15. ##%endif
  16. % if request.user and (request.user.Staff or request.user in entity.members):
  17. <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">Editer</a>
  18. % endif
  19. <div clear='both'></div>
  20. <div>
  21. <a style="float:right;" href="/entities">Liste des entités</a>
  22. <h3 style="line-height:30px;">${entity.name}</h3>
  23. </div>
  24. <div class="borderbox">
  25. % if entity.PhotosLinks:
  26. <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
  27. % for img_path in entity.PhotosLinks:
  28. <img src="${img_path}" style="max-height:205px;max-width:335px;" alt="logo" />
  29. % endfor
  30. </div>
  31. % endif
  32. % if entity.description :
  33. ${entity.description | n}
  34. % else:
  35. <p>Cette entité n'a pas de description.</p>
  36. % endif
  37. % if entity.DocLinks:
  38. ${helpers.medias(entity)}
  39. % endif
  40. </div>
  41. <div class="footborderbox">
  42. % if entity.website:
  43. <div style="float:right;">
  44. <a href="${entity.website}">${entity.website}</a>
  45. </div>
  46. % endif
  47. </div>
  48. % if 0:
  49. % for media in entity.PhotosLinks:
  50. <strong>Présentation</strong>:${media.filename} (${media.mime_type})
  51. % endfor
  52. <hr/>
  53. % for media in entity.video:
  54. <div style="width:480px;margin:auto;">
  55. <video width="480" poster="" controls="controls" preload="metadata">
  56. <source type="${media.mime_type}"
  57. src="${media.filename}">
  58. </source>
  59. </video> <br />
  60. <strong>Vidéo</strong>:${media.filename} (${media.mime_type})
  61. </div>
  62. % endfor
  63. % endif
  64. % for iterv in entity.members:
  65. <p>
  66. <div class="titleborderbox">
  67. Intervenant <strong><a href="/user/${iterv.slug}">${iterv.prenom} ${iterv.nom}</a></strong>.
  68. % if iterv.pseudo:
  69. (${iterv.pseudo})
  70. %endif
  71. </div>
  72. <div class="media borderbox">
  73. ${helpers.show_pictures(iterv)}
  74. <div class="media-body">
  75. <ul>
  76. % for i in filter(lambda x:x.user_uid==iterv.uid and x.tiers_uid==entity.uid, entity.membership):
  77. <li>${i.year_uid} ${i.role}</li>
  78. % endfor
  79. </ul>
  80. % if iterv.bio:
  81. ${iterv.bio | n}
  82. % else:
  83. <i>Ce profil n'a pas été complété.</i>
  84. % endif
  85. </div>
  86. </div>
  87. <div class="footborderbox">
  88. % if iterv.website:
  89. <div style="float:right;">
  90. <a href="${iterv.website}">${iterv.website}</a>
  91. </div>
  92. % endif
  93. </div>
  94. </p>
  95. % endfor
  96. <br/><br/>
  97. <p style="float:right;">Créé le ${entity.created.strftime('%d %b %Y').decode('utf-8')}</p>
  98. <br/>
  99. <hr/>
  100. </div>
  101. </div>