Removed member and survey widget, fixed desktop personal experiences
This commit is contained in:
parent
bd154c9cab
commit
03b29a7b4a
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue