Le repo des sources pour le site web des JM2L
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

97 Zeilen
2.9 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}" 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. </div>
  38. % if 0:
  39. % for media in entity.PhotosLinks:
  40. <strong>Présentation</strong>:${media.filename} (${media.mime_type})
  41. % endfor
  42. <hr/>
  43. % for media in entity.video:
  44. <div style="width:480px;margin:auto;">
  45. <video width="480" poster="" controls="controls" preload="metadata">
  46. <source type="${media.mime_type}"
  47. src="${media.filename}">
  48. </source>
  49. </video> <br />
  50. <strong>Vidéo</strong>:${media.filename} (${media.mime_type})
  51. </div>
  52. % endfor
  53. % endif
  54. % for iterv in entity.members:
  55. <p>
  56. <div class="titleborderbox">
  57. Intervenant <strong><a href="/user/${iterv.slug}">${iterv.prenom} ${iterv.nom}</a></strong>.
  58. % if iterv.pseudo:
  59. (${iterv.pseudo})
  60. %endif
  61. </div>
  62. <div class="media borderbox">
  63. ${helpers.show_pictures(iterv)}
  64. <div class="media-body">
  65. <ul>
  66. % for i in filter(lambda x:x.user_uid==iterv.uid and x.tiers_uid==entity.uid, entity.membership):
  67. <li>${i.year_uid} ${i.role}</li>
  68. % endfor
  69. </ul>
  70. % if iterv.bio:
  71. ${iterv.bio | n}
  72. % else:
  73. <i>Ce profil n'a pas été complété.</i>
  74. % endif
  75. </div>
  76. </div>
  77. <div class="footborderbox">
  78. % if iterv.website:
  79. <div style="float:right;">
  80. <a href="http://${iterv.website}">${iterv.website}</a>
  81. </div>
  82. % endif
  83. </div>
  84. </p>
  85. % endfor
  86. <p style="float:right;">Créé le ${entity.created.strftime('%d %b %Y').decode('utf-8')}</p>
  87. <br/>
  88. <hr/>
  89. </div>
  90. </div>