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.
 
 
 
 
 

124 lines
4.0 KiB

  1. <%inherit file="jm2l:templates/layout.mako"/>
  2. <%namespace name="helpers" file="jm2l:templates/helpers.mako"/>
  3. <%def name="jsAddOn()">
  4. <script src="/vendor/jquery.media/jquery.media.js"></script>
  5. <script type="text/javascript">
  6. $('a.media').media({width:480, height:360});
  7. </script>
  8. </%def>
  9. <div class="row-fluid">
  10. <div class="span10 offset1">
  11. <div id="SalleCarousel">
  12. ${helpers.show_salles( Salles, event.Salle.salle_id )}
  13. </div>
  14. <strong>${event.event_type}</strong>:
  15. <div class="borderboxtime">
  16. ${event.start_time.strftime('%d %b %Y')} -
  17. ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
  18. </div>
  19. % if event.for_year==CurrentYear and request.user and (request.user.Staff or request.user in event.intervenants):
  20. <a href="/MesJM2L/${event.for_year}/${event.event_type.replace(' ', '_')}/${event.slug}">Modifier</a>
  21. % elif request.user and request.user.Staff:
  22. <a href="/MesJM2L/${event.for_year}/${event.event_type.replace(' ', '_')}/${event.slug}">Editer</a>
  23. % endif
  24. <h3 style="line-height:30px;">${event.name}</h3>
  25. % if event.description :
  26. <div class="borderbox">
  27. ${event.description | n}
  28. </div>
  29. % else:
  30. <p>Cet évènement n'a pas de description.</p>
  31. % endif
  32. <div style="margin-top:10px;">
  33. ${helpers.show_SummaryEntities( event.get_linked_tiers() )}
  34. </div>
  35. </div>
  36. </div>
  37. <hr/>
  38. <hr/>
  39. % if event.presentation.count() and event.video.count():
  40. <div class="row-fluid">
  41. <div id="pres" class="span6">
  42. % for media in event.presentation:
  43. <div align="right">
  44. <a class="media" href="${media.get_path}">Présentation</a>
  45. </div>
  46. <div class="center">
  47. <a href="${media.get_path}"> Télécharger la présentation (${media.mime_type})</a>
  48. </div>
  49. % endfor
  50. </div>
  51. <div id="video" class="span6">
  52. % for media in event.video:
  53. <div align="left">
  54. <video width="80%" poster="" controls="controls" preload="metadata">
  55. <source type="${media.mime_type}"
  56. src="${media.get_path}" />
  57. </video> <br />
  58. </div>
  59. <div class="center">
  60. <a href="${media.get_path}"> Télécharger la vidéo (${media.mime_type})</a>
  61. </div>
  62. % endfor
  63. </div>
  64. </div>
  65. % else:
  66. <div class="row-fluid">
  67. <div id="pres" class="span10 offset1">
  68. % for media in event.presentation:
  69. <div align="center">
  70. <a href="${media.get_path}"> Télécharger la présentation (${media.mime_type})</a><br>
  71. <a class="media" href="${media.get_path}">Présentation</a>
  72. </div>
  73. % endfor
  74. </div>
  75. <div id="video" class="span10 offset1">
  76. % for media in event.video:
  77. <div align="center">
  78. <a href="${media.get_path}"> Télécharger la vidéo (${media.mime_type})</a><br>
  79. <video width="90%" poster="" controls="controls" preload="metadata">
  80. <source type="${media.mime_type}"
  81. src="${media.get_path}" />
  82. </video> <br />
  83. </div>
  84. % endfor
  85. </div>
  86. </div>
  87. % endif
  88. <div class="row-fluid">
  89. <div class="span10 offset1">
  90. % for iterv in event.intervenants:
  91. <p>
  92. <div class="titleborderbox">
  93. Intervenant <a href="/user/${iterv.slug}"><strong>${iterv.prenom} ${iterv.nom}</strong>.</a>
  94. % if iterv.pseudo:
  95. (${iterv.pseudo})
  96. %endif
  97. </div>
  98. <div class="media borderbox">
  99. ${helpers.show_pictures(iterv)}
  100. <div class="media-body">
  101. % if iterv.bio:
  102. ${iterv.bio | n}
  103. % else:
  104. <i>Ce profil n'a pas été complété.</i>
  105. % endif
  106. </div>
  107. </div>
  108. <div class="footborderbox">
  109. % if iterv.website:
  110. <div style="float:right;">
  111. <a href="${iterv.website}">${iterv.website}</a>
  112. </div>
  113. % endif
  114. </div>
  115. </p>
  116. % endfor
  117. <div class="clearfix">&nbsp;</div>
  118. <p style="float:right;">Créé le ${event.created.strftime('%d %b %Y')}</p>
  119. <br/>
  120. <hr/>
  121. </div>
  122. </div>