odania_core 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/odania/menu_controller.rb +2 -0
  3. data/app/views/odania/common/internal_server_error.html.erb +3 -0
  4. data/config/locales/de.yml +1 -0
  5. data/config/locales/en.yml +1 -0
  6. data/lib/odania/filter.rb +1 -1
  7. data/lib/odania_core/version.rb +1 -1
  8. data/test/dummy/log/test.log +24210 -0
  9. data/test/dummy/tmp/cache/assets/test/sprockets/050eb77fb84c3d5b11b2c335ffc2066e +0 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/1162767bf7dd2fa8a0729a9b74c5d262 +0 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/13ebf9a23c7bcd470cced5e3c026b2c6 +0 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/1aabd31da5b9fb20f92ccb6aab02693e +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/31bf03ea315906104e90565c1755f93b +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/51ceb5283b390c7096cb51c446afff14 +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/542e319febac79296c8eed4cba6b1278 +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/5546cd8a339e2685f326f6e3aa7137d1 +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/5896f3bd71adf47dbc97c8b096de89e5 +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/64ae089382b7b1071cb7f81859a2c7e5 +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/6a2d6a50e71f610e9622c7b00b89d9fb +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/6ef2e646e5df37d1a2b8eb4c95227732 +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/70a571034fb5b24b25ea62e490854fb5 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/80c0164f49a2ca6316e174f9cd881828 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/8a390d01d219afed891a2ccf558900f9 +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/a6253055c7af3ad275675a529405f9dc +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/a934f78fb9f28b5be1ffaf3ad9c7d679 +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/aee29c6618c315a907c84a7244f9a2d5 +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/b568cecbb1f2095238d9752c06eaad12 +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/b94fc2358ebd35d7593676da3994abf7 +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/bb77c7d971ba740bb9555b56a5088922 +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/bc22e41c8d34b097603e2810ff80b480 +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/c7fadd1caf1cf9bb073f2d4084867691 +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/cadf3a38b8b2f76f9ae9c40702c51e94 +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/d555fdabd9f9917902c297ff3eda35d0 +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/d7607942ea55ac942ea171ffc90e3dd5 +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/e346e8a32395f2f19c4d78d375b1ba43 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/e5421896b8e264a2b7ab1292b19bed91 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/e57d372b6f0705bbce9d24c6c2eea1b1 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/e5c003ee1e62f83c11e2fd7e05aae7a7 +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/ee73b2f7e7a7da30173f3b379a9f56b5 +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/f37943f3484e4587c579b17f68a6cfd3 +0 -0
  41. data/test/unit/filter_test.rb +7 -2
  42. metadata +53 -2
  43. data/db/migrate/20140425202800_add_site_id_to_user.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e89c0f4dc03ebb43f4c90086e465a1d6f3054331
4
- data.tar.gz: 800f98632a21f7f5b582d505303b6dc7a2169827
3
+ metadata.gz: 61ed856180e939491b2083a9b5e74fb1b1bd7798
4
+ data.tar.gz: 7bd04630e902690fb8ab84a45732037c099f8bc9
5
5
  SHA512:
6
- metadata.gz: 40bc3e3ec7564d79982c95630b7199620fbbfde93f6a3678196251d62df4c23ae4ed956f3cf37db4feb54d885c5fbb649c3e2cb48f322f3904d0fcb3c42a38f4
7
- data.tar.gz: 841e266073e9725022d9935b792a0ca21233ce1659568118b47a682526f7c4a17cc409cf31b7867fd72b42b6c7e0090423f12f1e01dcf49ac279863d9361ca27
6
+ metadata.gz: 0da684e9a7298c90a391038cecbbb06280ae55370e82aca0f00e15213aad539df683a38562ec902a0f633105934887194335367800f3db1d8e9d835ff08f64da
7
+ data.tar.gz: 3f47d19dfd36045385b8d7ea3b07919bcddd8b126a90ac5546d167b6a9bc2087ee85017c4176ee517de1488ea51084321a46b047758552fe29b875c8905e9de0
@@ -17,6 +17,8 @@ class Odania::MenuController < ApplicationController
17
17
  menu_item = current_menu.default_menu_item unless current_menu.default_menu_item_id.nil?
18
18
  menu_item = current_menu.menu_items.where(parent_id: nil).first if menu_item.nil?
19
19
 
20
+ return render_error(t('No content defined')) if menu_item.nil?
21
+
20
22
  return redirect_to menu_item.target_data['url'] if 'URL'.eql? menu_item.target_type
21
23
  redirect_to menu_item.get_target_path
22
24
  end
@@ -1,3 +1,6 @@
1
1
  <h1><%= t('Internal server error') %></h1>
2
2
 
3
3
  <%= t('An error occurred') %>
4
+
5
+ <hr/>
6
+ <%= @error_msg %>
@@ -8,3 +8,4 @@ de:
8
8
  Tag _tag: "Tag %{tag}"
9
9
  Read more: 'Weiter lesen'
10
10
  Language: 'Sprache'
11
+ No content defined: 'Kein Inhalt definiert'
@@ -8,3 +8,4 @@ en:
8
8
  Tag _tag: "Tag %{tag}"
9
9
  Read more: 'Read more'
10
10
  Language: 'Language'
11
+ No content defined: 'No content defined'
data/lib/odania/filter.rb CHANGED
@@ -20,7 +20,7 @@ module Odania
20
20
  tags = []
21
21
  html.gsub(/#[a-z0-9\-]*[^< ]/i) do |match|
22
22
  tag = match[1, match.length]
23
- filtered_html.gsub!(match, "<a href=\"/tags/#{tag.parameterize}\">#{tag}</a>")
23
+ filtered_html.gsub!(match, "<a href=\"/#{obj.language.iso_639_1}/tags/#{tag.parameterize}\">#{tag}</a>")
24
24
  tags << tag
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module OdaniaCore
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end