<% if @show_news %>

Recent news

<% @news.each do |post| %> <%# nil.try always returns nil. in_time_zone(nil) gives UTC. so when visitor not logged in they get UTC time. %> <%end%>
<%=post.post_date.in_time_zone(current_user.try(:timezone)).strftime('%F') %> <%=simple_format h(post.message)%>
<%end%>

Product list

<% if Product.count == 0 %>

There are no products currently in the system. To create products, first register a vendor account.

Create an admin account as described in INSTALL.md and using the admin account, create product categories and shipping locations.

<% end %> <%= render 'products/indextable' %>