Sha256: c0533c20f7b0fb883f188802982ab088eecb0116a97e2bf7df07974282ffc0df

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

<%# encoding: UTF-8 %>
<% table ||= nil %>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><%= table.nil? ? "All Tables" : table.title %></title>
    <script type="text/javascript"
            src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load("jquery", "1", {uncompressed:true})
    </script>
    <%= javascript_script_tag "/javascripts/jquery.tablesorter.js" %>
    <%= javascript_script_tag "/javascripts/jquery.tablesorter.pager.js" %>
    <%= javascript_script_tag "/javascripts/jquery.tablesorter.multipagefilter.js" %>
    <%= javascript_script_tag "/javascripts/application.js" %>
    <%= stylesheet_link_tag "/stylesheets/stylesheet.css", :media=>"screen" %>

    <script>
      <% if !table.nil? %>
        var sortPlease = <%= table.sortable? %>;
        var sortOrder = <%= table.sort_array.inspect || "null"%>;
        var perPage = <%= table.per_page %>;
      <% else %>
        var sortPlease = false;
      <% end %>
    </script>

  </head>
  <body>
    <div id="table_fu">
      <%= yield %>
    </div>
  </body>
</html>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
table_setter-0.2.12 template/views/layout.erb
table_setter-0.2.11 template/views/layout.erb
table_setter-0.2.10 template/views/layout.erb
table_setter-0.2.9 template/views/layout.erb
table_setter-0.2.8 template/views/layout.erb
table_setter-0.2.7 template/views/layout.erb
table_setter-0.2.6 template/views/layout.erb
table_setter-0.2.5 template/views/layout.erb
table_setter-0.2.4 template/views/layout.erb