- provide :title, @url.title

= render 'shared/breadcrumbs',
  crumbs: [[@url.project.name, @url.project],
           [@url.title]]

.page-header
  %h1
    = yield :title
    %small
      = link_to @url, method: :delete, title: 'Delete',
                      data: { confirm: 'Are you sure?' } do
        %span.glyphicon.glyphicon-remove<>

%table.table.table-vertical
  %tr
    %th
      URL
    %td
      = link_to @url.simplified_address, @url.address

.button-group
  = link_to snapshots_path(url: @url.id),
            method: :post,
            title:  'Create new snapshots for this URL',
            class:  'btn btn-info' do
    %span.glyphicon.glyphicon-camera
    Create new snapshots

- @url.snapshots.includes(:viewport).group_by(&:viewport).each do |viewport, snapshots|
  .panel.panel-default{ id: "viewport-#{viewport.id}" }
    .panel-heading
      %h3.panel-title= viewport
    .panel-body.snapshots
      = render snapshots

- provide :title, @url.title

= render 'shared/breadcrumbs',
  crumbs: [[@url.project.name, @url.project],
           [@url.title]]

.page-header
  %h1
    = yield :title
    %small
      = link_to @url, method: :delete, title: 'Delete',
                      data: { confirm: 'Are you sure?' } do
        %span.glyphicon.glyphicon-remove<>
  %p
    = link_to @url.simplified_address, @url.address

.button-group
  = link_to snapshots_path(url: @url.id),
            method: :post,
            title:  'Create new snapshots for this URL',
            class:  'btn btn-info' do
    %span.glyphicon.glyphicon-camera
    Create new snapshots

- @url.snapshots.includes(:viewport).group_by(&:viewport).each do |viewport, snapshots|
  .panel.panel-default{ id: "viewport-#{viewport.id}" }
    .panel-heading
      %h3.panel-title= viewport
    .panel-body.snapshots
      = render snapshots

Move URL from table to header for URL show
Move URL from table to header for URL show

Similarly to what I recently did on the snapshot show page, this bit of
content doesn't really need to be in a table. I'm moving it to the
header to simplify the code and design, and to more clearly separate the
concepts on the page.

Change-Id: I6aba0098d2b7198510eebb9af23f0c6ac519921b
