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
|
end
|
||||||
|
|
||||||
|
|
||||||
widgets do
|
# widgets do
|
||||||
# default_widget do
|
# default_widget do
|
||||||
# query 'User.all'
|
# query 'User.all'
|
||||||
# enable ['typeA']
|
# enable ['typeA']
|
||||||
|
@ -28,7 +28,7 @@ module MemberStaff
|
||||||
# link_to_more 'panel_member_front_end_qas_path',:title_i18n=> 'member.default_widget.to_more'
|
# link_to_more 'panel_member_front_end_qas_path',:title_i18n=> 'member.default_widget.to_more'
|
||||||
# end
|
# 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'
|
# tags_query 'FaqTag.all'
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ module MemberStaff
|
||||||
# widget_i18n "member.widget.index"
|
# widget_i18n "member.widget.index"
|
||||||
# style ["1"]
|
# style ["1"]
|
||||||
# end
|
# end
|
||||||
end
|
# end
|
||||||
|
|
||||||
# side_bar do
|
# side_bar do
|
||||||
# head_label_i18n 'member.member',:icon_class=>"icons-help"
|
# head_label_i18n 'member.member',:icon_class=>"icons-help"
|
||||||
|
|
|
@ -71,11 +71,11 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_conference_files.map{|file|
|
publication.writing_conference_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank",
|
"target" => "_blank",
|
||||||
"title" => file.title_translations[I18n.locale.to_s] rescue nil))
|
"title" => (file.title_translations[I18n.locale.to_s] rescue nil))
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,17 +20,17 @@ module Faq
|
||||||
|
|
||||||
data_count 1..20
|
data_count 1..20
|
||||||
|
|
||||||
widgets do
|
# widgets do
|
||||||
default_widget do
|
# default_widget do
|
||||||
enable ["typeA"]
|
# enable ["typeA"]
|
||||||
query 'Survey.any_of( {:postdate.lte => Time.now} )'
|
# query 'Survey.any_of( {:postdate.lte => Time.now} )'
|
||||||
link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}
|
# link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}
|
||||||
field :time_range
|
# field :time_range
|
||||||
field :write
|
# field :write
|
||||||
field :result
|
# field :result
|
||||||
link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more'
|
# link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more'
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
|
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
|
|
Loading…
Reference in New Issue