|
Revision 10, 1.1 kB
(checked in by falcon, 17 years ago)
|
|
Final styling tweaks, ordering, misc cleanup.
|
| 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 style="margin-left: 20px; margin-top: 0px;"><%= @gallery.tDescription %></p> |
|---|
| 5 | |
|---|
| 6 | <p><span style="margin: 0px; padding: 0px;"><%= will_paginate @medias %></span></p> |
|---|
| 7 | |
|---|
| 8 | <% x = 0 %> |
|---|
| 9 | <% for @media in @medias %> |
|---|
| 10 | <div class="GalleryArtworkPic"> |
|---|
| 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", "medium") %>" /> |
|---|
| 15 | </a> |
|---|
| 16 | </div> |
|---|
| 17 | <% x = x + 1 %> |
|---|
| 18 | <%= '<div class="divclear"></div>' if x % 4 == 0 %> |
|---|
| 19 | <% end %> |
|---|
| 20 | |
|---|
| 21 | <div class="divclear"></div> |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | <p style="text-align: right; width: 565px; margin-top: 5px;"><span style="margin: 0px; padding: 0px;"><%= will_paginate @medias %></span></p> |
|---|
| 25 | </div> |
|---|
| 26 | <% if logged_in? %> |
|---|
| 27 | <%= link_to 'Edit', edit_gallery_path(@gallery) %> |
|---|
| 28 | <% end %> |
|---|
| 29 | |
|---|
| 30 | |
|---|