Sha256: bf7ddd027542469788d17eca7c238816cd418e9dc9c8a0a0ddd07f4b5f7cf2ad

Contents?: true

Size: 783 Bytes

Versions: 9

Compression:

Stored size: 783 Bytes

Contents

<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon glyphicon-large glyphicon-cog"></i>
    <%=
      case @section
      when 'titles' then t(".title_settings")
      when 'permalinks' then t(".permalinks")
      else t(".global_settings")
      end
    %>
  </h2>
<% end %>

<%= error_messages_for 'blog' %>

<%= form_tag admin_seo_path, method: :put do %>
  <%=
    case @section
    when 'titles' then render 'titles'
    when 'permalinks' then render 'permalinks'
    else render 'general'
    end
  %>

  <%= hidden_field_tag 'section', @section %>
  <div class='form-group'>
    <hr>
    <%= link_to(t(".cancel"), admin_seo_path(section: @section)) %>
    <%= t(".or") %>
    <%= submit_tag(t(".update_settings"), class: 'btn btn-success') %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/views/admin/seo/show.html.erb
publify_core-9.0.1 app/views/admin/seo/show.html.erb
publify_core-9.0.0 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre6 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre5 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre4 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre3 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre2 app/views/admin/seo/show.html.erb
publify_core-9.0.0.pre1 app/views/admin/seo/show.html.erb