Le repo des sources pour le site web des JM2L
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

123 linhas
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').decode('utf-8')} -
  17. ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
  18. </div>
  19. % if event.for_year==2015 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>Cette évenement 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. % 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. <div class="center">
  46. <a href="${media.get_path}"> Télécharger la présentation (${media.mime_type})</a>
  47. </div>
  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. <div class="center">
  59. <a href="${media.get_path}"> Télécharger la vidéo (${media.mime_type})</a>
  60. </div>
  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>