read.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- <div class="article" id="article-<%= @article.id %>">
- <h1><%= link_to_permalink(@article,@article.title) %></h1>
- <%= @article.html(:body) %>
- <%= @article.html(:extended) %>
- <div id='meta'>
- <p>
- <%= _(@article.published_at.utc.strftime(_("%%a, %%d %%b %%Y %%H:%%M", @article.published_at.utc))) %>
- <%= category_links(@article) unless @article.categories.empty? %>
- </p>
- <p><%= tag_links(@article) unless @article.tags.empty? %></p>
- </div>
- <% if @article.user.twitter and @article.user.show_twitter %>
- <h2 id='twitter'>
- <%= _("If you liked this article you can %s", link_to(_("add me to Twitter"), "http://twitter.com/#{@article.user.twitter}"))%>
- </h2>
- <% end %>
- <% if @article.allow_comments? or @article.published_comments.size > 0 -%>
- <h3 class="feedback" id="commentaires">
- <%= display_comments_counter(@article) %>
- <a href="#commentform" ref="nofollow"> »</a>
- </h3>
- <%= render :partial => "/articles/comment_list" %>
- <% end -%>
- <%= render :partial => '/articles/comment_form' if @article.allow_comments? %>
- <% if @article.allow_pings? -%>
- <h5 class="feedback" id="trackbacks"><%= _('Trackbacks for')%> <em><%= @article.title %></em></h5>
- <% unless @article.published_trackbacks.blank? -%>
- <ol id="trackbacks" class="trackbacks">
- <%= render(:partial => "/articles/trackback", :collection => @article.published_trackbacks) %>
- </ol>
- <% end -%>
- <% end -%>
- </div>