|
Revision 10, 0.9 kB
(checked in by falcon, 18 years ago)
|
|
Final styling tweaks, ordering, misc cleanup.
|
| Line | |
|---|
| 1 | <div id="MediaContainer"> |
|---|
| 2 | <% x = 0 %> |
|---|
| 3 | <% @medias = GalleryMedia.find(:all, :conditions => ["gallery_id = ?", @gallery.id]) %> |
|---|
| 4 | <% for @media in @medias %> |
|---|
| 5 | <div class="GalleryPic"> |
|---|
| 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 | </div> |
|---|
| 12 | <% x = x + 1 %> |
|---|
| 13 | <%= '<div class="divclear"></div>' if x % 4 == 0 %> |
|---|
| 14 | <% end %> |
|---|
| 15 | |
|---|
| 16 | <div class="divclear"></div> |
|---|
| 17 | |
|---|
| 18 | <div style="text-align: center; width: 100%; "> |
|---|
| 19 | <%= link_to_remote( |
|---|
| 20 | image_tag("media-arrow.png"), |
|---|
| 21 | :style => "width: 100%; text-align: center;", |
|---|
| 22 | :url => { :action => "hide_media", :params => { :id => @gallery.id } } )%> |
|---|
| 23 | </div> |
|---|
| 24 | </div> |
|---|
| 25 | |
|---|