app/views/knitkit/blogs/index.html.erb in knitkit-2.1.15 vs app/views/knitkit/blogs/index.html.erb in knitkit-3.0.0

- old
+ new

@@ -1,51 +1,65 @@ -<h2><%=h @website_section.title %></h2> +<div class="container"> -<div class="blog_articles left"> - <% @contents.each do |content| %> - <div class="blog_post" id="blog_<%=h content.id %>"> - <h4><%=h content.title %></h4> - <p> - Posted: <%= content.created_at.to_s(:long) %> <%=published_content_created_by %><br /> - Topics: <%=content.content.tag_list %> - </p> - <div class="blog_body"> - <%= raw content.excerpt_html %> + <div class="row"> + <div class="col-md-12"> + <div class="page-header"> + <h1><%= @website_section.title %></h1> </div> - <div><%= link_to 'Read More...', main_app.blog_article_path(@website_section.id, content.permalink) %></div> </div> - <% end %> - - <%= blog_pagination 'blog_pagination', params %> - -</div> -<div class="sidebar blog_tags"> - <h4>Topics</h4> - <%=blog_topics 'tag_link' %> -</div> + <div class="col-md-8"> -<div class="sidebar rss"> - <h4>Links</h4> - <%=blog_rss_links 'RSS Feed' %> -</div> + <% @contents.each do |content| %> + <div id="blog_<%= h content.id %>"> + <h4><%= content.title %></h4> -<div class="sidebar blog_search"> - <% #Optional Parameters: - # content_type: Leave blank to search all section types, set to Blog to only search Blog articles - # section_permalink: This is the permalink value for the section - # Useful if you only want to search articles within a single Blog section - # results_permalink: How do you want your results to display? via ajax? or on a new page? - # Leave blank if you want results to display via ajax on the same page as the search form - # Enter the permalink of results page if you want the search results to display on a new page - # per_page: Number of results per page - # class: CSS class for the form %> - <%= render_widget :search, - :action => get_widget_action, - :params => set_widget_params({ - :content_type => 'Blog', - :section_permalink => '', - :results_permalink => 'search', - :per_page => 20, - :class => '' - }) %> -</div> + <p> + Posted: <%= content.created_at.to_s(:long) %> <%= published_content_created_by %><br/> + Topics: <%= content.content.pretty_tag_list %> + </p> + + <p> + <%= raw content.excerpt_html %> + </p> + + <div><%= link_to 'Read More...', main_app.blog_article_path(@website_section.id, content.permalink) %></div> + + </div> + <% end %> + + <%= blog_pagination 'blog_pagination', params %> + + </div> + + <div class="col-md-4"> + <div> + <h4>Topics</h4> + <%= blog_topics 'tag_link' %> + </div> + + <div> + <h4>Links</h4> + <%= blog_rss_links 'RSS Feed' %> + </div> + + <div> + <% #Optional Parameters: + # content_type: Leave blank to search all section types, set to Blog to only search Blog articles + # section_unique_name: Leave blank to search all pages if passed will confine search to a particular + # pages content + # search_url: Main search url, only needed if results are being redirected + # redirect_results: If true will redirect to search page to display results. Used for inline search + # boxes + # per_page: Number of results per page + %> + <%= render_widget :search, + :params => set_widget_params({ + :content_type => 'Blog', + :section_unique_name => @blog.internal_identifier, + :per_page => 2 + }) %> + </div> + </div> + </div> + +</div> \ No newline at end of file