Sha256: 5815d31ce4824118f44a230fecb4e3724450c5d5f1a7f47986c66efb04d1184f

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

<% if page.foreign_link.present? %>
  <li><%= link_to page.title, page.foreign_link, {:target => "_blank"} %></li>
<% else %>
  <% page_uri = Rails.application.routes.named_routes[:spree].path.spec.to_s == '/' ? page.slug : Rails.application.routes.named_routes[:spree].path.spec.to_s + page.slug %>
  <li class=<%= 'current' if (request.fullpath.gsub('//','/') == page_uri) %>><%= link_to page.title, page_uri  %></li>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_static_content-2.0.0 lib/views/frontend/spree/static_content/_static_content_list.html.erb
solidus_static_content-1.0.0 app/views/spree/static_content/_static_content_list.html.erb