From 03b29a7b4ad34c4f7f37eeeda4c86ba1adab652d Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 13 Dec 2013 16:04:44 +0800 Subject: [PATCH] Removed member and survey widget, fixed desktop personal experiences --- vendor/built_in_modules/member_staff/init.rb | 6 ++--- .../desktop/personal_experiences_helper.rb | 4 ++-- vendor/built_in_modules/survey/init.rb | 22 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/vendor/built_in_modules/member_staff/init.rb b/vendor/built_in_modules/member_staff/init.rb index 2515a585..674cb518 100644 --- a/vendor/built_in_modules/member_staff/init.rb +++ b/vendor/built_in_modules/member_staff/init.rb @@ -18,7 +18,7 @@ module MemberStaff end - widgets do + # widgets do # default_widget do # query 'User.all' # enable ['typeA'] @@ -28,7 +28,7 @@ module MemberStaff # link_to_more 'panel_member_front_end_qas_path',:title_i18n=> 'member.default_widget.to_more' # end - categories_query 'RoleStatus.where(:role_id=> RoleStatus.get_role_data("staff") )' + # categories_query 'RoleStatus.where(:role_id=> RoleStatus.get_role_data("staff") )' # tags_query 'FaqTag.all' @@ -36,7 +36,7 @@ module MemberStaff # widget_i18n "member.widget.index" # style ["1"] # end - end + # end # side_bar do # head_label_i18n 'member.member',:icon_class=>"icons-help" diff --git a/vendor/built_in_modules/personal_experience/app/helpers/panel/personal_experience/desktop/personal_experiences_helper.rb b/vendor/built_in_modules/personal_experience/app/helpers/panel/personal_experience/desktop/personal_experiences_helper.rb index cbd39362..e7cba508 100644 --- a/vendor/built_in_modules/personal_experience/app/helpers/panel/personal_experience/desktop/personal_experiences_helper.rb +++ b/vendor/built_in_modules/personal_experience/app/helpers/panel/personal_experience/desktop/personal_experiences_helper.rb @@ -71,11 +71,11 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper def link_publication_file publication publication.writing_conference_files.map{|file| link_to(image_tag(check_file_type(file.file.url)) + \ - content_tag(:span, file.title_translations[I18n.locale.to_s] rescue nil), :class => "filetitle"), + content_tag(:span, (file.title_translations[I18n.locale.to_s] rescue nil), :class => "filetitle"), file.file.url, :class => "file", "target" => "_blank", - "title" => file.title_translations[I18n.locale.to_s] rescue nil)) + "title" => (file.title_translations[I18n.locale.to_s] rescue nil)) }.inject(:+) end diff --git a/vendor/built_in_modules/survey/init.rb b/vendor/built_in_modules/survey/init.rb index f7cadba3..e91c4af4 100644 --- a/vendor/built_in_modules/survey/init.rb +++ b/vendor/built_in_modules/survey/init.rb @@ -20,17 +20,17 @@ module Faq data_count 1..20 - widgets do - default_widget do - enable ["typeA"] - query 'Survey.any_of( {:postdate.lte => Time.now} )' - link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self} - field :time_range - field :write - field :result - link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more' - end - end + # widgets do + # default_widget do + # enable ["typeA"] + # query 'Survey.any_of( {:postdate.lte => Time.now} )' + # link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self} + # field :time_range + # field :write + # field :result + # link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more' + # end + # end side_bar do