diff options
| -rw-r--r-- | app/views/layouts/application.html.erb | 1 | ||||
| -rw-r--r-- | db/updates.tbz | bin | 0 -> 8399251 bytes | |||
| -rw-r--r-- | doc/README_FOR_APP | 13 | ||||
| -rw-r--r-- | lib/update_importer.rb | 7 | ||||
| -rwxr-xr-x | public/stylesheets/styled.css | 2 |
5 files changed, 16 insertions, 7 deletions
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 @@ | |||
| 72 | <h2><a href="a_barriere.html"><%= @page.title %></a></h2> | 72 | <h2><a href="a_barriere.html"><%= @page.title %></a></h2> |
| 73 | <h3><%= @page.published_at.to_s(:db) %>, gregoa</h3> | 73 | <h3><%= @page.published_at.to_s(:db) %>, gregoa</h3> |
| 74 | <hr class="subtitle" /> | 74 | <hr class="subtitle" /> |
| 75 | <p><em><%= @page.abstract %></em></p> | ||
| 75 | <%= @page.body %> | 76 | <%= @page.body %> |
| 76 | </div> | 77 | </div> |
| 77 | </div> | 78 | </div> |
diff --git a/db/updates.tbz b/db/updates.tbz new file mode 100644 index 0000000..928c3e2 --- /dev/null +++ b/db/updates.tbz | |||
| Binary files 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 | |||
| 17 | 17 | ||
| 18 | git submodule init | 18 | git submodule init |
| 19 | 19 | ||
| 20 | git submodule update \ No newline at end of file | 20 | git submodule update |
| 21 | |||
| 22 | =============================================================================== | ||
| 23 | |||
| 24 | Import all Updates from the old ccc.de site: | ||
| 25 | |||
| 26 | extract db/updates.tbz | ||
| 27 | |||
| 28 | start a script/console and execute the following commands: | ||
| 29 | |||
| 30 | i = UpdateImporter.new("#{RAILS_ROOT}/db/updates") | ||
| 31 | 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 | |||
| 80 | if node.pages.empty? | 80 | if node.pages.empty? |
| 81 | node.pages.create!( | 81 | node.pages.create!( |
| 82 | :title => xhtml.elements['title'].get_text.to_s, | 82 | :title => xhtml.elements['title'].get_text.to_s, |
| 83 | :abstract => xhtml.elements['abstract'].get_text.to_s, | ||
| 83 | :body => body, | 84 | :body => body, |
| 84 | :published_at => date | 85 | :published_at => date |
| 85 | ) | 86 | ) |
| @@ -132,8 +133,4 @@ class UpdateImporter | |||
| 132 | element | 133 | element |
| 133 | end | 134 | end |
| 134 | 135 | ||
| 135 | end | 136 | end \ No newline at end of file |
| 136 | |||
| 137 | i = UpdateImporter.new ('/Users/hukl/Desktop/updates') | ||
| 138 | i.import_xml | ||
| 139 | |||
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 { | |||
| 182 | color: #4d4d4d; | 182 | color: #4d4d4d; |
| 183 | font-family: Verdana; | 183 | font-family: Verdana; |
| 184 | line-height: 1.8em; | 184 | line-height: 1.8em; |
| 185 | margin: 0; | 185 | margin-bottom: 1.8em; |
| 186 | padding: 0; | 186 | padding: 0; |
| 187 | } | 187 | } |
| 188 | 188 | ||
