app/views/lines/admin/articles/show.html.erb in lines-engine-0.6.2 vs app/views/lines/admin/articles/show.html.erb in lines-engine-0.9.0
- old
+ new
@@ -1,6 +1,8 @@
-<%= render_navbar do %>
- <%= link_to 'Edit', edit_admin_article_path(@article), :class => "btn btn-edit" %>
- <%= button_to (@article.published ? "Unpublish" : "Publish"), admin_article_toggle_publish_path(@article), :class => "btn btn-publish" %>
+<%= content_for :navbar do %>
+ <%= render_navbar do %>
+ <%= button_to (@article.published ? "Unpublish" : "Publish"), admin_article_toggle_publish_path(@article), :class => "btn btn-save-publish highlight" %>
+ <%= link_to 'Edit', edit_admin_article_path(@article), :class => "btn btn-edit" %>
+ <% end %>
<% end %>
-<%= render "lines/articles/article", :article_counter => -1, :article => @article %>
\ No newline at end of file
+<%= render @article, article_counter: -1 %>