diff options
| author | hukl <contact@smyck.org> | 2009-09-03 22:26:21 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-03 22:26:21 +0200 |
| commit | eb99d628c30482d66ec221da38b9877d1fe3d574 (patch) | |
| tree | 388082808d2de5f90a4f6caf25ea42e2ca1a9b41 /app | |
| parent | 16e5ca741cf4935c1ebed64828b1f2f2472b06ee (diff) | |
took almost an hour to find the reason for the invalid html! anyway - fixed now!
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/content_helper.rb | 2 | ||||
| -rw-r--r-- | app/views/custom/page_templates/public/no_date_and_author.html.erb | 2 | ||||
| -rw-r--r-- | app/views/custom/page_templates/public/standard_template.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 8b16462..11cfbc7 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -63,7 +63,7 @@ module ContentHelper | |||
| 63 | options = {} | 63 | options = {} |
| 64 | 64 | ||
| 65 | begin | 65 | begin |
| 66 | if content =~ /<aggregate([^<>]*)>/ | 66 | if content =~ /<p><aggregate([^<>]*)><\/p>/ |
| 67 | tag = $~.to_s | 67 | tag = $~.to_s |
| 68 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) | 68 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) |
| 69 | 69 | ||
diff --git a/app/views/custom/page_templates/public/no_date_and_author.html.erb b/app/views/custom/page_templates/public/no_date_and_author.html.erb index 32eb64a..27cc1c0 100644 --- a/app/views/custom/page_templates/public/no_date_and_author.html.erb +++ b/app/views/custom/page_templates/public/no_date_and_author.html.erb | |||
| @@ -6,4 +6,4 @@ | |||
| 6 | <%= aggregate?(@page.body) %> | 6 | <%= aggregate?(@page.body) %> |
| 7 | </div> | 7 | </div> |
| 8 | 8 | ||
| 9 | <p><%= will_paginate(@content_collection) if @content_collection %></p> \ No newline at end of file | 9 | <%= will_paginate(@content_collection) if @content_collection %> \ 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 d321472..7893fdd 100644 --- a/app/views/custom/page_templates/public/standard_template.html.erb +++ b/app/views/custom/page_templates/public/standard_template.html.erb | |||
| @@ -7,4 +7,4 @@ | |||
| 7 | <%= aggregate?(@page.body) %> | 7 | <%= aggregate?(@page.body) %> |
| 8 | </div> | 8 | </div> |
| 9 | 9 | ||
| 10 | <p><%= will_paginate(@content_collection) if @content_collection %></p> \ No newline at end of file | 10 | <%= will_paginate(@content_collection) if @content_collection %> \ No newline at end of file |
