Commit 700a3fef9cb07d31afcc576363c53f5a0b8a267b

Authored by Andrey Karpikov
1 parent 6c44348a

change version

... ... @@ -44,10 +44,10 @@ module Kanjai
44 44 case item[:name]
45 45 when 'text'
46 46 content = item[:source]
47   - #if current_page
48   - # content = content.gsub('###link###', current_page.menu_url('http://', lang = nil))
49   - # .gsub('###title###', current_page.lang_attributes(domain.page_langs.default, :title))
50   - #end
  47 + if current_page
  48 + content = content.gsub('###link###', current_page.menu_url(session[:scheme], lang = nil))
  49 + .gsub('###title###', current_page.lang_attributes(I18n.locale, :title))
  50 + end
51 51 subparts << content
52 52 when 'repeat'
53 53 #get template for normal state, active state and separator
... ...
1 1 module Kanjai
2   - VERSION = "0.0.306"
  2 + VERSION = "0.0.307"
3 3 end
... ...