From 638c74b1772af60ea2682694de7442aa6369fe2f Mon Sep 17 00:00:00 2001 From: william Date: Tue, 27 Aug 2013 11:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=862=E4=B8=AArb?= =?UTF-8?q?=E6=96=87=E4=BB=B6=20tags/=5Fpagination.html.erb,tags/=5Fsideba?= =?UTF-8?q?r=5Ftags.html.erb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_pagination.html.erb | 5 +++++ app/views/tags/_sidebar_tags.html.erb | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 app/views/tags/_pagination.html.erb create mode 100644 app/views/tags/_sidebar_tags.html.erb diff --git a/app/views/tags/_pagination.html.erb b/app/views/tags/_pagination.html.erb new file mode 100644 index 000000000..888916ef7 --- /dev/null +++ b/app/views/tags/_pagination.html.erb @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/app/views/tags/_sidebar_tags.html.erb b/app/views/tags/_sidebar_tags.html.erb new file mode 100644 index 000000000..d64f1c290 --- /dev/null +++ b/app/views/tags/_sidebar_tags.html.erb @@ -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 %>