rosa-build/app/views/git/commits/_paginate.html.haml

11 lines
407 B
Plaintext

.pagination.tmargin30
- if @page == 1
%span.previous_page.disabled « Previous
- else
%a.previous_page{ :rel => "prev", :href => commits_path(@project, :treeish => @treeish, :page => (@page - 1)) } « Previous
- if @last_page
%span.next_page.disabled Next »
- else
%a.next_page{ :rel => "next", :href => commits_path(@project, :treeish => @treeish, :page => (@page + 1)) } Next »