-
jacknudt 有了最新动态: 附件: 2.2完成乘10运算的图灵机.mp4
-
发布时间 : 2014-11-26 10:19
+
+ <%= link_to l(:label_course_file), course_files_path(@course), :class => "f14 c_blue02" %>
+ <%= link_to "(#{@course.attachments.count})", course_files_path(@course), :class => "subnav_num c_orange" %>
+ <%= link_to( "+#{l(:label_upload_files)}", course_files_path(@course), :class => 'subnav_green ml95 c_white') if is_teacher %>
-
-
-

-
-
jacknudt 有了最新动态: 附件: 2.2完成乘10运算的图灵机.mp4附件: 2.2完成乘10运算的图灵机.mp4附件: 2.2完成乘10运算的图灵机.mp4
-
项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题
发布时间 : 2014-11-26 10:19
+
+ <%= link_to l(:label_course_board), course_boards_path(@course), :class => "f14 c_blue02" %>
+ <%= link_to "(#{@course.boards.count})", course_boards_path(@course), :class => "subnav_num c_orange" %>
+ <%= link_to( "+#{l(:label_message_new)}", course_boards_path(@course), :class => 'subnav_green ml95 c_white') if is_teacher %>
-
-
-
-

-
-
jacknudt 有了最新动态: 附件: 2.2完成乘10运算的图灵机.mp4附件: 2.2完成乘10运算的图灵机.mp4附件: 2.2完成乘10运算的图灵机.mp4
-
项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题
发布时间 : 2014-11-26 10:19
+
+ <%= link_to l(:label_course_feedback), course_feedback_path(@course), :class => "f14 c_blue02" %>
+ <%= link_to "(#{course_feedback_count})", course_feedback_path(@course), :class => "subnav_num c_orange" %>
-
-
-
-

-
-
-
-
-

-
-
jacknudt 有了最新动态: 附件: 2.2完成乘10运算的图灵机.mp4
-
发布时间 : 2014-11-26 10:19
+
+ <%= link_to l(:label_poll), poll_index_path(:polls_type => "Course", :polls_group_id => @course.id), :class => " f14 c_blue02"%>
+ <%= link_to "(#{course_poll_count})", poll_index_path(:polls_type => "Course", :polls_group_id => @course.id), :class => "subnav_num c_orange" %>
+ <%= link_to( "+#{l(:label_new_poll)}", new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => 'subnav_green c_white') if is_teacher %>
-
-
-
-

-
+
+
+
+
<%= l(:label_course_brief_introduction)%>:
+ <%= textilizable(@course.description) if @course.description && !@course.description.blank? %>
-
-
-
-

-
-
-

