Sha256: 8112459e9a6256de4298e7c43ed5df184c1f30a6d33677d26f82206cb3f66289

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

<div class="atomentry" id="article-<%= article.id %>">
  <h2 class="title">
    <%= (controller.action_name.include? 'permalink') ? article.title : link_to_permalink(article,article.title) %>
    <%= content_tag(:span, article.published_comments.size, :class => 'comment_count') if article.published_comments.size > 0 %>
  </h2>

  <p class="author">
    <%= _("Posted by")%> <cite><%= author_link(article) %></cite>
    <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr>
  </p>

  <div class="content">
    <% if article.password.nil? or article.password.empty? %>
      <% unless controller.action_name == 'redirect' %>
        <% if article.excerpt? %>
          <%= article.excerpt %>
        <% else %>
          <%= article.html(:body) %>
          <% if article.extended? %>
            <div class="extended">
              <p><%= link_to_permalink article,"Continue reading..." %></p>
            </div>
          <% end %>
        <% end %>
      <% else %>
        <%= article.html(:body) %>
        <div class="extended">
          <%= article.html(:extended) %>
        </div>
      <% end %>
      <% else %>
        <%= render :partial => 'articles/password_form', :locals => { :article => article } %>
      <% 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><%= _("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="<%= @auto_discovery_url_rss %>">rss</a>,
      <a href="<%= @auto_discovery_url_atom %>">atom</a>
    </li>
  </ul>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typo-5.5 themes/scribbish/views/articles/_article.html.erb