Sha256: 94cc60d2abe78b9285c6c5c660443b146d4a8bc7dd01830603e4fd334f222b52

Contents?: true

Size: 708 Bytes

Versions: 8

Compression:

Stored size: 708 Bytes

Contents

<% if autosavable.autosave && !params[:autosave].present? && autosavable.autosave.content != autosavable.draft_content && autosavable.autosave.updated_at > autosavable.updated_at %>
  <div id="autosaves" class="text-danger" <% if autosavable.autosave.nil? %>style="display:none"<% end %>>
    <div id="autosaves-toggle" data-toggle="collapse" data-target="#autosaves-panel">
      <%= t('dashboard.posts.autosaves.available', resource: autosavable.human_name.downcase) %>
      <%= link_to [:edit, :dashboard, autosavable, autosave: autosavable.autosave] do %>
        <%= t('dashboard.posts.autosaves.view_autosave') %>
        <i class="fa fa-caret-right"></i>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.5 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.4 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.3 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.2 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.1 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.1.0 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb
storytime-2.0.0 app/views/storytime/dashboard/autosaves/_autosave_info.html.erb