app/views/kuztuscms/pages/index.html.erb in kuztuscms-0.0.8 vs app/views/kuztuscms/pages/index.html.erb in kuztuscms-0.0.9
- old
+ new
@@ -13,10 +13,10 @@
<tbody>
<% @pages.each do |page| %>
<tr>
<td><%= page.name %></td>
<td><%= page.path %></td>
- <td><%= page.article.name %></td>
+ <td><%= page.article.name if page.article.present? %></td>
<td><%= page.layout.path %></td>
<td><%= page.default %></td>
<td>
<%= link_to 'Edit', kuztuscms.edit_page_path(page), :class => 'btn btn-mini' %>
<%= link_to 'Destroy', kuztuscms.page_path(page), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>