diff --git a/app/views/homework_bank/_homework_bank_list.html.erb b/app/views/homework_bank/_homework_bank_list.html.erb index 6f148ccde..a0fb2b103 100644 --- a/app/views/homework_bank/_homework_bank_list.html.erb +++ b/app/views/homework_bank/_homework_bank_list.html.erb @@ -11,11 +11,11 @@

- <%= link_to '全部', homework_bank_index_path(:type => @type), :class => 'edu-filter-cir-grey mr5 active', :id => 'homework_bank_pro_0', :remote => true %> - <%= link_to '编程', homework_bank_index_path(:type => @type, :property => 2), :class => 'edu-filter-cir-grey mr5', :id => 'homework_bank_pro_2', :remote => true %> - <%= link_to '普通', homework_bank_index_path(:type => @type, :property => 1), :class => 'edu-filter-cir-grey mr5', :id => 'homework_bank_pro_1', :remote => true %> - <%= link_to '分组', homework_bank_index_path(:type => @type, :property => 3), :class => 'edu-filter-cir-grey mr5', :id => 'homework_bank_pro_3', :remote => true %> - <%= link_to '实训', homework_bank_index_path(:type => @type, :property => 4), :class => 'edu-filter-cir-grey mr5', :id => 'homework_bank_pro_4', :remote => true %> + <%= link_to '全部', homework_bank_index_path(:type => @type), :class => 'edu-filter-cir-grey mr5 active font-12 fl', :id => 'homework_bank_pro_0', :remote => true %> + <%= link_to '编程', homework_bank_index_path(:type => @type, :property => 2), :class => 'edu-filter-cir-grey mr5 font-12 fl', :id => 'homework_bank_pro_2', :remote => true %> + <%= link_to '普通', homework_bank_index_path(:type => @type, :property => 1), :class => 'edu-filter-cir-grey mr5 font-12 fl', :id => 'homework_bank_pro_1', :remote => true %> + <%= link_to '分组', homework_bank_index_path(:type => @type, :property => 3), :class => 'edu-filter-cir-grey mr5 font-12 fl', :id => 'homework_bank_pro_3', :remote => true %> + <%= link_to '实训', homework_bank_index_path(:type => @type, :property => 4), :class => 'edu-filter-cir-grey mr5 font-12 fl', :id => 'homework_bank_pro_4', :remote => true %> <%#= link_to '试卷', homework_bank_path(:type => @type, :property => 5), :class => 'edu-filter-cir-grey mr5', :remote => true %>

