Permalink
Browse files

Updates kaminari to use bootstrap styles

  • Loading branch information...
1 parent 820fe2c commit b8081b901084ae25377ea9ff86b0e71893de0c05 @orendon orendon committed Dec 25, 2012
@@ -5,5 +5,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span.first
+%li.first
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote
@@ -4,5 +4,6 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span.page.gap
- = raw(t 'views.pagination.truncate')
+%li.page.gap
+ %a{class: 'disabled'}
+ = raw(t 'views.pagination.truncate')
@@ -5,5 +5,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span.last
+%li.last
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}
@@ -5,5 +5,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span.next
+%li.next
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
@@ -6,5 +6,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span{:class => "page#{' current' if page.current?}"}
- = link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
+%li{:class => "page#{' active' if page.current?}"}
+ = link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
@@ -6,13 +6,14 @@
-# remote: data-remote
-# paginator: the paginator that renders the pagination tags inside
= paginator.render do
- %nav.pagination
- = first_page_tag unless current_page.first?
- = prev_page_tag unless current_page.first?
- - each_page do |page|
- - if page.left_outer? || page.right_outer? || page.inside_window?
- = page_tag page
- - elsif !page.was_truncated?
- = gap_tag
- = next_page_tag unless current_page.last?
- = last_page_tag unless current_page.last?
+ .pagination
+ %ul
+ = first_page_tag unless current_page.first?
+ = prev_page_tag unless current_page.first?
+ - each_page do |page|
+ - if page.left_outer? || page.right_outer? || page.inside_window?
+ = page_tag page
+ - elsif !page.was_truncated?
+ = gap_tag
+ = next_page_tag unless current_page.last?
+ = last_page_tag unless current_page.last?
@@ -5,5 +5,5 @@
-# total_pages: total number of pages
-# per_page: number of items to fetch per page
-# remote: data-remote
-%span.prev
+%li.prev
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote
@@ -3,8 +3,7 @@
<thead>
<tr>
<th></th>
- <th>Project</th>
- <th>Author</th>
+ <th>Author/Project</th>
<th># Issues</th>
<th># Forks</th>
<th>Last Update</th>
@@ -22,10 +21,7 @@
<% end %>
</td>
<td>
- <%= link_to repo.name, "#{repo.github_url}" %>
- </td>
- <td>
- <%= link_to "#{repo.user.github_id}", "https://github.com/#{repo.user.github_id}" %>
+ <%= link_to repo.full_name, "#{repo.github_url}" %>
</td>
<td><%= repo.open_issues %></td>
<td><%= repo.forks %></td>

0 comments on commit b8081b9

Please sign in to comment.