diff options
Diffstat (limited to 'app/views/blog/shared')
-rw-r--r-- | app/views/blog/shared/_categories.html.erb | 10 | ||||
-rw-r--r-- | app/views/blog/shared/_post.html.erb | 46 | ||||
-rw-r--r-- | app/views/blog/shared/_posts.html.erb | 10 | ||||
-rw-r--r-- | app/views/blog/shared/_rss_feed.html.erb | 2 | ||||
-rw-r--r-- | app/views/blog/shared/_tags.html.erb | 8 |
5 files changed, 0 insertions, 76 deletions
diff --git a/app/views/blog/shared/_categories.html.erb b/app/views/blog/shared/_categories.html.erb deleted file mode 100644 index 05cc53f..0000000 --- a/app/views/blog/shared/_categories.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% if @blog_categories.any? %> - <h2><%= t('.title') %></h2> - <ul id='categories'> - <% @blog_categories.each do |category| %> - <li<%= " class='selected'" if @category.present? and @category.id == category.id %>> - <%= link_to "#{category.title} (#{category.post_count})", blog_category_url(category) %> - </li> - <% end %> - </ul> -<% end %>
\ No newline at end of file diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb deleted file mode 100644 index 6cda22d..0000000 --- a/app/views/blog/shared/_post.html.erb +++ /dev/null @@ -1,46 +0,0 @@ -<% if post.live? %> - <article class="blog_post" id="<%= dom_id(post) %>"> - <header> - <h1><%= link_to post.title, blog_post_url(post) %></h1> - <section class='details'> - <time datetime="<%=l post.published_at.to_date, :format => :default %>" class='posted_at'> - <%= t('created_at', :scope => 'blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %> - </time> - <%= "#{t('by', :scope => 'blog.posts.show')} #{post.author.username}" if post.author.present? %>. - <% if (categories = post.categories).any? %> - <aside class='filed_in'> - <%= t('filed_in', :scope => 'blog.posts.show') %> - <%=raw categories.collect { |category| link_to category.title, blog_category_url(category) }.to_sentence %> - </aside> - <% end %> - <% if (tags = post.tags).any? %> - <aside class='tagged'> - <%= t('tagged', :scope => 'blog.posts.show') %> - <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %> - </aside> - <% end %> - </section> - </header> - <section class='clearfix'> - <% if blog_post_teaser_enabled? %> - <%= blog_post_teaser(post) %> - <% else %> - <%= post.body.html_safe %> - <% end %> - </section> - <footer> - <p> - <%= link_to t('read_more', :scope => 'blog.shared.posts'), blog_post_url(post) if blog_post_teaser_enabled? %> - </p> - <aside class='comment_count'> - <% if BlogPost.comments_allowed? %> - <% if post.comments.any? %> - (<%= pluralize(post.comments.approved.count, t('singular', :scope => 'blog.shared.comments')) %>) - <% else %> - (<%= t('none', :scope => 'blog.shared.comments') %>) - <% end %> - <% end %> - </aside> - </footer> - </article> -<% end %> diff --git a/app/views/blog/shared/_posts.html.erb b/app/views/blog/shared/_posts.html.erb deleted file mode 100644 index 24a8199..0000000 --- a/app/views/blog/shared/_posts.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% if @blog_posts.many? %> - <h2><%= t('.other') %></h2> - <ul id="blog_posts"> - <% @blog_posts.each do |blog_post| %> - <li class='clearfix'> - <%= link_to blog_post.title, blog_post_url(blog_post) %> - </li> - <% end %> - </ul> -<% end %>
\ No newline at end of file diff --git a/app/views/blog/shared/_rss_feed.html.erb b/app/views/blog/shared/_rss_feed.html.erb deleted file mode 100644 index 1c2cef7..0000000 --- a/app/views/blog/shared/_rss_feed.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<h2><%= t('.title') %></h2> -<%= link_to t('.subscribe'), blog_rss_feed_url, :id => "rss_feed_subscribe"%> diff --git a/app/views/blog/shared/_tags.html.erb b/app/views/blog/shared/_tags.html.erb deleted file mode 100644 index b0b11ee..0000000 --- a/app/views/blog/shared/_tags.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<% if @tags.any? %> - <h2><%= t('.title') %></h2> - <nav id='tags'> - <% tag_cloud(@tags, %w(tag1 tag2 tag3 tag4)) do |tag, css_class| %> - <%= link_to tag.name, tagged_posts_path(tag.id, tag.name.parameterize), :class => css_class %> - <% end %> - </nav> -<% end %>
\ No newline at end of file |