Browse Subversion Repository
Contents of /trunk/app/views/pagelist/show.html.erb
Parent Directory
| Revision Log
| 1 |
<div id="pagelist"> |
| 2 |
<ul> |
| 3 |
<div class="padding"></div> |
| 4 |
<% p_count = 0 %> |
| 5 |
<% imagelist = [] %> |
| 6 |
<% @pagelist.each do |page| %> |
| 7 |
<li> |
| 8 |
<% id = "thumbnail#{p_count}" %> |
| 9 |
<% path = icon_path2(@vpath, location:page) %> |
| 10 |
<% moveto = viewer_path2(@vpath, location:page) %> |
| 11 |
<% imagelist << [id, page, path] %> |
| 12 |
|
| 13 |
<% if page == @location %> |
| 14 |
<% divclass = "thumb_div current_page" %> |
| 15 |
<% else %> |
| 16 |
<% divclass = "thumb_div" %> |
| 17 |
<% end %> |
| 18 |
<div class="<%= divclass %>" onClick="moveto('<%= j moveto %>');"> |
| 19 |
<%= image_tag("thumbnail_loading.gif", |
| 20 |
alt:nil, |
| 21 |
class:"thumbnail defer", |
| 22 |
id:id |
| 23 |
) %> |
| 24 |
</div> |
| 25 |
<div class="text_div"> |
| 26 |
<%= page %> |
| 27 |
</div> |
| 28 |
|
| 29 |
<% p_count += 1 %> |
| 30 |
</li> |
| 31 |
<% end %> |
| 32 |
<div class="padding"> |
| 33 |
<%= @pagelist.count.to_s(:delimited) + " " + "page".pluralize(@pagelist.count) %> |
| 34 |
</div> |
| 35 |
</ul> |
| 36 |
</div> |
| 37 |
|
| 38 |
<%= content_tag("div", id:"Y", data: { |
| 39 |
uatype:session[:ua_type], |
| 40 |
vpath:@vpath, |
| 41 |
location:@location, |
| 42 |
imagelist:imagelist |
| 43 |
}) {} %> |
| |