Remove news and fix default_url in ImageUploader

This commit is contained in:
chris committed 2012-11-22 09:30:25 +08:00
1 parent 0d26f48c9a
commit 475642d375
163 files changed
+46 -8582

No files matched your search

-4
View File
@@ -4,8 +4,6 @@ module Admin::DashboardsHelper
case title
when 'bulletin'
panel_announcement_front_end_bulletins_path
when 'news_bulletin'
panel_news_front_end_news_bulletins_path
when'page_context'
panel_page_content_front_end_page_contexts_path
when'web_link'
@@ -17,8 +15,6 @@ module Admin::DashboardsHelper
case object.class.to_s.underscore
when 'bulletin'
panel_announcement_front_end_bulletin_path(object)
when 'news_bulletin'
panel_news_front_end_news_bulletin_path(object)
when'page_context'
"/#{object.page.path}"
when'web_link'
+1 -6
View File
@@ -260,13 +260,8 @@ module ApplicationHelper
end
def share_links(object, key)
# js = ''
# js << "<meta property='og:title' content='#{object.title}' />\n" rescue ''
# js << "<meta property='og:description' content='#{object.subtitle}' />\n" rescue ''
# js << "<meta property='og:image' content='#{object.image.url}' />\n" rescue ''
content_tag :div, :class => 'fb' do
concat social_share_button_tag(object.title, :fb_url => generate_fb_url(object,key), :image => "http://#{request.env['HTTP_HOST']}#{object.image.url if !object.image.blank?}")
# concat javascript_tag "$('head').append('#{j js}');"
concat social_share_button_tag(object.title, :fb_url => generate_fb_url(object,key), :image => "http://#{request.env['HTTP_HOST']}#{object.image_url}")
end
end