-
+
+
<%= l(:label_tag)%>:
+
+ <%= render :partial => 'tags/new_tag', :locals => {:obj => @course, :object_flag => "9"} %>
-
+
+
-
-
-
-
+
+ <%= render :partial => 'layouts/new_footer' %>
<%= render :partial => 'layouts/new_feedback' %>
diff --git a/app/views/tags/_new_tag.html.erb b/app/views/tags/_new_tag.html.erb
new file mode 100644
index 000000000..7db324cd7
--- /dev/null
+++ b/app/views/tags/_new_tag.html.erb
@@ -0,0 +1,23 @@
+
diff --git a/app/views/tags/_new_tag_name.html.erb b/app/views/tags/_new_tag_name.html.erb
new file mode 100644
index 000000000..a1fb3fa46
--- /dev/null
+++ b/app/views/tags/_new_tag_name.html.erb
@@ -0,0 +1,17 @@
+
+<% @tags = obj.reload.tag_list %>
+<% if non_list_all && @tags.size > 0 %>
+
+<% else %>
+
+ <% if @tags.size > 0 %>
+ <% @tags.each do |tag| %>
+
+ <%= link_to tag, :controller => "tags", :action => "index", :q => tag, :object_flag => object_flag, :obj_id => obj.id, :class => 'pt5' %>
+
+ <%= link_to('x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag,:taggable_id => obj.id, :taggable_type => object_flag) if (CourseInfos.find_by_course_id(obj.id)).try(:user_id) == User.current.id %>
+
+
+ <% end %>
+ <% end %>
+<% end %>
\ No newline at end of file
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 45d6a9d20..2618c8b46 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -1639,6 +1639,7 @@ zh:
label_course_new_homework: 新建作业
label_course_homework_list: 作业列表
label_course_homework_new: 发布作业
+ label_course_news_new: 发布通知
label_fork_homework_new: 选为作业
#wang
label_contest_userresponse: 用户留言
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index bef6abb73..e859a0a6e 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -18,4 +18,9 @@ function regexName(content)
function submitSerch(content)
{
if(regexName(content)){$("#course_search_form").submit();}
+}
+
+function show_more_msg()
+{
+ $("#course_description").toggleClass("course_description_none");
}
\ No newline at end of file
diff --git a/public/stylesheets/leftside.css b/public/stylesheets/leftside.css
index 12d0f2c4f..895d86e8f 100644
--- a/public/stylesheets/leftside.css
+++ b/public/stylesheets/leftside.css
@@ -7,19 +7,19 @@
.pr_info_logo{ border:1px solid #eaeaea; width:60px; height:60px; padding:1px;}
.pr_info_logo:hover{ border:1px solid #64bdd9; }
.pr_info_join{}
-.pr_info_join a{ color:#fff; display:block; padding:0 5px; padding-top:3px; margin-right:10px; float:left; height:19px; background:#64bdd9; text-align:center; }
+.pr_info_join_a{ color:#fff; display:block; padding:0 5px; padding-top:2px; height:20px; margin-right:5px; float:left; text-align:center; }
.pr_info_join a:hover{ background:#41a8c8;}
.pr_info_name{ color:#3e4040; font-size:14px; line-height:1.5;}
.pr_info_name:hover{ color:#3ca5c6;}
.pr_info_score{ font-size:14px; color:#3e4040; }
.pr_info_score a{ color:#ff7143;}
.pr_info_score a:hover{ color:#64bdd9;}
-.img_private{ background:url(../images/new_project/img_project.png) 0 0 no-repeat; width:32px; height:16px; color:#fff; font-size:12px; padding-left:7px; }
+.img_private{ background:url(../images/new_project/img_project.png) 0 0 no-repeat; width:33px; height:16px; color:#fff; font-size:12px; padding-left:7px; }
.info_foot_num{ color:#3ca5c6; }
.pr_info_foot{ color:#7f7f7f; margin-top:5px; }
.info_foot_num:hover{ color:#2390b2;}
-.info_box{background:#fff; padding:10px;width:222px; }
-.info_box ul li{ font-size:14px; color: #3e4040; line-height:1.9;}
+.info_box{background:#fff; padding:10px;width:220px; }
+.info_box ul li{ font-size:12px; color: #3e4040; line-height:1.7;}
/*左侧导航*/
.subNavBox{width:240px; background:#fff;margin:10px 10px 0 0;}
@@ -40,19 +40,19 @@
/*简介*/
.project_intro{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; color:#6d6d6d; line-height:1.9;}
-.course_description{max-height: 110px;overflow:hidden;}
+.course_description{max-height: 112px;overflow:hidden;}
.course_description_none{max-height: none;}
.lg-foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:220px; height:23px; cursor:pointer;}
-.lg-foot:hover{ color:#787b7e;}
+.lg-foot:hover{ color:#787b7e; border:1px solid #d4d4d4;}
/****标签(和资源库的tag样式一致)***/
.project_Label{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; margin-bottom:10px;}
a.yellowBtn{ display:inline-block;color:#0d90c3; height:22px;}
.submit{height:21px;border:0; cursor:pointer; background:url(../images/btn.png) no-repeat 0 0;width:42px; margin-top:2px; margin-left:3px; }
.isTxt{background:#fbfbfb url(../images/inputBg.png) repeat-x left top;height:22px;line-height:22px;border:1px solid #c1c1c1;padding:0 5px;color:#666666;}
-.re_tag{ width: auto; padding:0 5px; padding-top:3px; height:19px; border:1px solid #f8df8c; background:#fffce6; margin-right:5px; }
+.re_tag{ width: auto; padding:0 5px; padding-top:2px; height:20px; border:1px solid #f8df8c; background:#fffce6; margin-right:5px; }
.re_tag a{ color:#0d90c3;}
.tag_h{ }
-.tag_h span,.tag_h a{ margin-top:5px;}
+.tag_h span,.tag_h a{ margin-bottom:5px;}