root/app/views/artwork/_show_artwork.html.erb~ @ 8

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

Tweaks and upgrades, routes/paginate/etc

Line 
1<div id="<%= "Gallery_" + @gallery.id.to_s %>" name="<%= "Gallery_" + @gallery.id.to_s %>" class="Gallery">
2        <h1><%= @gallery.sTitle %></h1>
3
4        <p><%= @gallery.tDescription %></p>
5
6        <p><span style="margin: 0px; padding: 0px;"><%= will_paginate @medias %></span></p>
7
8        <p>
9                <span>
10                <% for @media in @medias %>
11                        <a href="<%= url_for_file_column("media", "medianame", "maximum") %>" class="noHighlight"
12                                rel="lightbox[GalleryMedia]"
13                                 title="<%= @media.sTitle.to_s + "<br/><br/>" + @media.tDescription.to_s if (@media.sTitle != nil  && @media.tDescription != nil)%>">
14                                        <img src="<%= url_for_file_column("media", "medianame", "thumb") %>"  />
15                         </a>
16                <% end %>
17                </span>
18        </p>
19       
20        <p style="text-align: right; width: 550px; margin-top: 5px;"><span style="margin: 0px;  padding: 0px;"><%= will_paginate @medias %></span></p>
21</div>
22<% if logged_in? %>     
23        <%= link_to 'Edit', edit_gallery_path(@gallery) %>
24<% end %>
25
26
Note: See TracBrowser for help on using the browser.