app/views/georgia/revisions/edit.html.erb in georgia-0.7.6 vs app/views/georgia/revisions/edit.html.erb in georgia-0.7.7

- old
+ new

@@ -1,14 +1,14 @@ <%= simple_form_for @revision, as: :revision, url: [@page.becomes(Georgia::Page), @revision], html: {class: 'form-with-helpers js-spin-and-roll js-revision-form'}, defaults: { input_html: { class: "form-control" } } do |f| %> <%= f.simple_fields_for :contents, @content do |c| %> - <%= c.hidden_field :locale %> + <%= c.hidden_field :locale, data: {locale: current_locale} %> <header class='header-main'> <div class="header-gutter"> <%= link_to_back search_pages_path %> </div> <div class="header-title"> <h1> - <%= link_to (@content.title || content_tag(:span, 'No title', class: 'muted')), '#', class: 'title-truncated' %> + <%= link_to @content.title_or_none, '#', class: 'title-truncated' %> <%= icon_tag 'pencil' %> </h1> <%= c.input_field :title, class: 'input-lg form-control', placeholder: 'Title' %> </div> <div class="header-actions"> \ No newline at end of file