Преглед на файлове

fix carousel for users

master
tr4ck3ur des JM2L преди 9 години
родител
ревизия
127c45763e
променени са 1 файла, в които са добавени 37 реда и са изтрити 3 реда
  1. +37
    -3
      jm2l/templates/helpers.mako

+ 37
- 3
jm2l/templates/helpers.mako Целия файл

@@ -485,11 +485,11 @@ TabJs = {'select':[], 'desc':[]}
<%def name="show_pictures(uprofil)"> \
<div class="profile-icon pull-right">
<% photos = uprofil.PhotosLinks %>
<div id="MyPictureCarousel" class="carousel slide">
<div id="MyPictureCarousel-${uprofil.uid}" class="carousel slide">
% if len(photos)>1:
<!-- Carousel nav -->
<a class="Ucarousel-control left" href="#MyPictureCarousel" data-slide="prev">&lsaquo;</a>
<a class="Ucarousel-control right" href="#MyPictureCarousel" data-slide="next">&rsaquo;</a>
<a class="Ucarousel-control left" href="#MyPictureCarousel-${uprofil.uid}" data-slide="prev">&lsaquo;</a>
<a class="Ucarousel-control right" href="#MyPictureCarousel-${uprofil.uid}" data-slide="next">&rsaquo;</a>
% endif
<!-- Carousel items -->
<div class="carousel-inner" style="height: 220px;">
@@ -551,6 +551,39 @@ TabJs = {'select':[], 'desc':[]}
</div>
</div>
</%def> \
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Wrapper pour les photos de l'année
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<%def name="show_photos(photos)"> \
<div class="profile-icon pull-right">
<div id="PhotoCarousel" class="carousel slide">
% if photos and len(photos)>1:
<!-- Carousel nav -->
<a class="Ucarousel-control left" href="#PhotoCarousel" data-slide="prev">&lsaquo;</a>
<a class="Ucarousel-control right" href="#PhotoCarousel" data-slide="next">&rsaquo;</a>
% endif
<!-- Carousel items -->
<div class="carousel-inner" style="height: 220px;">
% if photos and 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-heights:205px;max-widths:235px;" alt="Photo" />
</div>
</div>
% endfor
% else:
## <div class="active item" id="UserPic0">
## <div style="margin:auto;widths:170px;">
## <img src="/img/default-user.png" class="img-polaroid" alt="Photo ${uprofil.nom} ${uprofil.prenom}" style="max-heights:205px;" />
## </div>
## </div>
% endif
</div>
</div>
</div>
</%def> \

## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Wrapper pour les échanges utilisateurs
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -701,3 +734,4 @@ TabJs = {'select':[], 'desc':[]}
</table>
</div>
</%def> \


Зареждане…
Отказ
Запис