public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
convert cached_pages to will_paginate

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2920 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Jun 23 08:13:20 -0700 2007
commit  2e83e3376ebe129cbe05654c87547b26b31c6f74
tree    80e25681343bda06f4348add257f178b6c84693f
parent  1905ee737a15aca62649e9c5a1f05642d04c5a22
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
19
20
21
22
23
 
 
 
 
 
 
24
25
26
27
28
29
30
31
32
33
34
35
 
36
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
 
 
15
16
17
18
19
20
21
22
 
 
 
 
 
 
 
 
 
23
24
25
0
@@ -1,34 +1,23 @@
0
-<% if @cached_pages.size > 0 -%>
0
-<!-- begin cached pages list -->
0
-<div class="pages">
0
-<% if @cached_page_pages.page_count > 1 %>
0
-Pages: <strong><%= pagination_remote_links @cached_page_pages, :params => { :action => 'index' } %></strong>
0
-<% end %>
0
-</div>
0
-<h2>Cached Pages</h2><br/>
0
-<table id="cached-pages" cellspacing="0" cellpadding="0">
0
- <thead>
0
- <tr>
0
- <th scope="col" class="small-col">&nbsp;</th>
0
- <th scope="col">URL</th>
0
- <th scope="col">Date</th>
0
- <th scope="col">Actions</th>
0
- </tr>
0
- </thead>
0
+<% unless @cached_pages.empty? -%>
0
+ <%= will_paginate @cached_pages, :class => 'pages' if @cached_pages.page_count > 1 %>
0
+ <!-- begin cached pages list -->
0
+ <h2>Cached Pages</h2><br/>
0
+ <table id="cached-pages" cellspacing="0" cellpadding="0">
0
+ <thead>
0
+ <tr>
0
+ <th scope="col" class="small-col">&nbsp;</th>
0
+ <th scope="col">URL</th>
0
+ <th scope="col">Date</th>
0
+ <th scope="col">Actions</th>
0
+ </tr>
0
+ </thead>
0
 
0
- <tbody id="pages">
0
- <%= render :partial => 'page', :collection => @cached_pages %>
0
- </tbody>
0
-</table>
0
-<!-- /end cached pages list -->
0
+ <tbody id="pages">
0
+ <%= render :partial => 'page', :collection => @cached_pages %>
0
+ </tbody>
0
+ </table>
0
+ <!-- /end cached pages list -->
0
+ <%= will_paginate @cached_pages, :id => 'pagination' if @cached_pages.page_count > 1 %>
0
 <% else -%>
0
   <div class="empty">There currently aren't any pages being cached by Mephisto.</div>
0
-<% end -%>
0
-
0
-<!-- begin pagination -->
0
-<div id="pagination">
0
-<% if @cached_page_pages.page_count > 1 %>
0
-Pages: <strong><%= pagination_links @cached_page_pages, :params => { :action => 'index' } %></strong>
0
-<% end %>
0
-</div>
0
-<!-- /end pagination -->
0
\ No newline at end of file
0
+<% end -%>
0
\ No newline at end of file

Comments

    No one has commented yet.