diff options
| author | hukl <contact@smyck.org> | 2009-09-01 11:49:56 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-01 11:49:56 +0200 |
| commit | 4aa4a0e4a44735d22ac7f8fd1b12b19699af087b (patch) | |
| tree | 34c78c00617a504c7d713540fb349fd9af1d0e23 /app/views | |
| parent | c95126d6b6abd6302a07fbb17cd9ad0181e048c7 (diff) | |
added expirimental routing for image galeries
added plain image gallery template
refinements
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/custom/page_templates/public/gallery.html.erb | 5 | ||||
| -rw-r--r-- | app/views/custom/page_templates/public/standard_template.html.erb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/custom/page_templates/public/gallery.html.erb b/app/views/custom/page_templates/public/gallery.html.erb new file mode 100644 index 0000000..7511db3 --- /dev/null +++ b/app/views/custom/page_templates/public/gallery.html.erb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | <ul> | ||
| 2 | <% @images.each do |image| %> | ||
| 3 | <li><%= image_tag image.upload.url %></li> | ||
| 4 | <% end %> | ||
| 5 | </ul> \ No newline at end of file | ||
diff --git a/app/views/custom/page_templates/public/standard_template.html.erb b/app/views/custom/page_templates/public/standard_template.html.erb index 1822491..6fe7176 100644 --- a/app/views/custom/page_templates/public/standard_template.html.erb +++ b/app/views/custom/page_templates/public/standard_template.html.erb | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | <h2><%= @page.title %></h2> | 2 | <h2><%= @page.title %></h2> |
| 3 | <h3><%= date_for_page @page %>, <%= @page.user.try(:login) %></h3> | 3 | <h3><%= date_for_page @page %>, <%= @page.user.try(:login) %></h3> |
| 4 | <hr class="subtitle" /> | 4 | <hr class="subtitle" /> |
| 5 | <p><%= headline_image %></p> | ||
| 5 | <p><em><%= @page.abstract %></em></p> | 6 | <p><em><%= @page.abstract %></em></p> |
| 6 | <%= aggregate?(@page.body) %> | 7 | <%= aggregate?(@page.body) %> |
| 7 | </div> | 8 | </div> |
