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.
 
 
 
 
 

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