Revision 3, 0.6 kB
(checked in by falcon, 17 years ago)
|
misc small updates
|
Rev | Line | |
---|
[3] | 1 | <h1>Gallery</h1> |
---|
[1] | 2 | |
---|
[3] | 3 | <p>Title: |
---|
| 4 | <%= @gallery.sTitle %> |
---|
| 5 | <br/> |
---|
| 6 | Description: |
---|
| 7 | <%= @gallery.tDescription %> |
---|
| 8 | <br/> |
---|
| 9 | Type: |
---|
| 10 | <%= @gallery.sTyle %> |
---|
| 11 | </p> |
---|
| 12 | |
---|
| 13 | <p>Files: |
---|
| 14 | <% @files = GalleryFiles.find(:all, :conditions => ["gallery_id = ?", @gallery.id]) %> |
---|
| 15 | <% for file in @files %> |
---|
| 16 | <%= file.filename %><br/> |
---|
| 17 | <% end %> |
---|
| 18 | </p> |
---|
| 19 | |
---|
| 20 | <p>Media: |
---|
| 21 | <% @medias = GalleryMedia.find(:all, :conditions => ["gallery_id = ?", @gallery.id]) %> |
---|
| 22 | <% for media in @medias %> |
---|
| 23 | <%= media.medianame %><br/> |
---|
| 24 | <% end %> |
---|
| 25 | </p> |
---|
| 26 | |
---|
[1] | 27 | <%= link_to 'Edit', edit_gallery_path(@gallery) %> | |
---|
| 28 | <%= link_to 'Back', galleries_path %> |
---|