root/app/views/engineering/_show_media.html.erb @ 10

Revision 10, 0.9 kB (checked in by falcon, 17 years ago)

Final styling tweaks, ordering, misc cleanup.

RevLine 
[10]1        <div id="MediaContainer">
[4]2                <% x = 0 %>
3                <% @medias = GalleryMedia.find(:all, :conditions => ["gallery_id = ?", @gallery.id]) %>
4                <% for @media in @medias %>
[10]5                <div class="GalleryEngineeringPic">
[4]6                        <a href="<%= url_for_file_column("media", "medianame", "maximum") %>" class="noHighlight"
7                                rel="lightbox[GalleryMedia]"
8                                 title="<%= @media.sTitle.to_s + "<br/><br/>" + @media.tDescription.to_s if (@media.sTitle != nil  && @media.tDescription != nil)%>">
9                                        <img src="<%= url_for_file_column("media", "medianame", "thumb") %>"  />
10                         </a>
[10]11                </div>
[4]12                <% x = x + 1 %>
[10]13                <%= '<div class="divclear"></div>' if x % 4 == 0 %>
[4]14                <% end %>
[10]15               
16                <div class="divclear"></div>
17
18        <div style="text-align: center; width: 100%; ">
[4]19                                <%= link_to_remote(
[10]20                                image_tag("media-arrow.png"),
[4]21                                :style => "width: 100%; text-align: center;",
22                                :url => { :action => "hide_media", :params => { :id => @gallery.id } } )%>
[10]23        </div>
24        </div>
25       
Note: See TracBrowser for help on using the browser.