新建 diff --git a/app/views/homework_bank/index.html.erb b/app/views/homework_bank/index.html.erb index ee3b5d3bf..b22e25657 100644 --- a/app/views/homework_bank/index.html.erb +++ b/app/views/homework_bank/index.html.erb @@ -1,10 +1,9 @@ @@ -14,11 +13,11 @@
-
    -
  • + diff --git a/app/views/homework_bank/index.js.erb b/app/views/homework_bank/index.js.erb index 4aad8261b..238c42b62 100644 --- a/app/views/homework_bank/index.js.erb +++ b/app/views/homework_bank/index.js.erb @@ -15,6 +15,6 @@ $(".edu-filter-cir-grey").removeClass("active"); <% end %> <% end %> if(<%= params[:type] == '2' %>){ - $("#edu-tab-nav-1").removeClass("edu-new-tab-hover"); - $("#edu-tab-nav-2").addClass("edu-new-tab-hover"); + $("#edu-tab-nav-1").removeClass("background-orange"); + $("#edu-tab-nav-2").addClass("background-orange"); } \ No newline at end of file diff --git a/app/views/homework_bank/show.html.erb b/app/views/homework_bank/show.html.erb index dee3499d5..34fac453f 100644 --- a/app/views/homework_bank/show.html.erb +++ b/app/views/homework_bank/show.html.erb @@ -7,11 +7,11 @@ @@ -31,12 +31,12 @@
    -
      -
    • +
        +
      • 详情
      • <% if @is_admin %> -
      • +
      • 参考答案
      • <% end %> diff --git a/app/views/homework_common/_homework_index_tab.html.erb b/app/views/homework_common/_homework_index_tab.html.erb index 157039c4a..c28992cc8 100644 --- a/app/views/homework_common/_homework_index_tab.html.erb +++ b/app/views/homework_common/_homework_index_tab.html.erb @@ -1,9 +1,9 @@ - edu-filter-cir-grey mr5 " data-remote="true">全部 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">全部 <% if @is_teacher %> - edu-filter-cir-grey mr5" data-remote="true">挂起 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">挂起 <% end %> - edu-filter-cir-grey mr5" data-remote="true">提交中 - edu-filter-cir-grey mr5" data-remote="true">匿评中 - edu-filter-cir-grey mr5" data-remote="true">申诉中 - edu-filter-cir-grey mr5" data-remote="true">评阅中 - edu-filter-cir-grey mr5" data-remote="true">已结束 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">提交中 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">匿评中 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">申诉中 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">评阅中 + edu-filter-cir-grey mr5 font-12 fl" data-remote="true">已结束 diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 0c125e6c7..4a1d15d40 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -12,11 +12,11 @@ }); function HoverLi(n){ for(var i=1;i<=3;i++){ - $('#edu-tab-nav-'+i).removeClass('edu-new-tab-hover'); + $('#edu-tab-nav-'+i).removeClass('background-orange'); $('#edu-tab-con-'+i).addClass('undis'); } $('#edu-tab-con-'+n).removeClass('undis'); - $('#edu-tab-nav-'+n).addClass('edu-new-tab-hover'); + $('#edu-tab-nav-'+n).addClass('background-orange'); } @@ -36,15 +36,15 @@
        -
          -
        • +
            +
          • 作业详情
          • -
          • +
          • 作品列表
          • <% if @homework.homework_type!= 4 && @is_teacher || (@homework.answer_public && @homework.homework_detail_manual.comment_status > 2) %> -
          • +
          • 参考答案
          • <% end %> diff --git a/app/views/subjects/show.html.erb b/app/views/subjects/show.html.erb index ca4d5a562..7b66e742c 100644 --- a/app/views/subjects/show.html.erb +++ b/app/views/subjects/show.html.erb @@ -4,10 +4,10 @@

            简介 <% if User.current.manager_of_subject?(@subject) && @subject.status == 0 %> - + <% end %>

            -
            +
            <%= @subject.description.blank? ? "暂未填写" : @subject.description %>
            @@ -60,8 +60,9 @@ <% shixun = stage_shixun.shixun %>
          • - - <%= shixun.name %> + <%= index + 1 %> + + <%= shixun.name %>
          • diff --git a/app/views/syllabuses/show.html.erb b/app/views/syllabuses/show.html.erb index 3a2135910..2642c002a 100644 --- a/app/views/syllabuses/show.html.erb +++ b/app/views/syllabuses/show.html.erb @@ -58,14 +58,14 @@
            -
              -
            • +
                +
              • 授课大纲
              • -
              • +
              • <%= link_to '课程资源库', syllabus_resources_syllabus_path(@syllabus), :remote => true, :class => 'tab_type' %>
              • -
              • +
              • <%= link_to '课程题库', syllabus_homeworks_syllabus_path(@syllabus), :remote => true, :class => 'tab_type' %>
              diff --git a/app/views/syllabuses/syllabus_homeworks.js.erb b/app/views/syllabuses/syllabus_homeworks.js.erb index 7d7684ab6..d02e64f8a 100644 --- a/app/views/syllabuses/syllabus_homeworks.js.erb +++ b/app/views/syllabuses/syllabus_homeworks.js.erb @@ -1,7 +1,8 @@ $("#edu-tab-con-3").html("<%= escape_javascript(render :partial => 'syllabus_homeworks') %>"); -document.getElementById('edu-tab-nav-1').className='edu-tab-nomal'; -document.getElementById('edu-tab-nav-2').className='edu-tab-nomal'; + + +$(".new-tab-nav").removeClass("background-orange"); document.getElementById('edu-tab-con-1').className='undis'; document.getElementById('edu-tab-con-2').className='undis'; -document.getElementById('edu-tab-nav-3').className='edu-new-tab-hover'; +$("#edu-tab-nav-3").addClass("background-orange"); document.getElementById('edu-tab-con-3').className='dis'; diff --git a/app/views/syllabuses/syllabus_resources.js.erb b/app/views/syllabuses/syllabus_resources.js.erb index c5e76fc05..56808b536 100644 --- a/app/views/syllabuses/syllabus_resources.js.erb +++ b/app/views/syllabuses/syllabus_resources.js.erb @@ -1,7 +1,7 @@ $("#edu-tab-con-2").html("<%= escape_javascript(render :partial => 'syllabus_resources') %>"); -document.getElementById('edu-tab-nav-1').className='edu-tab-nomal'; -document.getElementById('edu-tab-nav-3').className='edu-tab-nomal'; + +$(".new-tab-nav").removeClass("background-orange"); document.getElementById('edu-tab-con-1').className='undis'; document.getElementById('edu-tab-con-3').className='undis'; -document.getElementById('edu-tab-nav-2').className='edu-new-tab-hover'; +$("#edu-tab-nav-2").addClass("background-orange"); document.getElementById('edu-tab-con-2').className='dis'; diff --git a/public/javascripts/edu/syllabus.js b/public/javascripts/edu/syllabus.js index c98a3dae4..351555569 100644 --- a/public/javascripts/edu/syllabus.js +++ b/public/javascripts/edu/syllabus.js @@ -2,12 +2,14 @@ var syMemberLastSearchCondition = ''; function g(o){return document.getElementById(o);} function HoverLi(n){ + $('.new-tab-nav').removeClass("background-orange"); for(var i=1;i<=3;i++){ - g('edu-tab-nav-'+i).className='edu-tab-nomal'; + //g('edu-tab-nav-'+i).className='edu-tab-nomal'; g('edu-tab-con-'+i).className='undis'; } g('edu-tab-con-'+n).className='dis'; - g('edu-tab-nav-'+n).className='edu-new-tab-hover'; + $('#edu-tab-nav-'+n).addClass("background-orange"); + //g('edu-tab-nav-'+n).className='edu-new-tab-hover'; } // 课程首页 diff --git a/public/stylesheets/css/edu-public.css b/public/stylesheets/css/edu-public.css index 411fc8c91..ca7d6c5a7 100644 --- a/public/stylesheets/css/edu-public.css +++ b/public/stylesheets/css/edu-public.css @@ -294,3 +294,8 @@ input::-ms-input-placeholder,textarea::-ms-input-placeholder {color:#c4c4c4;} /*班级讨论区置顶的样式*/ .btn-cir-red {background: red; color: #fff; font-weight: normal;} .btn-cir {display: inline-block;padding: 0px 5px;border-radius: 25px;border-radius: 15px;line-height: 20px;font-size: 12px;} + +/*圆形绿色背景---------22*/ +.panel-inner-icon{width: 22px;height: 22px;line-height: 22px;border-radius: 50%;background: #29bd8b;display: block;text-align: center} +/*15*/ +.panel-inner-icon{width: 18px;height: 18px;line-height: 18px;border-radius: 50%;background: #29bd8b;display: block;text-align: center} \ No newline at end of file diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css index f3986b9fb..2157c975a 100644 --- a/public/stylesheets/css/taskstyle.css +++ b/public/stylesheets/css/taskstyle.css @@ -64,7 +64,6 @@ a.rightbar-pause{ color:#29bd8b; font-size: 18px; margin-right:15px; margin-top: .content-submitbox{ width:120px; margin: 15px auto; height:135px;} .panel-inner{ background:#EFF2F7; margin:15px; padding:15px;} .panel-inner-title{ font-size: 14px; color: #666; max-width:85%; line-height:30px;word-wrap: break-word; margin-bottom: 10px} -.panel-inner-icon{width: 22px;height: 22px;line-height: 22px;border-radius: 50%;background: #29bd8b;display: block;text-align: center} .panel-footer{ min-width:1000px; height: 210px!important;} /* 弹框 */ .task-popup-text-center{ text-align: center; color: #666;}