Skip to content

Commit

Permalink
Add flash notice preview skip_to_first_child
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed May 1, 2016
1 parent 167a134 commit a4bedf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class PreviewController < Refinery::PagesController
layout :layout

def show
flash.notice = t('refinery.admin.pages.preview.skip_to_first_child', what: "'#{@page.title}'") if @page.skip_to_first_child.present?
render_with_templates?
end

Expand Down
2 changes: 2 additions & 0 deletions pages/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ en:
view_live_html: View this page live <br/><em>(opens in a new window)</em>
hidden: hidden
draft: draft
preview:
skip_to_first_child: "The page %{what} use the option \"Skip to first child\" and will never be displayed to guest users."
form:
preview: Preview
preview_changes: Preview your changes before making them live
Expand Down

0 comments on commit a4bedf7

Please sign in to comment.