-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
read.rhtml
42 lines (36 loc) · 1.32 KB
/
read.rhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!--
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description
rdf:about=""
trackback:ping="<%= @article.trackback_url %>"
dc:title="<%=h @article.title.gsub(/-+/, '-') %>"
dc:identifier="<%= @article.permalink_url %>"
dc:description="<%=h (@article.html.strip_html[0..255]).gsub(/-+/, '-') %>"
dc:creator="<%= h @article.author %>"
dc:date="<%= @article.updated_at.xmlschema %>" />
</rdf:RDF>
-->
<%= render :partial => 'article', :object => @article %>
<% if @article.allow_pings? -%>
<h5><a name="trackbacks">Trackbacks</a></h5>
<p>
Use the following link to trackback from your own site:<br />
<%= @article.trackback_url %>
</p>
<% unless @article.published_trackbacks.blank? -%>
<ol id="trackbacks" class="trackbacks">
<%= render(:partial => "trackback", :collection => @article.published_trackbacks) %>
</ol>
<% end -%>
<% end -%>
<% if @article.allow_comments? or @article.published_comments.size > 0 -%>
<h5><a name="comments">Comments</a></h5>
<p><a href="#commentform">Leave a response</a></p>
<div id="comments_div">
<%= render :partial => "comment" %>
</div>
<% end -%>
<%= render :partial => 'comment_form' if @article.allow_comments? %>