From ec63fc41bb5d8b76e2092aa9549afcc729405d47 Mon Sep 17 00:00:00 2001
From: yanxd
- <%= content_tag('span', link_to("#{@project.homeworks.count}", "\#"), :class => "info") %><%= content_tag('span', l(:label_x_task, :count => @project.homeworks.count)) %> + <%= content_tag('span', link_to("#{@project.homeworks.count}", homework_project_path(@project)), :class => "info") %><%= content_tag('span', l(:label_x_task, :count => @project.homeworks.count)) %>
- <%= content_tag('span', "#{@project.members.count}", :class => "info") %><%= content_tag('span', l(:label_x_member, :count => @project.members.count)) %> + <%= content_tag('span', link_to("#{@project.members.count}", member_project_path(@project)), :class => "info") %><%= content_tag('span', l(:label_x_member, :count => @project.members.count)) %>
<% files_count = @project.attachments.count %> <% @project.versions.each do |version| %> <% files_count += version.attachments.count %> <% end %> - <%= content_tag('span', files_count, :class => "info") %><%= content_tag('span', l(:label_x_data,:count => files_count)) %> + <%= content_tag('span', link_to(files_count, file_project_path(@project)), :class => "info") %><%= content_tag('span', l(:label_x_data,:count => files_count)) %>
diff --git a/public/stylesheets/nyan_css.css b/public/stylesheets/nyan_css.css index 3511d0727..2fcd1f8fd 100644 --- a/public/stylesheets/nyan_css.css +++ b/public/stylesheets/nyan_css.css @@ -1,5 +1,5 @@ /*add by nyan*/ -.joinButton { +.whiteButton { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; @@ -32,7 +32,7 @@ text-shadow:0px 1px 0px #ffffff; } -.joinButton:hover { +.whiteButton:hover { background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff)); background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%); @@ -44,7 +44,7 @@ background-color:#f6f6f6; } -.joinButton:active { +.whiteButton:active { position:relative; top:1px; }