77 lines
3.1 KiB
Plaintext
77 lines
3.1 KiB
Plaintext
|
<% data = action_data
|
||
|
@images = data["images"]
|
||
|
@custom_album = data["custom_album"]
|
||
|
@image = data["image"]
|
||
|
@back_link = data["back_to_custom_albums"]
|
||
|
@wall_images = data["wall_images"]
|
||
|
%>
|
||
|
<script type="text/javascript">
|
||
|
var json_image_data = <%= @wall_images.to_json.html_safe %>;
|
||
|
</script>
|
||
|
<%= stylesheet_link_tag "custom_gallery_frontend" %>
|
||
|
|
||
|
<div id="orbit_custom_gallery" class="rg">
|
||
|
<div class="rgbody">
|
||
|
<div id="imgholder">
|
||
|
<div class="rslide" style="position:relative; width:100%;">
|
||
|
<div class="rslideinside"><div id="loading" style="display:none;"></div>
|
||
|
<div class="comp" id='main_pic' data-content='<%= @image.custom_album_id %>'><a href="" id="nextpic" class="navN" title="下一張" ><img src="<%= @image.file.theater.url %>" alt="<%= @image.description.nil? || @image.description == "" ? "custom_gallery image" : @image.description %>" /></a></div>
|
||
|
<div class="rslidenav">
|
||
|
<a href="" class="navP" title="上一張" >Prev</a>
|
||
|
<a href="" class="navN" title="下一張" >Next</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="slidelist">
|
||
|
<ul id='custom_galleryimagelist' style="display:none;">
|
||
|
<% @images.each_with_index do |image,i| %>
|
||
|
<li for="<%= i %>"><a href="<%= image.id %>" class="list_element" data-content="<%= image.file.theater.url %>" ><img src="<%= image.file.thumb.url %>" alt="<%= image.description.nil? || image.description == "" ? "custom_gallery image" : image.description %>" /></a></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="slidectrl">
|
||
|
<a href="" class="togglescreen" title="切換全螢幕" >Screen</a>
|
||
|
<a href="" class="togglelist" title="顯示照片清單" >List</a>
|
||
|
<a href="" class="browserfullscreen" title="顯示照片清單" >F</a>
|
||
|
<div class="slideinfo">
|
||
|
<span class="info"><%= @image.description %></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- tag part -->
|
||
|
<div class="taglist">
|
||
|
<h3 class="taglist_title"><%= t('custom_gallery.photo_tag') %></h3>
|
||
|
<ul>
|
||
|
<% @image.tags.each do |tag| %>
|
||
|
<li><%= tag.name %></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!-- tag end -->
|
||
|
<div class="form-actions form-fixed pagination-right rghead">
|
||
|
<div class="rgfn">
|
||
|
<a class="bt-back rgbt" title="<%= I18n.t("custom_gallery.back_to_custom_albums") %>" href="<%= @back_link %>"><i class="icon-arrow-left"></i> <%= I18n.t("custom_gallery.back_to_custom_albums") %></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<%# content_for :page_specific_javascript do %>
|
||
|
<%= javascript_include_tag "custom_galleryAPI_frontend" %>
|
||
|
<%#= javascript_include_tag "jquery.tinyscrollbar" %>
|
||
|
<%= javascript_include_tag "rss" %>
|
||
|
<%# end %>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
custom_galleryAPI.prototype.locale = "<%= I18n.locale %>";
|
||
|
var custom_gallery = new custom_galleryAPI();
|
||
|
custom_gallery.initialize();
|
||
|
custom_gallery.loadTheater("<%= params[:id] %>","<%= params[:image_id] %>");
|
||
|
$("#orbit_custom_gallery a").on("click",function(){return false;})
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|