Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 2.26 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <% if post.live? %>
  2.   <article class="blog_post image_present" id="<%= dom_id(post) %>">
  3.  
  4.  
  5.                 <% ima_slike = (post.custom_teaser.match /src="\S+/i) %>
  6.                 <% if ima_slike %>
  7.                         <section class="key_image">
  8.                                 <% path_od_slike = ima_slike.to_s[5...-1] %>
  9.                                 <%= link_to image_tag(path_od_slike, :width=>"100", :height=>"100"), refinery.blog_post_path(post) %>
  10.                         </section>
  11.                 <% end %>
  12.  
  13.  
  14.     <blog_header>
  15.       <h2><%= link_to post.title, refinery.blog_post_path(post) %></h2>
  16.       <p class='meta'>
  17. <!--        <time datetime="<%=l post.published_at.to_date, :format => :default %>" class='posted_at'>-->
  18.           <%= t('created_at', :scope => 'refinery.blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %>
  19. <!--        </time>-->
  20.         <%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{post.author.username}" if post.author.present? %>.
  21.         <% if (categories = post.categories).any? %>
  22. <!--          <aside class='filed_in'>-->
  23.             <%= t('filed_in', :scope => 'refinery.blog.posts.show') %>
  24.             <%=raw categories.collect { |category| link_to category.title, refinery.blog_category_path(category) }.to_sentence %>
  25. <!--          </aside>-->
  26.         <% end %>
  27.         <% if (tags = post.tags).any? %>
  28. <!--          <aside class='tagged'>-->
  29.             <%= t('tagged', :scope => 'refinery.blog.posts.show') %>
  30.             <%=raw tags.collect { |tag| link_to tag, refinery.blog_tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>
  31. <!--          </aside>-->
  32.         <% end %>
  33.                                         <br />
  34. <!--                              <aside class='comment_count'>-->
  35.                                     <% if Refinery::Blog::Post.comments_allowed? %>
  36.                                       <% if post.comments.any? %>
  37.                                          (<%= pluralize(post.comments.approved.count, t('singular',
  38.                                                                                                                                                                                                 :scope => 'refinery.blog.shared.comments')) %>)
  39.                                       <% else %>
  40.                                             (<%= t('none', :scope => 'refinery.blog.shared.comments') %>)
  41.                                       <% end %>
  42.                                     <% end %>
  43. <!--                              </aside>-->
  44.       </p>
  45.     </blog_header>
  46.  
  47.  
  48.     <section class='content'>
  49.         <%= post.body.html_safe %>
  50.     </section>
  51.  
  52.  
  53.     <footer>
  54.       <p>
  55.         <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) if blog_post_teaser_enabled? %>
  56.       </p>
  57.  
  58.     </footer>
  59.  
  60.  
  61.   </article>
  62. <% end %>