+ <%= 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 } %>
+ <% end %>
+
+
+<% end %>
<%= link_to image_tag(url_to_avatar(@news.author),:width => 42,:height => 42), user_path(@news.author), :class => "problem_pic fl" %>
@@ -76,108 +89,49 @@
<% end %>
-
-
-
-
-
gugu012014-10-24
+ <% comments = @comments.reverse %>
+ <% comments.each do |comment| %>
+ <% next if comment.new_record? %>
+
+
<%= link_to image_tag(url_to_avatar(comment.author),:width => 42,:height => 42), user_path(comment.author)%>
+
+
+ <%= link_to_user_header(comment.author,false,:class => 'c_blue fb fl mb10 ') if comment.respond_to?(:author) %>
<%= format_time(comment.created_on) %>
+
+ <%= textilizable(comment.comments) %>
+
+
+
+
-
我写了一个验证身份证号码的程序,它是以一定内存空间(大概100M)换取cpu消耗,然后它的运算量就降低了,前十四位的验证就相当于转换类型再查表一样,所以它的验证号码速度比一般的方式快。如果还不明白就说明你写框架写多了,或者
-
-
-
-
-
-
-
- <%= 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 %>
-
-
+<% html_title @news.title -%>
\ No newline at end of file
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index cafe30625..23703cbcf 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -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;}
- <%= link_to_attachments @news %> -
- <% html_title @news.title -%> + + <% content_for :header_tags do %> + <%= stylesheet_link_tag 'scm' %> + <% end %> - <% content_for :header_tags do %> - <%= stylesheet_link_tag 'scm' %> - <% end %> - - -
<%= l(:label_comment_plural) %>
- <% comments = @comments.reverse %> - <% comments.each do |comment| %> - <% next if comment.new_record? %> -