%ul.breadcrumb
  %li
    = link_to 'URLs', root_path
    %span.divider /
  %li= @url.name

%h3 Snapshots
%table.table
  %tr
    %td
      %strong Website URL:
    %td= link_to @url.address, @url.address, target: '_blank'
  %tr
    %td
      %strong Viewport width:
    %td= pluralize(@url.viewport_width, 'pixel')
  %tr
    %td
      %strong Number of snapshots:
    %td= @url.snapshots.count
  - if @url.snapshots.count > 0
    %tr
      %td
        %strong Latest snapshot:
      %td= time_ago_in_words(@url.snapshots.first.created_at) + ' ago'

= form_for Snapshot.new, class: 'form' do |f|
  = hidden_field_tag :url, @url.id
  = f.submit 'Create new snapshot', class: 'btn btn-primary'

.clearfix
  = render @url.snapshots

%ul.breadcrumb
  %li
    = link_to 'URLs', root_path
    %span.divider /
  %li= @url.name

%h3 Snapshots
%table.table
  %tr
    %td
      %strong Website URL:
    %td= link_to @url.address, @url.address, target: '_blank'
  %tr
    %td
      %strong Viewport width:
    %td= pluralize(@url.viewport_width, 'pixel')
  %tr
    %td
      %strong Number of snapshots:
    %td= @url.snapshots.count
  - if @url.snapshots.count > 0
    %tr
      %td
        %strong Latest snapshot:
      %td= time_ago_in_words(@url.snapshots.first.created_at) + ' ago'

= form_for Snapshot.new, class: 'form' do |f|
  = hidden_field_tag :url, @url.id
  Snapshots are taken every hour. If you are impatient, you can
  = f.submit 'Create a new snapshot', class: 'btn btn-info'
  manually.

.clearfix
  = render @url.snapshots

Make it more obvious that snapshots are taken automatically
Make it more obvious that snapshots are taken automatically
