From c35d42d67101cc434c3e3f81f1940b04e40dec68 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 02098f8a5..da6082976 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 89608fc07..013718b56 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 @@