添加了2个rb文件 tags/_pagination.html.erb,tags/_sidebar_tags.html.erb

This commit is contained in:
william 2013-08-27 11:28:20 +08:00
parent 0c22d409fc
commit 638c74b177
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<div class="pagination" style="float:right;">
<%=
pagination_links_full obj_pages,:per_page_links => false
%>
</div>

View File

@ -0,0 +1,10 @@
<% case show_flag%>
<% when '1' then %>
(<%= User.tagged_with("#{sg}").size %>)
<%when '2' then %>
(<%= Project.tagged_with(sg).size %>)
<% when '3' then %>
(<%= Issue.tagged_with("#{sg}").size %>)
<% when '4' then %>
(<%= Bid.tagged_with("#{sg}").size %>)
<% end %>