app/views/rostra/questions/index.html.erb in rostra-0.1.4 vs app/views/rostra/questions/index.html.erb in rostra-0.1.5
- old
+ new
@@ -1,13 +1,13 @@
<%= render 'rostra/shared/sidebar' %>
<div id="page_content">
<div id="questions">
- <% if @questions.empty? %>
- <h3>No questions have been asked.</h3>
-
+ <% if Rostra::Question.count.zero? %>
+ <h3>Sorry! No questions have been asked.</h3>
+ <% elsif @questions.empty? %>
+ <h3>Sorry! No questions found.</h3>
<% else %>
-
<% @questions.each do |question| %>
<div class="question">
<div class="stats">
<div class="vote_count">