Module: Maglev::Editor::PagesHelper

Defined in:
app/helpers/maglev/editor/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#maglev_edit_page_title(page) ⇒ Object



6
7
8
9
10
11
12
# File 'app/helpers/maglev/editor/pages_helper.rb', line 6

def maglev_edit_page_title(page)
  if current_maglev_page == page
    t('maglev.editor.pages.edit.current_page.title')
  else
    t('maglev.editor.pages.edit.title')
  end
end

#maglev_page_back_pathObject



14
15
16
17
18
19
20
# File 'app/helpers/maglev/editor/pages_helper.rb', line 14

def maglev_page_back_path
  if query_params.present?
    editor_pages_path(**query_params, **maglev_editing_route_context)
  else
    editor_real_root_path(**maglev_editing_route_context)
  end
end