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

Revision 4, 0.8 kB (checked in by falcon, 17 years ago)

75% complete. ajax support for engineering and galleries. galleries add/edit. artwork and engineering layouts.

RevLine 
[4]1        <p>
2                <% x = 0 %>
3                <span>
4                <% @medias = GalleryMedia.find(:all, :conditions => ["gallery_id = ?", @gallery.id]) %>
5                <% for @media in @medias %>
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>
11                <% x = x + 1 %>
12                <%= "</span><span>" if x % 4 == 0 %>
13                <% end %>
14                </span>
15        </p>
16       
17        <p style="background-color:  #253535; text-align: center; width: 100%; ">
18                                <%= link_to_remote(
19                                "up-arrow-graphic",
20                                :style => "width: 100%; text-align: center;",
21                                :url => { :action => "hide_media", :params => { :id => @gallery.id } } )%>
22        </p>
Note: See TracBrowser for help on using the browser.