Sha256: f4af89e0feb8947f6c5078b0028c231064b0c5c8b3bf8a2da94f5627c160774e

Contents?: true

Size: 563 Bytes

Versions: 6

Compression:

Stored size: 563 Bytes

Contents

<%- if page.redirects_to_external? -%>
<%= link_to(
  h(page.name),
  page.urlname,
  :title => (options[:show_title] == true ? page.title : nil),
  :target => configuration(:open_external_links_in_new_tab) ? '_blank' : nil
) -%>
  Alchemy::Page.find_
<%- else -%>
<%= link_to(
  h(page.name),
  @preview_mode ? 'javascript:void(0)' : show_alchemy_page_path(page),
  {
    :class => (page_active?(page) ? 'active' : nil),
    :title => (options[:show_title] ? page.title : nil),
    :lang => page.language_code,
    'data-page-id' => page.id
  }
) -%>
<%- end -%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc8 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/navigation/_link.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/navigation/_link.html.erb