作业相关页面的导航调整
This commit is contained in:
parent
e15716ca91
commit
40f47b037c
|
|
@ -1,5 +1,5 @@
|
|||
<div class="edu-class-container " >
|
||||
<p class="mb10 font-14"><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) %>">作业列表</a>
|
||||
<p class="mb10 font-14"><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>
|
||||
<% if @index %>
|
||||
>#<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
.CodeMirror-merge {position: relative; border: 0px solid #ddd;white-space: pre;}
|
||||
</style>
|
||||
<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) %>">作业列表</a>
|
||||
<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>
|
||||
<% if @index %>
|
||||
>#<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey" ></i>
|
||||
<%= link_to @course.name, course_path(@course) %> >
|
||||
<%= link_to '作业列表', homework_common_index_path(:course => @course, :homework_type => @homework_type) %> >
|
||||
<%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @course, :homework_type => @homework_type) %> >
|
||||
编辑</p>
|
||||
<%= form_for @homework, :html => {:id => 'homework_common_submit_form'} do |f| %>
|
||||
<% if @homework_type == 1 %>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey" ></i>
|
||||
<%= link_to @course.name, course_path(@course) %> >
|
||||
<%= link_to '作业列表', homework_common_index_path(:course => @course, :homework_type => @homework_type) %> >
|
||||
<%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @course, :homework_type => @homework_type) %> >
|
||||
新建</p>
|
||||
<%= labelled_form_for @homework, :url =>{:controller=>'homework_common',:action => 'create', :course => @course.id}, :html => {:id => 'homework_common_submit_form'}, :method => "post" do |f| %>
|
||||
<% if @homework_type == 1 %>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= link_to @course.name, course_path(@course) %>
|
||||
> <%= link_to '作业列表', homework_common_index_path(:course => @course.id, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %>
|
||||
> <%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @course.id, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %>
|
||||
</p>
|
||||
|
||||
<div class="edu-con-top clearfix user_bg_shadow">
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
<div class="edu-class-container">
|
||||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey" ></i>
|
||||
<%= link_to @course.name, course_path(@course) %> > <%= link_to '作业列表', homework_common_index_path(:course => @course, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %></p>
|
||||
<%= link_to @course.name, course_path(@course) %> > <%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @course, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %></p>
|
||||
<div class="edu-con-top clearfix mb15 user_bg_shadow">
|
||||
<p class="ml15 fl color-grey"><i class="fa fa-lock mr5" ></i><%= @homework.name %></p>
|
||||
<%= link_to '返回', homework_common_index_path(:course => @homework.course_id, :homework_type => @homework.homework_type), :class => 'fr font-12 mr15 mt3 link-color-grey' %>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="edu-class-container">
|
||||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= link_to @homework.course.name, course_path(@homework.course) %> > <%= link_to '作业列表', homework_common_index_path(:course => @homework.course_id, :homework_type => @homework.homework_type) %> > #<%= get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1 %></p>
|
||||
<%= link_to @homework.course.name, course_path(@homework.course) %> > <%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @homework.course_id, :homework_type => @homework.homework_type) %> > #<%= get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1 %></p>
|
||||
<div class="edu-con-top user_bg_shadow clearfix">
|
||||
<p class="ml15 fl color-grey">
|
||||
<% unless @homework.is_public %>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="edu-class-container">
|
||||
<p class="mb10">
|
||||
<i class="fa fa-map-marker mr5 color-grey" ></i>
|
||||
<%= link_to @course.name, course_path(@course) %> > <%= link_to '作业列表', homework_common_index_path(:course => @course, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %></p>
|
||||
<%= link_to @course.name, course_path(@course) %> > <%= link_to "#{@homework.homework_type_ch}作业", homework_common_index_path(:course => @course, :homework_type => @homework.homework_type) %> > #<%= link_to (get_hw_index(@homework, @is_teacher, @homework.homework_type) + 1), student_work_index_path(:homework => @homework.id) %></p>
|
||||
<div class="edu-con-top clearfix mb15 user_bg_shadow">
|
||||
<p class="ml15 fl color-grey"><i class="fa fa-lock mr5" ></i><%= @homework.name %></p>
|
||||
<%= link_to '返回', homework_common_index_path(:course => @homework.course_id, :homework_type => @homework.homework_type), :class => 'fr font-12 mr15 mt3 link-color-grey' %>
|
||||
|
|
|
|||
|
|
@ -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) %>">作业列表</a> >
|
||||
<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) %> >
|
||||
<% 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) %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue