googlish theme...

This commit is contained in:
Akira Matsuda 2011-02-09 20:07:26 +09:00
parent 54b4e0fb67
commit 269bb165e0
21 changed files with 189 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<%# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td class="cur"><span class="csb" style="background-position:-53px 0;width:20px"></span><%= page %></td>

View File

@ -0,0 +1,10 @@
-# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td.cur
%span.csb{:style => 'background-position:-53px 0;width:20px'}
= page

View File

@ -0,0 +1,10 @@
<%# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<%# this kind of works even though looks a bit hackish... -%>
<%= render :partial => 'kaminari/page_link', :locals => @_partial_renderer.instance_variable_get('@locals') %>

View File

@ -0,0 +1,9 @@
-# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-# this kind of works even though looks a bit hackish...
= render :partial => 'kaminari/page_link', :locals => @_partial_renderer.instance_variable_get('@locals')

View File

@ -0,0 +1,10 @@
<%# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<%# this kind of works even though looks a bit hackish... -%>
<%= render :partial => 'kaminari/page_link', :locals => @_partial_renderer.instance_variable_get('@locals') %>

View File

@ -0,0 +1,9 @@
-# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-# this kind of works even though looks a bit hackish...
= render :partial => 'kaminari/page_link', :locals => @_partial_renderer.instance_variable_get('@locals')

View File

@ -0,0 +1,8 @@
<%# available local variables:
next_url: url to the next page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td class="b"><%= link_to raw('<span class="csb ch" style="background-position:-96px 0;width:71px"></span><span style="display:block;margin-left:53px;text-decoration:underline">Next</span>'), next_url, :class => 'pn knavi', :id => 'pnnext', :style => 'text-align:left;text-decoration:none', :remote => remote %></td>

View File

@ -0,0 +1,8 @@
-# available local variables:
next_url: url to the next page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td.b
= link_to raw('<span class="csb ch" style="background-position:-96px 0;width:71px"></span><span style="display:block;margin-left:53px;text-decoration:underline">Next</span>'), next_url, :class => 'pn knavi', :id => 'pnnext', :style => 'text-align:left;text-decoration:none', :remote => remote

View File

@ -0,0 +1,7 @@
<%# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td class="b"><span class="csb" style="background-position:-96px 0;width:45px"></span></td>

View File

@ -0,0 +1,7 @@
-# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td.b
%span.csb{:style => 'background-position:-96px 0;width:45px'

View File

@ -0,0 +1,9 @@
<%# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td><%= link_to raw(%Q[<span class="csb ch" style="background-position:-74px 0;width:20px"></span>#{page}]), page_url, :class => 'fl', :remote => remote %></td>

View File

@ -0,0 +1,9 @@
-# available local variables:
page: the page number of this page
page_url: url to this page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td
= link_to raw(%Q[<span class="csb ch" style="background-position:-74px 0;width:20px"></span>#{page}]), page_url, :class => 'fl', :remote => remote

View File

@ -0,0 +1,19 @@
<%# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<style>
#nav a{display:block}
#nav td{padding:0;text-align:center}
.cur {font-weight:bold}
.csb {background:url(http://www.google.co.jp/images/srpr/nav_logo27.png) no-repeat;overflow:hidden;background-position:0 0;height:40px;display:block}
#nav {font-family: arial,sans-serif; font-size:small}
#nav a:link {text-decoration:none; color:#4496d3}
#nav a:hover {text-decoration:underline}
#nav a:active {color:#c11}
#nav a:visited {color:#2200C1}
.b {font-weight:bold}
</style>
<table id="nav" style="border-collapse:collapse;text-align:left;direction:ltr;margin:17px auto 0"><tbody><tr valign="top"><%= content_for :kaminari_paginator_tags %></tr></tbody></table>

View File

@ -0,0 +1,20 @@
-# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
:css
#nav a{display:block}
#nav td{padding:0;text-align:center}
.cur {font-weight:bold}
.csb {background:url(http://www.google.co.jp/images/srpr/nav_logo27.png) no-repeat;overflow:hidden;background-position:0 0;height:40px;display:block}
#nav {font-family: arial,sans-serif; font-size:small}
#nav a:link {text-decoration:none; color:#4496d3}
#nav a:hover {text-decoration:underline}
#nav a:active {color:#c11}
#nav a:visited {color:#2200C1}
.b {font-weight:bold}
%table#nav{:style => 'border-collapse:collapse;text-align:left;direction:ltr;margin:17px auto 0'}
%tbody
%tr{:valign => 'top'}
= content_for :kaminari_paginator_tags

View File

@ -0,0 +1,8 @@
<%# available local variables:
prev_url: url to the previous page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td class="b"><%= link_to raw('<span class="csb ch" style="background-position:0 0;float:right;width:53px"></span><span style="display:block;margin-right:35px;clear:right;text-decoration:underline">Previous</span>'), prev_url, :class => 'pn knavi', :id => 'pnprev', :style => 'text-decoration:none', :remote => remote %></td>

View File

@ -0,0 +1,8 @@
-# available local variables:
prev_url: url to the previous page
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td.b
= link_to raw('<span class="csb ch" style="background-position:0 0;float:right;width:53px"></span><span style="display:block;margin-right:35px;clear:right;text-decoration:underline">Previous</span>'), prev_url, :class => 'pn knavi', :id => 'pnprev', :style => 'text-decoration:none', :remote => remote

View File

@ -0,0 +1,7 @@
<%# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<td class="b"><span class="csb" style="background-position:-24px 0;width:28px"></span></td>

View File

@ -0,0 +1,7 @@
-# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
%td.b
%span.csb{:style => 'background-position:-24px 0;width:28px'}

View File

@ -0,0 +1,7 @@
<%# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<%# Nothing! -%>

View File

@ -0,0 +1,6 @@
-# available local variables:
current_page: the page number of currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-# Nothing!

View File

@ -14,6 +14,8 @@ rails g kaminari:views THEME [options]
default: The default one.
This one is used internally while you don't override the partials.
google: Looks googlish! (note that this is just an example...)
Make sure to specify a very big number (like 65536) for the "window" value.
BANNER
end