|
|
@ -81,101 +81,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--导师排行榜-->
|
|
|
|
<!--导师排行榜-->
|
|
|
|
<div class="pt60 pb60 mb30 mentor-ranking">
|
|
|
|
# <div class="pt60 pb60 mb30 mentor-ranking">
|
|
|
|
<div class="educontent">
|
|
|
|
# <div class="educontent">
|
|
|
|
<div class="edu-txt-center">
|
|
|
|
# <div class="edu-txt-center">
|
|
|
|
<p class="color-dark edu-txt-center font-24" style="line-height: 30px">导师排行榜</p>
|
|
|
|
# <p class="color-dark edu-txt-center font-24" style="line-height: 30px">导师排行榜</p>
|
|
|
|
<p class="color-grey-cd font-12">MENTOR RANKING</p>
|
|
|
|
# <p class="color-grey-cd font-12">MENTOR RANKING</p>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
<div class="ranking clearfix">
|
|
|
|
# <div class="ranking clearfix">
|
|
|
|
<ul class="grade color-dark">
|
|
|
|
# <ul class="grade color-dark">
|
|
|
|
<% if @tea_users[1] %>
|
|
|
|
# <% if @tea_users[1] %>
|
|
|
|
<li class="mt35 pr">
|
|
|
|
# <li class="mt35 pr">
|
|
|
|
<img src="/images/educoder/huangguan-two.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan-two.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%= (@tea_users[1].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[1])) %>
|
|
|
|
# <a href="/users/<%= (@tea_users[1].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[1])) %>
|
|
|
|
<span class="task-hide rankName"><%= @tea_users[1].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @tea_users[1].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% if @tea_users[0] %>
|
|
|
|
# <% if @tea_users[0] %>
|
|
|
|
<li class="pr">
|
|
|
|
# <li class="pr">
|
|
|
|
<img src="/images/educoder/huangguan.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%= (@tea_users[0].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[0])) %>
|
|
|
|
# <a href="/users/<%= (@tea_users[0].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[0])) %>
|
|
|
|
<span class="task-hide rankName"><%= @tea_users[0].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @tea_users[0].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% if @tea_users[2] %>
|
|
|
|
# <% if @tea_users[2] %>
|
|
|
|
<li class="mt35 pr">
|
|
|
|
# <li class="mt35 pr">
|
|
|
|
<img src="/images/educoder/huangguan-three.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan-three.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%=(@tea_users[2].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[2])) %>
|
|
|
|
# <a href="/users/<%=(@tea_users[2].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@tea_users[2])) %>
|
|
|
|
<span class="task-hide rankName"><%= @tea_users[2].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @tea_users[2].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
</ul>
|
|
|
|
# </ul>
|
|
|
|
<br/>
|
|
|
|
# <br/>
|
|
|
|
<ul class="grade mt30">
|
|
|
|
# <ul class="grade mt30">
|
|
|
|
<% if @tea_users.size > 3 %>
|
|
|
|
# <% if @tea_users.size > 3 %>
|
|
|
|
<% @tea_users[3..@tea_users.size].each do |t_u| %>
|
|
|
|
# <% @tea_users[3..@tea_users.size].each do |t_u| %>
|
|
|
|
<li>
|
|
|
|
# <li>
|
|
|
|
<a href="/users/<%= t_u.try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(t_u)) %>
|
|
|
|
# <a href="/users/<%= t_u.try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(t_u)) %>
|
|
|
|
<span class="task-hide rankName"><%= t_u.try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= t_u.try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
</ul>
|
|
|
|
# </ul>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
<!--程序员排行榜-->
|
|
|
|
<!--程序员排行榜-->
|
|
|
|
<div class="pt60 pb60 mb30 pro-ranking">
|
|
|
|
# <div class="pt60 pb60 mb30 pro-ranking">
|
|
|
|
<div class="educontent">
|
|
|
|
# <div class="educontent">
|
|
|
|
<div class="edu-txt-center">
|
|
|
|
# <div class="edu-txt-center">
|
|
|
|
<p class="color-dark edu-txt-center font-24" style="line-height: 30px">程序员排行榜</p>
|
|
|
|
# <p class="color-dark edu-txt-center font-24" style="line-height: 30px">程序员排行榜</p>
|
|
|
|
<p class="color-grey-cd font-12">PROGRAMMER RANKING</p>
|
|
|
|
# <p class="color-grey-cd font-12">PROGRAMMER RANKING</p>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
<div class="ranking clearfix">
|
|
|
|
# <div class="ranking clearfix">
|
|
|
|
<ul class="grade color-dark">
|
|
|
|
# <ul class="grade color-dark">
|
|
|
|
<% if @stu_users[1] %>
|
|
|
|
# <% if @stu_users[1] %>
|
|
|
|
<li class="mt35 pr">
|
|
|
|
# <li class="mt35 pr">
|
|
|
|
<img src="/images/educoder/huangguan-two.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan-two.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%= @stu_users[1].try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[1])) %>
|
|
|
|
# <a href="/users/<%= @stu_users[1].try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[1])) %>
|
|
|
|
<span class="task-hide rankName"><%= @stu_users[1].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @stu_users[1].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% if @stu_users[0] %>
|
|
|
|
# <% if @stu_users[0] %>
|
|
|
|
<li class="pr">
|
|
|
|
# <li class="pr">
|
|
|
|
<img src="/images/educoder/huangguan.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%= @stu_users[0].try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[0])) %>
|
|
|
|
# <a href="/users/<%= @stu_users[0].try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[0])) %>
|
|
|
|
<span class="task-hide rankName"><%= @stu_users[0].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @stu_users[0].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% if @stu_users[2] %>
|
|
|
|
# <% if @stu_users[2] %>
|
|
|
|
<li class="mt35 pr">
|
|
|
|
# <li class="mt35 pr">
|
|
|
|
<img src="/images/educoder/huangguan-three.png" class="huangguan"/>
|
|
|
|
# <img src="/images/educoder/huangguan-three.png" class="huangguan"/>
|
|
|
|
<a href="/users/<%= (@stu_users[2].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[2])) %>
|
|
|
|
# <a href="/users/<%= (@stu_users[2].try(:login)) %>" class="color-dark"><%= image_tag(url_to_avatar(@stu_users[2])) %>
|
|
|
|
<span class="task-hide rankName"><%= @stu_users[2].try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= @stu_users[2].try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
</ul>
|
|
|
|
# </ul>
|
|
|
|
<br/>
|
|
|
|
# <br/>
|
|
|
|
<ul class="grade mt30">
|
|
|
|
# <ul class="grade mt30">
|
|
|
|
<% if @stu_users.size > 3 %>
|
|
|
|
# <% if @stu_users.size > 3 %>
|
|
|
|
<% @stu_users[3..@stu_users.size].each do |e_u| %>
|
|
|
|
# <% @stu_users[3..@stu_users.size].each do |e_u| %>
|
|
|
|
<li>
|
|
|
|
# <li>
|
|
|
|
<a href="/users/<%= e_u.try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(e_u)) %>
|
|
|
|
# <a href="/users/<%= e_u.try(:login) %>" class="color-dark"><%= image_tag(url_to_avatar(e_u)) %>
|
|
|
|
<span class="task-hide rankName"><%= e_u.try(:show_name) %></span>
|
|
|
|
# <span class="task-hide rankName"><%= e_u.try(:show_name) %></span>
|
|
|
|
</a>
|
|
|
|
# </a>
|
|
|
|
</li>
|
|
|
|
# </li>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
<% end %>
|
|
|
|
# <% end %>
|
|
|
|
</ul>
|
|
|
|
# </ul>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
</div>
|
|
|
|
# </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|