问题的修改

This commit is contained in:
miss 2017-09-22 20:35:09 +08:00
parent 09c0f974c6
commit 60d04af7c6
4 changed files with 46 additions and 43 deletions

View File

@ -6,32 +6,32 @@
<%= render :partial => "welcome/no_data" %>
</div>
<% else %>
<div class="task-pm-content ">
<div class="task-pm-box mt30 mb30 box_bg_shandow bor-grey-e">
<div class="panel-header clearfix">
<h3 class="fl mt color-black font-16" style=" height:40px;line-height:40px;">学员列表</h3>
</div>
<table class="panel-new-table panel-table-pd15" cellpadding="0" cellspacing="0">
<tbody>
<% @statistics.each do |statistics| %>
<tr>
<td class="" style="display: flex;align-items: center;justify-content: center;">
<!--<img class="picture" src="/images/../images/bigdata/bigdata-logo.png" alt="头像" style="width:36px;height:36px;border-radius:18px;">-->
<%= link_to image_tag(url_to_avatar(statistics.owner), :width => "36", :height => "36", :alt => "头像"), user_path(statistics.owner), :target => '_blank', :class => "", :style => "border-radius:18px;"%>
</td>
<td >
<%= link_to statistics.owner.try(:show_name), user_path(statistics.owner), :class => "panel-table-name hide fl color-grey" %>
</td>
<td><%= format_time(statistics.created_at) %> 开启</td>
<td>
<div style="padding:10px 0;background:#fff;" class="fl mt5">
<div class="panel-slider-bg ">
<span class="panel-slider-inner03 " style = "width:<%= statistics.current_stage*100.to_f / statistics.games.count %>%"></span>
</div>
</div>
<span class="panel-slider-txt fl ml30">挑战至第<%= statistics.current_stage %>关/共<%= statistics.games.count %>关</span>
</td>
<td>
<div class="task-pm-content ">
<div class="task-pm-box mt30 mb30 box_bg_shandow bor-grey-e">
<div class="panel-header clearfix">
<h3 class="fl mt color-black font-16" style=" height:40px;line-height:40px;">学员列表</h3>
</div>
<table class="panel-new-table panel-table-pd15" cellpadding="0" cellspacing="0">
<tbody>
<% @statistics.each do |statistics| %>
<tr>
<td class="" style="display: flex;align-items: center;justify-content: center;">
<!--<img class="picture" src="/images/../images/bigdata/bigdata-logo.png" alt="头像" style="width:36px;height:36px;border-radius:18px;">-->
<%= link_to image_tag(url_to_avatar(statistics.owner), :width => "36", :height => "36", :alt => "头像"), user_path(statistics.owner), :target => '_blank', :class => "", :style => "border-radius:18px;"%>
</td>
<td >
<%= link_to statistics.owner.try(:show_name), user_path(statistics.owner), :class => "panel-table-name hide fl color-grey" %>
</td>
<td><%= format_time(statistics.created_at) %> 开启</td>
<td>
<div style="padding:10px 0;background:#fff;" class="fl mt5">
<div class="panel-slider-bg ">
<span class="panel-slider-inner03 " style = "width:<%= statistics.current_stage*100.to_f / statistics.games.count %>%"></span>
</div>
</div>
<span class="panel-slider-txt fl ml30">挑战至第<%= statistics.current_stage %>关/共<%= statistics.games.count %>关</span>
</td>
<td>
<span class=" mr20">
<% if statistics.total_score == 0 %>
--
@ -39,19 +39,19 @@
<span style="color:#29bd8b;font-weight:bold;" class="font-14"> + <%= statistics.total_score %></span> 经验值
<% end %>
</span>
</td>
</tr>
<% end %>
</tbody>
</table>
<div style="text-align:center;margin-top:20px;margin-bottom:20px;" >
<div class="pages_right_min" style="width:auto; display:inline-block;">
<ul id="homework_pository_ref_pages">
<%= pagination_links_full @statistic_pages, @statistics_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
</ul>
<div class="cl"></div>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
<div style="text-align:center;margin-top:20px;margin-bottom:20px;" >
<div class="pages_right_min" style="width:auto; display:inline-block;">
<ul id="homework_pository_ref_pages">
<%= pagination_links_full @statistic_pages, @statistics_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
</ul>
<div class="cl"></div>
</div>
</div>
</div> 
</div>
</div> 
</div>
<% end %>

View File

@ -2,7 +2,7 @@
<%= stylesheet_link_tag "/codemirror/lib/codemirror" %>
<div class="edu-class-container">
<p class="mb10"><i class="fa fa-map-marker mr5 color-grey"></i><a href="<%= course_path(@course) %>"><%= @course.name %></a> > <a href="<%= homework_common_index_path(:course => @course.id, :homework_type => @homework.homework_type) %>"><%= @homework.homework_type_ch %>作业</a> >
<%#= link_to get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1, student_work_index_path(:homework => @homework.id) %> >
<%#= link_to get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1, student_work_index_path(:homework => @homework.id) %>
<a href="<%= student_work_index_path(:homework => @homework.id) %>">#<%= get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1 %></a>
<% if @is_teacher || @work.user == User.current || (@homework.homework_detail_manual.comment_status != 3 && @homework.homework_detail_manual.comment_status != 4) %>
<%= link_to @work.user.try(:show_real_name), user_path(@work.user) %>

View File

@ -2,8 +2,7 @@
<p class="edu-con-top clearfix" style="height: 50px; border: none;">
<a href="<%= syllabuses_path(:type => 1, :tab => @tab) %>" class="fl ml15 edu-filter-cir-grey mr5 font-12 active mt12" data-remote="true" id="syllabuses_processing">正在进行</a>
<a href="<%= syllabuses_path(:type => 2, :tab => @tab) %>" class="fl edu-filter-cir-grey mr5 font-12 mt12" data-remote="true" id="syllabuses_end">已结束</a>
<a href="/courses/new" class="white-btn orange-btn fr font-14 mr30 " style="margin-top:10px">+&nbsp;新建</a>
<a href="/courses/join_private_courses" class="white-btn orange-btn fr mr20 font-14 " style="margin-top:10px" data-method="post" data-remote="true" rel="nofollow" >+&nbsp;加入课堂</a>
</p>
<div id="my_syllabuses">
<%= render :partial => "syllabuses/my_syllabuses" %>

View File

@ -15,6 +15,10 @@
<li id="edu-tab-nav-3" class="new-tab-nav">
<%=link_to "我参与的", syllabuses_path(:tab => 3), :class => "tab_type font-16", :remote => true %>
</li>
<li>
<a href="/courses/new" class="white-btn orange-btn fr font-16 " style="margin-top:10px">+&nbsp;新建</a>
<a href="/courses/join_private_courses" class="white-btn orange-btn fr mr20 font-16 " style="margin-top:10px" data-method="post" data-remote="true" rel="nofollow" >+&nbsp;加入课堂</a>
</li>
</ul>
<div class="cl"></div>