_article.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
源码类别:

Ajax

开发平台:

Others

  1. <div class='category-excerpt <%= "border" if @article_counter >= 0 %>' id="article-<%= article.id %>">
  2.   <h2><%= (controller.controller_name == 'redirect') ? article.title : link_to_permalink(article,article.title) %></h2>
  3.     <% if article.excerpt? %>
  4.       <%= article.excerpt %>
  5.     <% else %>
  6.       <% if article.extended %>
  7.         <% article.body = article.body + link_to_permalink(article, "[...]") %>
  8.         <%= article.html(:body) %>
  9.       <% else %>
  10.         <%= article.html(:body) %>
  11.         <%= article.html(:extended) %>
  12.       <% end %>
  13.     <% end %>
  14.   <div class='author'>
  15.     Published on <%= _(article.published_at.utc.strftime(_("%%a, %%d %%b %%Y %%H:%%M", article.published_at.utc))) %>
  16.   </div>
  17.   <div class='comments'>
  18.     <%= display_comments_counter(article) %>
  19.   </div>
  20. </div>
  21. <% @article_counter+=1 %>