app/views/georgia/revisions/edit.html.erb in georgia-0.7.8 vs app/views/georgia/revisions/edit.html.erb in georgia-0.8.0
- old
+ new
@@ -8,26 +8,32 @@
<div class="header-title">
<h1>
<%= link_to @content.title_or_none, '#', class: 'title-truncated' %>
<%= icon_tag 'pencil' %>
</h1>
- <%= c.input_field :title, class: 'input-lg form-control', placeholder: 'Title' %>
+ <%= c.input_field :title, class: 'input-md form-control', placeholder: 'Title' %>
</div>
<div class="header-actions">
<%= button_to_settings %>
- <%= page_actions_tag(@page, @revision) %>
- <%= button_to_save %>
+ <%= button_to_save if policy(@revision).update? %>
</div>
</header>
<section class="body-main">
- <%= render partial: 'georgia/revisions/fields/content', locals: {f: c} %>
- <%= render partial: 'georgia/revisions/fields/template', locals: {f: f} %>
- <%= render partial: 'georgia/revisions/fields/slides', locals: {f: f} %>
- <%= render partial: 'georgia/revisions/fields/widgets', locals: {f: f} %>
- <footer>
- <hr />
- <%= link_to_delete @page if can?(:destroy, @page) %>
- </footer>
+ <div class="row">
+ <div class="col-md-9">
+ <%= render partial: 'georgia/revisions/fields/message' %>
+ <%= render partial: 'georgia/revisions/fields/content', locals: {f: c} %>
+ <%= render partial: 'georgia/revisions/fields/template', locals: {f: f} %>
+ <%= render partial: 'georgia/revisions/fields/slides', locals: {f: f} %>
+ <%= render partial: 'georgia/revisions/fields/widgets', locals: {f: f} %>
+ </div>
+ <div class="col-md-3 body-sidebar">
+ <%= render 'georgia/revisions/panels/actions' %>
+ <%= render 'georgia/revisions/panels/info' %>
+ <%= render 'georgia/revisions/panels/drafts' %>
+ <%= render 'georgia/revisions/panels/activities' %>
+ </div>
+ </div>
</section>
<% end -%>
<% end %>
<%= content_for :footer do %>
\ No newline at end of file