Sha256: e759fb58d92dc200687b41f97cde833b10d3c5de66973c4f0c1a4d69521665a6

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

<% require 'rdfa' %>

<div class="article" id="article-<%= article.id %>">
<% rdfa_post article.permalink_url do %>
  <h1><%= rdfa_link_to_dcel_title(article.title,article.permalink_url) %></h1>

  <p class="author">
    Posted by <cite><%= rdfa_creator author_link(article) %></cite> the 
	<% rdfa_date article.published_at do %><%= article.published_at.to_formatted_s(:short) %><% end %>
  </p>

  <div class="content">
    <%= rdfa_sioc_content article.html(:body) %>

    <% if article.extended? -%>
      <div class="extended">
        <% if controller.action_name == 'index' -%>
          <p><%= link_to_permalink article,"Continue reading..." %></p>
        <% else -%>
          <%= article.html(:extended) %>
        <% end -%>
      </div>
    <% end -%>
  </div>

  <ul class="meta">
    <%= content_tag(:li, category_links(article), :class => 'categories') unless article.categories.empty? %>
 	<!-- content_tag(:li, tag_links(article), :class => 'tags') unless article.tags.empty? -->
	<li class=tags>Tags
	<% for tag in article.tags %>
		<%= link_to tag.display_name, tag.permalink_url %>
	<% end %>
	<li>
    <li>Meta
      <%= trackbacks_link(article) << ',' if article.allow_pings? %>
      <%= comments_link(article) << ',' if article.allow_comments? %>
      <a href="<%= article.permalink_url %>" rel="bookmark">permalink</a>,
      <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'rss',  :id => article %>">rss</a>,
      <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'atom', :id => article %>">atom</a>
    </li>
  </ul>
</div>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdfa-0.0.8 rdfa-typo/views/articles/_article.rhtml