Sha256: 5ad6b5c6b49111a1d896b35e4639c8d5f0c8873ca3855e740c0ae1cea320bdcd

Contents?: true

Size: 1.1 KB

Versions: 7

Compression:

Stored size: 1.1 KB

Contents

<%
  link_args = defined?(link_to_arguments) ? link_to_arguments : {}
  page_link_url = Globalize.with_locale(params[:switch_locale]) { refinery.url_for(page_link.url) }
  # current_link is relative so check against the relative url portion before conditionally making it absolute
  linked = params[:current_link].present? && page_link_url == params[:current_link]
  page_link_url = "#{[request.protocol, request.host_with_port].join}#{page_link_url}" if Refinery::Pages.absolute_page_links
-%>
<li class='clearfix<%= " child#{child}" if child %><%= " linked" if linked%>' id="<%= dom_id(page_link) -%>">
  <%= link_to page_link_url, {
                :title => t('.link_to_this_page'),
                :rel => page_link.title,
                :class => 'page_link'
              }.merge(link_args) do %>
    <%= translated_field(page_link, :title) %>
    <%= page_meta_information page_link %>
  <% end %>
</li>
<%= render :partial => 'page_link',
           :collection => page_link.children,
           :locals => {
             :child => (child ||= 0) + 1,
             :link_to_arguments => link_args
           } -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-pages-4.0.3 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-4.0.2 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-4.0.1 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-3.0.6 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-4.0.0 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-3.0.5 app/views/refinery/admin/pages_dialogs/_page_link.html.erb
refinerycms-pages-3.0.4 app/views/refinery/admin/pages_dialogs/_page_link.html.erb