<% if @article.present? %>

<%= @article.category.name %> Blog

<%= link_to @article.title, "/#{@article.post_url}" %>

Posted By <%= @article.author %> On <%= @article.created_at.strftime("%a, %d %b %Y ") %>
<% if @article.thumbnail_status == "Yes" %> <% end %>
<% if !@article.content.nil? && @article.content != "" %> <%=raw @article.content.force_encoding(Encoding::UTF_8) %> <% end %>
<% if !@article.searchable.nil? %> <% topics = @article.searchable.split(",") %> <% if topics.present? %> <% end %> <% end %>

Subscribe to Email Updates from 7EDGE

Recent Posts

    <% Article.where(:status => "Active").limit(5).each do |article| %>
  • <%= link_to article.title, "/#{article.post_url}" %>
  • <% end %>

Posts by Topic

    <% Category.all.each do |category| %>
  • <%= link_to category.name, "/#{category.url}" %>
  • <% end %>
<% elsif @category.present? %>

<%= @category.name %> Blog

<% @category.articles.where(:status => "Active").each do |article| %>

<%= link_to article.title, "/#{article.post_url}" %>

Posted By <%= article.author %> On <%= article.created_at.strftime("%a, %d %b %Y ") %>
<% if article.thumbnail_status == "Yes" %> <% end %>

<%=raw article.summary %>

<%= link_to "Read More", "/#{article.post_url}", :style => "text-decoration: underline !important;" %>
<% end %>

Subscribe to Email Updates from 7EDGE

Recent Posts

    <% Article.where(:status => "Active").limit(5).each do |article| %>
  • <%= link_to article.title, "/#{article.post_url}" %>
  • <% end %>

Posts by Topic

    <% Category.all.each do |category| %>
  • <%= link_to category.name, "/#{category.url}" %>
  • <% end %>
<% end %>