Le repo des sources pour le site web des JM2L
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

85 lignes
2.6 KiB

  1. <%inherit file="jm2l:templates/layout.mako"/>
  2. <% The_entity_type = entity.get_entity_type %>
  3. <strong>${The_entity_type.entity_type}</strong>
  4. % if The_entity_type.entity_subtype!=The_entity_type.entity_type:
  5. ${The_entity_type.entity_subtype}
  6. % endif
  7. <div class="borderboxtime">
  8. ${The_entity_type.entity_subtype}
  9. </div>
  10. %if entity.tiers_id:
  11. <a href="http://jm2l.linux-azur.org/node/${entity.tiers_id}">Link</a> -
  12. %endif
  13. <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">Editer</a>
  14. <div clear='both'></div>
  15. <div>
  16. <a style="float:right;" href="/entities">Liste des entités</a>
  17. <h3 style="line-height:30px;">${entity.name}</h3>
  18. </div>
  19. <div class="borderbox">
  20. % if entity.PhotosLinks:
  21. <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
  22. % for img_path in entity.PhotosLinks:
  23. <img src="${img_path}" alt="logo" />
  24. % endfor
  25. </div>
  26. % endif
  27. % if entity.description :
  28. ${entity.description | n}
  29. % else:
  30. <p>Cette entité n'a pas de description.</p>
  31. % endif
  32. </div>
  33. % if 0:
  34. % for media in entity.PhotosLinks:
  35. <strong>Présentation</strong>:${media.filename} (${media.mime_type})
  36. % endfor
  37. <hr/>
  38. % for media in entity.video:
  39. <div style="width:480px;margin:auto;">
  40. <video width="480" poster="" controls="controls" preload="metadata">
  41. <source type="${media.mime_type}"
  42. src="${media.filename}">
  43. </source>
  44. </video> <br />
  45. <strong>Vidéo</strong>:${media.filename} (${media.mime_type})
  46. </div>
  47. % endfor
  48. % endif
  49. % for iterv in entity.members:
  50. <p>
  51. <div class="titleborderbox">
  52. Intervenant <strong><a href="/user/${iterv.slug}">${iterv.prenom} ${iterv.nom}</a></strong>.
  53. % if iterv.pseudo:
  54. (${iterv.pseudo})
  55. %endif
  56. </div>
  57. <div class="borderbox">
  58. % if iterv.PhotosLinks:
  59. <div style="float:right;padding:5px;border: 1px solid #eee;background-color:white;">
  60. % for img_path in iterv.PhotosLinks:
  61. <img src="${img_path}" alt="logo" />
  62. % endfor
  63. </div>
  64. % endif
  65. % if iterv.bio:
  66. ${iterv.bio | n}
  67. %endif
  68. % if iterv.website:
  69. <div style="float:right;">
  70. <a href="http://${iterv.website}">${iterv.website}</a>
  71. </div>
  72. %endif
  73. </div>
  74. </p>
  75. % endfor
  76. <p style="float:right;">Créé le ${entity.created.strftime('%d %b %Y').decode('utf-8')}</p>
  77. <br/>
  78. <hr/>