Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Add a liquid_layout meta tag to page#show
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemtnz committed Dec 5, 2017
1 parent 2ea4a45 commit 10efb67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions app/views/layouts/member_facing.slim
Expand Up @@ -6,7 +6,7 @@ html lang="#{@page.language.try(:code).try(:downcase)}"
meta name="description" content=t('branding.description')
- if Settings.facebook_app_id.present?
meta property='fb:app_id' content="#{Settings.facebook_app_id}"

- if Settings.mixpanel_token
= render 'layouts/mixpanel'
= stylesheet_link_tag 'member-facing'
Expand Down Expand Up @@ -36,7 +36,6 @@ html lang="#{@page.language.try(:code).try(:downcase)}"

= yield


= render partial: 'shared/google_analytics_snippet'

script type="text/javascript" charset="utf-8" async=true src="//c.shpg.org/99/sp.js"
2 changes: 1 addition & 1 deletion app/views/pages/_show.slim
Expand Up @@ -3,7 +3,7 @@
- meta og: facebook_meta(@page, share_card)

- meta optimization_tags: @page.meta_tags

- meta liquid_layout: @page.liquid_layout.title
= @rendered
= render 'pages/personalization', data: @data
= render 'pages/campaigner_overlay', page: @page
Expand Down
8 changes: 4 additions & 4 deletions db/schema.rb
Expand Up @@ -45,8 +45,8 @@
t.text "body"
t.string "resource_id", null: false
t.string "resource_type", null: false
t.integer "author_id"
t.string "author_type"
t.integer "author_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
Expand All @@ -69,7 +69,7 @@
t.string "member_phone_number"
t.datetime "created_at"
t.datetime "updated_at"
t.jsonb "target_call_info", default: {}, null: false
t.jsonb "target_call_info", default: "{}", null: false
t.json "member_call_events", default: [], array: true
t.integer "twilio_error_code"
t.json "target"
Expand Down Expand Up @@ -114,8 +114,8 @@
t.datetime "updated_at", null: false
t.boolean "visible", default: false
t.boolean "master", default: false
t.integer "formable_id"
t.string "formable_type"
t.integer "formable_id"
t.integer "position", default: 0, null: false
t.index ["formable_type", "formable_id"], name: "index_forms_on_formable_type_and_formable_id"
end
Expand Down Expand Up @@ -416,11 +416,11 @@
t.datetime "created_at"
t.datetime "updated_at"
t.string "title"
t.json "targets", default: [], array: true
t.string "sound_clip_file_name"
t.string "sound_clip_content_type"
t.integer "sound_clip_file_size"
t.datetime "sound_clip_updated_at"
t.json "targets", default: [], array: true
t.text "description"
t.string "menu_sound_clip_file_name"
t.string "menu_sound_clip_content_type"
Expand Down

0 comments on commit 10efb67

Please sign in to comment.