- 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 snapshots_path(url: @url.id),
              method: :post,
              title:  'Create new snapshots for this URL',
              class:  'btn btn-primary' do
      %span.glyphicon.glyphicon-camera
      Create new snapshots
    &emsp;
    = link_to @url.simplified_address, @url.address

- @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
    %span.glyphicon.glyphicon-bookmark
    = yield :title
    %small
      = link_to @url, method: :delete, title: 'Delete',
                      data: { confirm: 'Are you sure?' } do
        %span.glyphicon.glyphicon-remove<>
  %p
    = link_to snapshots_path(url: @url.id),
              method: :post,
              title:  'Create new snapshots for this URL',
              class:  'btn btn-primary' do
      %span.glyphicon.glyphicon-camera
      Create new snapshots
    &emsp;
    = link_to @url.simplified_address, @url.address

- @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

Add bookmark icon to URL show page
Add bookmark icon to URL show page

Continuing the book motif from projects, I am adding a bookmark icon to
the URL show page. I think this makes sense anyway, since people often
bookmark URLs.

Change-Id: Ife83d497c70423d8eb3bc3bdd8d33dcaa03cea28
