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.
 
 
 
 
 

112 lines
3.6 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.slug_entity_type}/${entity.slug}/edit">Editer</a>
  18. % endif
  19. % if request.user and (request.user.Staff or request.user in entity.members):
  20. <a class="btn btn-danger btn-mini pull-right" onclick="return confirm_click();" href="${request.route_path('delete_entity', action='delete_entity', entity_id=entity.uid)}">
  21. <i class="icon-remove icon-white"></i> Supprimer cette entit&eacute;e
  22. </a>
  23. % endif
  24. <div clear='both'></div>
  25. <div>
  26. <a style="float:right;" href="/entities">Liste des entités</a>
  27. <h3 style="line-height:30px;">${entity.name}</h3>
  28. </div>
  29. <div class="borderbox">
  30. % if entity.PhotosLinks:
  31. <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
  32. % for img_path in entity.PhotosLinks:
  33. <img src="${img_path}" style="max-height:205px;max-width:335px;" alt="logo" />
  34. % endfor
  35. </div>
  36. % endif
  37. % if entity.description :
  38. ${entity.description | n}
  39. % else:
  40. <p>Cette entité n'a pas de description.</p>
  41. % endif
  42. % if entity.DocLinks:
  43. ${helpers.medias(entity)}
  44. % endif
  45. </div>
  46. <div class="footborderbox">
  47. % if entity.website:
  48. <div style="float:right;">
  49. <a href="${entity.website}">${entity.website}</a>
  50. </div>
  51. % endif
  52. </div>
  53. % if 0:
  54. % for media in entity.PhotosLinks:
  55. <strong>Présentation</strong>:${media.filename} (${media.mime_type})
  56. % endfor
  57. <hr/>
  58. % for media in entity.video:
  59. <div style="width:480px;margin:auto;">
  60. <video width="480" poster="" controls="controls" preload="metadata">
  61. <source type="${media.mime_type}"
  62. src="${media.filename}">
  63. </source>
  64. </video> <br />
  65. <strong>Vidéo</strong>:${media.filename} (${media.mime_type})
  66. </div>
  67. % endfor
  68. % endif
  69. % for iterv in entity.members[::-1]:
  70. <p>
  71. <div class="titleborderbox">
  72. Intervenant <strong><a href="/user/${iterv.slug}">${iterv.prenom} ${iterv.nom}</a></strong>.
  73. % if iterv.pseudo:
  74. (${iterv.pseudo})
  75. %endif
  76. </div>
  77. <div class="media borderbox">
  78. ${helpers.show_pictures(iterv)}
  79. <div class="media-body">
  80. <ul>
  81. % for i in filter(lambda x:x.user_uid==iterv.uid and x.tiers_uid==entity.uid, entity.membership):
  82. <li>${i.year_uid} ${i.role}</li>
  83. % endfor
  84. </ul>
  85. % if iterv.bio:
  86. ${iterv.bio | n}
  87. % else:
  88. <i>Ce profil n'a pas été complété.</i>
  89. % endif
  90. </div>
  91. </div>
  92. <div class="footborderbox">
  93. % if iterv.website:
  94. <div style="float:right;">
  95. <a href="${iterv.website}">${iterv.website}</a>
  96. </div>
  97. % endif
  98. </div>
  99. </p>
  100. % endfor
  101. <br/><br/>
  102. <p style="float:right;">Créé le ${entity.created.strftime('%d %b %Y')}</p>
  103. <br/>
  104. <hr/>
  105. </div>
  106. </div>