Sha256: 92229ef4cb1994b0156bd223e9635d17d3dc7f58f0f86a139b540d528d117a33
Contents?: true
Size: 1.81 KB
Versions: 10
Compression:
Stored size: 1.81 KB
Contents
<% content_for :page_heading do %> <h2> <i class="glyphicon glyphicon-large glyphicon-share-alt"></i> <%= t('.redirects') %> </h2> <% end %> <div class='row'> <div class='col-md-4'> <%= form_for([:admin, @redirect]) do |f| %> <% if @redirect.errors.any? %> <ul> <% @redirect.errors.full_messages.each do |redirect| %> <li><%= message %></li> <% end %> </ul> <% end %> <div class="form-group"> <%= f.text_field :from_path, class: 'form-control', placeholder: "From #{this_blog.base_url}/" %> </div> <p class='help-block'> <small><%= t('.leave_empty_to_shorten_a_link') %></small> </p> <div class="form-group"> <%= f.text_field :to_path, class: 'form-control', placeholder: 'To' %> </div> <div class="form-group"> <hr /> <%= link_to(t('.cancel'), action: 'index') %> <%= t('.or') %> <%= f.submit t('.save'), class: 'btn btn-success' %> </div> <% end %> </div> <div class='col-md-8'> <table class="table table-hover"> <thead> <tr class='noborder'> <th><%= t('.from') %></th> <th><%= t('.to') %></th> </tr> </thead> <% if @redirects.empty? %> <tr> <td colspan="2"> <%= t('.no_redirects') %> </td> </tr> <% end %> <% for redirect in @redirects %> <tr> <td> <%= link_to(redirect.from_url.to_s, redirect.from_url.to_s) %> <div class="action"> <%= button_to_edit redirect %> <%= button_to_delete redirect %> </div> </td> <td><%= link_to(redirect.to_path, redirect.to_path) %></td> </tr> <% end %> <%= display_pagination(@redirects, 2) %> </table> </div> </div>
Version data entries
10 entries across 10 versions & 1 rubygems