diff options
Diffstat (limited to 'jm2l/templates/Profil/Profil.mako')
-rw-r--r-- | jm2l/templates/Profil/Profil.mako | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/jm2l/templates/Profil/Profil.mako b/jm2l/templates/Profil/Profil.mako index 4a20282..f8dc229 100644 --- a/jm2l/templates/Profil/Profil.mako +++ b/jm2l/templates/Profil/Profil.mako @@ -1,40 +1,9 @@ <%namespace name="Modals" file="jm2l:templates/modals.mako"/> <%namespace name="helpers" file="jm2l:templates/helpers.mako"/> <%def name="profil_wrapper(uprofil, profil_form)"> - <div class="profile-icon" style="float:right;height:250px;width:250px;"> - <% photos = uprofil.PhotosLinks %> - <div id="MyPictureCarousel" class="carousel slide"> - <div style="text-align: center;line-height:20px;"> - <a data-target="#AjaxModal" Myhref="/2015/modal/Password/1" role="button" handle="modal">Changer mon mot de passe</a> - </div> - % if len(photos)>1: - <!-- Carousel nav --> - <a class="Ucarousel-control left" href="#MyPictureCarousel" data-slide="prev">‹</a> - <a class="Ucarousel-control right" href="#MyPictureCarousel" data-slide="next">›</a> - % endif - <div style="text-align: center;line-height:20px;"> - <a data-target="#AjaxModal" Myhref="/2015/modal/UserPicture/${uprofil.uid}" handle="modal">Changer ma photo</a> - </div> - <!-- Carousel items --> - <div class="carousel-inner" style="height: 220px;"> - % if len(photos): - % for num, link in enumerate(photos): - <div class="${['','active '][num==0]}item" id="UserPic${num}"> - <div style="margin:auto;"> - <img src="${link}" class="img-polaroid" style="max-height:205px;max-width:235px;" alt="Photo ${uprofil.slug}" /> - </div> - </div> - % endfor - % else: - <div class="active item" id="UserPic0"> - <div style="margin:auto;width:170px;"> - <img src="/img/default-user.png" class="img-polaroid" alt="Photo ${uprofil.slug}" style="max-height:205px;" /> - </div> - </div> - % endif - </div> - </div> - </div> +<div id="Photos"> + ${helpers.show_my_pictures(uprofil)} +</div> <a href="/sign/jm2l/${uprofil.my_hash}">Mon lien</a> <h3>${profil_form.prenom.data} ${profil_form.nom.data}</h3> |