新注册用户,课程,项目,竞赛数据为空时,不显示
This commit is contained in:
parent
f2229794f2
commit
111bf5a140
|
@ -159,7 +159,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% if is_current_user %>
|
<% if is_current_user %>
|
||||||
<% if hidden_unproject_infos %>
|
<% if hidden_unproject_infos && user_course_count > 0 %>
|
||||||
<div class="home-user-leftnav">
|
<div class="home-user-leftnav">
|
||||||
<h3 >
|
<h3 >
|
||||||
<%= link_to "课程社区", user_course_community_path(User.current), :class => "fl" , :target => "_blank", :style => "color:#666" %>
|
<%= link_to "课程社区", user_course_community_path(User.current), :class => "fl" , :target => "_blank", :style => "color:#666" %>
|
||||||
|
@ -183,6 +183,7 @@
|
||||||
<%# end %>
|
<%# end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if user_project_count > 0%>
|
||||||
<div class="home-user-leftnav">
|
<div class="home-user-leftnav">
|
||||||
<h3 >
|
<h3 >
|
||||||
<%= link_to "项目社区", user_project_community_path(User.current), :class => "fl", :target => "_blank", :style => "color:#666" %>
|
<%= link_to "项目社区", user_project_community_path(User.current), :class => "fl", :target => "_blank", :style => "color:#666" %>
|
||||||
|
@ -192,17 +193,22 @@
|
||||||
<%= link_to user_project_count > 0 ? "项目<span class='issues_nav_tag mr10 fr' style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:#666;'>#{user_project_count}</span>".html_safe : "项目",
|
<%= link_to user_project_count > 0 ? "项目<span class='issues_nav_tag mr10 fr' style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:#666;'>#{user_project_count}</span>".html_safe : "项目",
|
||||||
user_project_community_path(User.current), :id => 'user_project_list', :target => "_blank" %>
|
user_project_community_path(User.current), :id => 'user_project_list', :target => "_blank" %>
|
||||||
</li>
|
</li>
|
||||||
|
<% if issues_author_is_self_count > 0 %>
|
||||||
<li class="home-user-leftnav-li icons-issue clear">
|
<li class="home-user-leftnav-li icons-issue clear">
|
||||||
<%= link_to issues_author_is_self_count > 0 ? "我发布的issue<span class='issues_nav_tag mr10 fr'style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:##666;'>#{issues_author_is_self_count}</span>".html_safe : "我发布的issue",
|
<%= link_to issues_author_is_self_count > 0 ? "我发布的issue<span class='issues_nav_tag mr10 fr'style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:##666;'>#{issues_author_is_self_count}</span>".html_safe : "我发布的issue",
|
||||||
user_manage_issues_user_path(@user), :target => "_blank" %>
|
user_manage_issues_user_path(@user), :target => "_blank" %>
|
||||||
</li>
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if issues_assigned_is_self_count > 0 %>
|
||||||
<li class="home-user-leftnav-li icons-issue clear">
|
<li class="home-user-leftnav-li icons-issue clear">
|
||||||
<%= link_to issues_assigned_is_self_count > 0 ? "我收到的issue<span class='issues_nav_tag mr10 fr' style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:#666;'>#{issues_assigned_is_self_count}</span>".html_safe : "我收到的issue",
|
<%= link_to issues_assigned_is_self_count > 0 ? "我收到的issue<span class='issues_nav_tag mr10 fr' style='line-height:18px;margin-top:9px;font-size:11px;background-color:#f5f2f2;color:#666;'>#{issues_assigned_is_self_count}</span>".html_safe : "我收到的issue",
|
||||||
user_receive_issues_user_path(@user), :target => "_blank" %>
|
user_receive_issues_user_path(@user), :target => "_blank" %>
|
||||||
</li>
|
</li>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<% if hidden_unproject_infos %>
|
<% end %>
|
||||||
|
<% if hidden_unproject_infos && user_contest_count > 0 %>
|
||||||
<div class="home-user-leftnav">
|
<div class="home-user-leftnav">
|
||||||
<h3 >
|
<h3 >
|
||||||
<%= link_to "竞赛社区", user_contest_community_path(User.current), :class => "fl" , :target => "_blank"%>
|
<%= link_to "竞赛社区", user_contest_community_path(User.current), :class => "fl" , :target => "_blank"%>
|
||||||
|
@ -222,17 +228,19 @@
|
||||||
<span class="fr mr5" style="font-size:12px;color: #7f7f7f;"><%= time_tag(@user.created_on).html_safe %></span>
|
<span class="fr mr5" style="font-size:12px;color: #7f7f7f;"><%= time_tag(@user.created_on).html_safe %></span>
|
||||||
</h3>
|
</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<% if hidden_unproject_infos %>
|
<% if hidden_unproject_infos && user_course_count > 0 %>
|
||||||
<li class="home-user-leftnav-li icons-class clear">
|
<li class="home-user-leftnav-li icons-class clear">
|
||||||
<%= link_to user_course_count > 0 ? "课程<span class='issues_nav_tag ml140'>#{user_course_count}</span>".html_safe : "课程",
|
<%= link_to user_course_count > 0 ? "课程<span class='issues_nav_tag ml140'>#{user_course_count}</span>".html_safe : "课程",
|
||||||
user_course_community_path(@user), :id => "user_course_list", :class => "fl", :target => "_blank" %>
|
user_course_community_path(@user), :id => "user_course_list", :class => "fl", :target => "_blank" %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if user_project_count > 0 %>
|
||||||
<li class="home-user-leftnav-li icons-project clear">
|
<li class="home-user-leftnav-li icons-project clear">
|
||||||
<%= link_to user_project_count > 0 ? "项目<span class='issues_nav_tag ml140'>#{user_project_count}</span>".html_safe : "项目",
|
<%= link_to user_project_count > 0 ? "项目<span class='issues_nav_tag ml140'>#{user_project_count}</span>".html_safe : "项目",
|
||||||
user_project_community_path(@user), :id => 'user_project_list', :class => "fl", :target => "_blank" %>
|
user_project_community_path(@user), :id => 'user_project_list', :class => "fl", :target => "_blank" %>
|
||||||
</li>
|
</li>
|
||||||
<% if hidden_unproject_infos %>
|
<% end %>
|
||||||
|
<% if hidden_unproject_infos && user_contest_count > 0 %>
|
||||||
<li class="home-user-leftnav-li icons-project clear">
|
<li class="home-user-leftnav-li icons-project clear">
|
||||||
<%= link_to user_contest_count > 0 ? "竞赛<span class='issues_nav_tag ml140'>#{user_contest_count}</span>".html_safe : "竞赛",
|
<%= link_to user_contest_count > 0 ? "竞赛<span class='issues_nav_tag ml140'>#{user_contest_count}</span>".html_safe : "竞赛",
|
||||||
user_contest_community_path(@user), :id => 'user_contest_list', :class => "fl", :target => "_blank" %>
|
user_contest_community_path(@user), :id => 'user_contest_list', :class => "fl", :target => "_blank" %>
|
||||||
|
|
Loading…
Reference in New Issue