Merge pull request #46 from changchang/master

修复topic列表翻页url bug
This commit is contained in:
fengmk2 2012-05-28 00:38:11 -07:00
commit 11eccb0708

View File

@ -1,7 +1,7 @@
<%- partial('topic/abstract', {collection:topics, as:'topic'}) %>
<div class='pagination' current_page='<%= current_page %>'>
<ul>
<% var base_url = base + (base === '/' ? '?' : '&') + 'page='; %>
<% var base_url = base + (base.indexOf('?') < 0 ? '?' : '&') + 'page='; %>
<% if (current_page == 1) { %>
<li class='disabled'><a>«</a></li>
<% } else { %>