From f985b9e98cebb41128ef772515fdd1c72dd6c6d2 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Feb 2009 00:08:24 +0100 Subject: added abstract --- app/views/layouts/application.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f9f7faa..90de391 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -72,6 +72,7 @@

<%= @page.title %>

<%= @page.published_at.to_s(:db) %>, gregoa


+

<%= @page.abstract %>

<%= @page.body %> -- cgit v1.3 From 7145a1fc43d9b357cfd6af2f189e22a94432ce19 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Feb 2009 00:08:43 +0100 Subject: gave paragraphs a margin within the content div --- public/stylesheets/styled.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/stylesheets/styled.css b/public/stylesheets/styled.css index 8af3299..6dd528a 100755 --- a/public/stylesheets/styled.css +++ b/public/stylesheets/styled.css @@ -182,7 +182,7 @@ hr.subtitle { color: #4d4d4d; font-family: Verdana; line-height: 1.8em; - margin: 0; + margin-bottom: 1.8em; padding: 0; } -- cgit v1.3 From 32c1c784358700a599e53cd86fb2c6f318ad0217 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Feb 2009 00:10:20 +0100 Subject: added updates.tbz to db/ which includes all old / current updates on www.ccc.de in utf-8. Also added the commands necessary to import those xml into the local db to the README in /doc --- db/updates.tbz | Bin 0 -> 8399251 bytes doc/README_FOR_APP | 13 ++++++++++++- lib/update_importer.rb | 7 ++----- 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 db/updates.tbz diff --git a/db/updates.tbz b/db/updates.tbz new file mode 100644 index 0000000..928c3e2 Binary files /dev/null and b/db/updates.tbz differ diff --git a/doc/README_FOR_APP b/doc/README_FOR_APP index 4a84114..9b76357 100644 --- a/doc/README_FOR_APP +++ b/doc/README_FOR_APP @@ -17,4 +17,15 @@ git checkout --track -b poc1 origin/poc1 git submodule init -git submodule update \ No newline at end of file +git submodule update + +=============================================================================== + +Import all Updates from the old ccc.de site: + +extract db/updates.tbz + +start a script/console and execute the following commands: + +i = UpdateImporter.new("#{RAILS_ROOT}/db/updates") +i.import_xml \ No newline at end of file diff --git a/lib/update_importer.rb b/lib/update_importer.rb index 4d4e1d5..af7064c 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb @@ -80,6 +80,7 @@ class UpdateImporter if node.pages.empty? node.pages.create!( :title => xhtml.elements['title'].get_text.to_s, + :abstract => xhtml.elements['abstract'].get_text.to_s, :body => body, :published_at => date ) @@ -132,8 +133,4 @@ class UpdateImporter element end -end - -i = UpdateImporter.new ('/Users/hukl/Desktop/updates') -i.import_xml - +end \ No newline at end of file -- cgit v1.3