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.
- checksums.yaml +4 -4
- data/app/controllers/odania/menu_controller.rb +2 -0
- data/app/views/odania/common/internal_server_error.html.erb +3 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/lib/odania/filter.rb +1 -1
- data/lib/odania_core/version.rb +1 -1
- data/test/dummy/log/test.log +24210 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/050eb77fb84c3d5b11b2c335ffc2066e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1162767bf7dd2fa8a0729a9b74c5d262 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13ebf9a23c7bcd470cced5e3c026b2c6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1aabd31da5b9fb20f92ccb6aab02693e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/31bf03ea315906104e90565c1755f93b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/51ceb5283b390c7096cb51c446afff14 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/542e319febac79296c8eed4cba6b1278 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5546cd8a339e2685f326f6e3aa7137d1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5896f3bd71adf47dbc97c8b096de89e5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/64ae089382b7b1071cb7f81859a2c7e5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6a2d6a50e71f610e9622c7b00b89d9fb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6ef2e646e5df37d1a2b8eb4c95227732 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/70a571034fb5b24b25ea62e490854fb5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/80c0164f49a2ca6316e174f9cd881828 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8a390d01d219afed891a2ccf558900f9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a6253055c7af3ad275675a529405f9dc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a934f78fb9f28b5be1ffaf3ad9c7d679 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/aee29c6618c315a907c84a7244f9a2d5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b568cecbb1f2095238d9752c06eaad12 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b94fc2358ebd35d7593676da3994abf7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bb77c7d971ba740bb9555b56a5088922 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bc22e41c8d34b097603e2810ff80b480 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c7fadd1caf1cf9bb073f2d4084867691 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cadf3a38b8b2f76f9ae9c40702c51e94 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d555fdabd9f9917902c297ff3eda35d0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d7607942ea55ac942ea171ffc90e3dd5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e346e8a32395f2f19c4d78d375b1ba43 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e5421896b8e264a2b7ab1292b19bed91 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e57d372b6f0705bbce9d24c6c2eea1b1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e5c003ee1e62f83c11e2fd7e05aae7a7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ee73b2f7e7a7da30173f3b379a9f56b5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f37943f3484e4587c579b17f68a6cfd3 +0 -0
- data/test/unit/filter_test.rb +7 -2
- metadata +53 -2
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61ed856180e939491b2083a9b5e74fb1b1bd7798
|
4
|
+
data.tar.gz: 7bd04630e902690fb8ab84a45732037c099f8bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
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
|
|
data/lib/odania_core/version.rb
CHANGED