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.
 
 
 
 
 

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