From 58fb2d1c73e5097cb2e6edbd5a30587a991a757e Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 24 Sep 2013 11:30:39 +0800 Subject: [PATCH] external links and link widget fixed for development --- app/controllers/front_controller.rb | 2 +- .../web_resource/widget/web_links/_index.html.erb | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb index 02098f8a..da608297 100644 --- a/app/controllers/front_controller.rb +++ b/app/controllers/front_controller.rb @@ -73,7 +73,7 @@ class FrontController < ApplicationController res << " active" if (current_page.id.eql?(page.id) || current_page.descendant_of?(page)) res << "'>" root = "/" - res << "#{page.title}" + res << "#{page.title}" if page.visible_children.size > 0 && current < menu.levels res << "" res << menu_level(page, current_page, current + 1, menu) diff --git a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/widget/web_links/_index.html.erb b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/widget/web_links/_index.html.erb index 89608fc0..013718b5 100644 --- a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/widget/web_links/_index.html.erb +++ b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/widget/web_links/_index.html.erb @@ -10,11 +10,13 @@