Sha256: f14ba08637e52dd699a9e1b6cf68b5ce8fd4b9b5c5b43efbaf887c192789aa88

Contents?: true

Size: 1.84 KB

Versions: 4

Compression:

Stored size: 1.84 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title><%= (params[:controller] + " " + params[:action]).titleize %> - RailsApp</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
<div id="countajaxloading" style="display: none;">0</div>
<script type="text/javascript">
$(document).ready(function () {
  $(document).on("ajaxp:loading", function() { // increment hidden div every time something loads
    $("#countajaxloading").text((parseInt($("#countajaxloading").text(),10) + 1).toString());
  });
});
/*jQuery(document).ready(function () {
  alert($.ajax_pagination.version);
  $.ajax_pagination("").get("http://localhost:3000/pages/about");
});*/
</script>
<div style="float: right;">
  <% if session[:admin] %>
    <%= link_to "Sign out", sessions_signout_url, :id => "signout" %>
  <% else %>
    <%= link_to "Sign in as admin", sessions_signin_url, :id => "signin" %>
  <% end %>
</div>
<div style="float: right; min-width: 150px;">
<%= ajax_section :id => "count", :history => false do %>
  <%= render :template => "sessions/count" %>
<% end %>
</div>
<h1><%= ajax_link_to "AJAX Pagination Example Application", "broken link", :section_id => "global" %><!-- note the broken link is intentional, for testing purposes --></h1>
<%= ajax_links :section_id => "global", :class => "menu" do %>
  <ul>
    <li><%= link_to "Home", root_url %></li>
    <li><%= link_to "Posts", posts_url %></li>
    <li><%= link_to "Changelog", changelog_url %></li>
    <li><%= link_to "Readme", pages_readme_url %></li>
    <li><%= link_to "Warnings", pages_warnings_url %></li>
    <li><%= link_to "About", pages_about_url %></li>
  </ul>
<% end %>
<%= ajax_section :reload => {:urlpart => "path", :urlregex => "^.*$"}, :loadzone => true do %>
  <%= render :template => "layouts/flash" %>
<% end %>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ajax_pagination-0.6.3 spec/rails_app/app/views/layouts/application.html.erb
ajax_pagination-0.6.2 spec/rails_app/app/views/layouts/application.html.erb
ajax_pagination-0.6.1 spec/rails_app/app/views/layouts/application.html.erb
ajax_pagination-0.6.0 spec/rails_app/app/views/layouts/application.html.erb