- <%= watcher_link(@news, User.current) %>
- <%= link_to(l(:button_edit),
- edit_news_path(@news),
- :class => 'icon icon-edit',
- :accesskey => accesskey(:edit),
- :onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @course) %>
- <%= delete_link news_path(@news) if User.current.allowed_to?(:manage_news, @course) %>
+
+
课程通知
-
-
<%=h @news.title %>
-
<% if authorize_for_course('news', 'edit') %>
<%= labelled_form_for :news, @news, :url => news_path(@news),
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
- <%#= submit_tag l(:button_save) %>
- <%= link_to l(:button_save), "#", :onclick => 'submitNews();',:onmouseover => 'this.focus()',:class => 'ButtonColor m3p10' %>
- <%#= preview_link preview_news_path(:course_id => @course, :id => @news), 'news-form',target='preview',{:class => 'whiteButton m3p10'} %>
- <%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;',:class => 'ButtonColor m3p10' %>
<% end %>
<% end %>
-
+
+
+
+
+ <% content_for :header_tags do %>
+ <%= stylesheet_link_tag 'scm' %>
+ <% end %>
+
+
+<% html_title @news.title -%>
\ No newline at end of file
diff --git a/config/locales/commons/zh.yml b/config/locales/commons/zh.yml
index a0eb6e74a..d21d90174 100644
--- a/config/locales/commons/zh.yml
+++ b/config/locales/commons/zh.yml
@@ -205,6 +205,8 @@ zh:
button_save: 保存
button_back: 返回
button_cancel: 取消
+ label_cancel_with_space: 取 消
+ label_comment_with_space: 评 论
label_submit: 提交
button_project_tags_add: 增加
label_more: "更多>>"
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 38a69d72e..4e64bd490 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -176,7 +176,7 @@ a.wzan_visited{background:url(images/pic_zan.png) 0 0 no-repeat;}
.msg_box{ width:670px; height:173px; border-bottom:1px dashed #CCC; padding-top:10px;}
.msg_box h4{ }
.msg_box textarea{width:658px;height:90px;padding:5px;overflow:hidden;background-color: #ffffff; border:1px solid #CCC; margin:5px 0px; color:#666; font-size:12px; }
-.msg_box a{ float:right; display:block; width:50px; height:22px; background:#15bccf; padding-top:3px; color:#fff; margin-left:10px; text-align:center; margin-top:5px; }
+/*.msg_box a{ float:right; display:block; width:50px; height:22px; background:#15bccf; padding-top:3px; color:#fff; margin-left:10px; text-align:center; margin-top:5px; }*/
.msg_box a:hover{ background-color:#03a1b3; text-decoration:none;}
@@ -216,7 +216,7 @@ a:hover.ping_sub{ background:#14a8b9;}
.ping_dispic a{ display:block; height:46px; width:46px; border:1px solid #CCC; padding:1px; float:left;}
.ping_dispic a:hover{border:1px solid #15bccf;}
.ping_discon{ float:left; width:610px; margin-left:10px; }
-.ping_distop span{ float:left;}
+/*.ping_distop span{ float:left;}*/
.ping_distop p{ color:#5f5f5f;}
.ping_disfoot a{ float:right; color: #6883b6; margin-left:5px; margin-bottom:5px;}
.ping_distop span a{ float:right; width:20px; height:20px; background:url(images/star.png) -24px 0 no-repeat; margin-right:3px;}
@@ -338,7 +338,7 @@ a:hover.st_add{ color:#ff8e15;}
a.link_file{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; color:#64bdd9; }
a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
-.r_txt_tit{width:510px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf; float:left; color:#09658c; font-size:14px;}
+.r_txt_tit{width:500px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf; float:left; color:#09658c; font-size:14px;}
+
<%=h @news.title %>
+ <%= watcher_link(@news, User.current) %> + <%= link_to(l(:button_edit), + edit_news_path(@news), + :class => 'talk_edit fr', + :accesskey => accesskey(:edit), + :onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @course) %> + <%= delete_link(news_path(@news),:class => 'talk_edit fr') if User.current.allowed_to?(:manage_news, @course) %> + +<%= l(:label_create_time) %> : <%= format_time(@news.created_on) %>
- - <% if @news.commentable? %> -
- <%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %> -
- <%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> -- <%= submit_tag l(:button_add) %> -
- <% end %> - <% end %> - - <% html_title @news.title -%> + +<%= l(:label_comment_add) %>
+ <%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %> ++ <%= l(:label_cancel_with_space) %> + <%= l(:label_comment_with_space) %> - -
-<%= l(:label_comment_plural) %>
+ + <% end %> +