diff options
author | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-15 18:10:48 +0100 |
---|---|---|
committer | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-15 18:10:48 +0100 |
commit | a9318f7fd31eed8fa14d08a92277ba795efbb36c (patch) | |
tree | e7d4c1a2190b1b5eb77783141831a7198c140085 /jm2l/templates/Profil/Profil.mako | |
parent | 6f97a3895e862c3ba4d71a7da409b9d20c50336c (diff) | |
download | jm2l-a9318f7fd31eed8fa14d08a92277ba795efbb36c.tar.gz jm2l-a9318f7fd31eed8fa14d08a92277ba795efbb36c.tar.bz2 jm2l-a9318f7fd31eed8fa14d08a92277ba795efbb36c.tar.xz jm2l-a9318f7fd31eed8fa14d08a92277ba795efbb36c.zip |
Corrigé les images
Ajouté la gestion de password
Corrigé le slug des users à la création
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> |