- provide :title, @project.name

%ul.breadcrumb
  %li
    = link_to 'Projects', projects_path
    %span.divider /
  %li= @project.name

%h3
  %i.icon-book
  = yield :title
  - @project.viewports.each do |viewport|
    %small.project-viewport= viewport
  %small= link_to 'Edit', edit_project_path(@project)

- @project.urls.each do |url|
  %h4
    %span.url-oneline= url.address
    %small
      = link_to url.address, target: '_blank' do
        %i.icon-share
      = link_to url, method: :delete, data: { confirm: 'Are you sure?' } do
        %i.icon-remove

  = form_for Snapshot.new, class: 'form' do |f|
    = hidden_field_tag :url, url.id
    %button.btn.btn-info
      Create new snapshots

  - url.snapshots.includes(:viewport).group_by(&:viewport).each do |viewport, snapshots|
    %h5= viewport
    = render snapshots

- provide :title, @project.name

%ul.breadcrumb
  %li
    = link_to 'Projects', projects_path
    %span.divider /
  %li= @project.name

%h3
  %i.icon-book
  = yield :title
  - @project.viewports.each do |viewport|
    %small.project-viewport= viewport
  %small= link_to 'Edit', edit_project_path(@project)

- @project.urls.each do |url|
  %h4
    %span.url-oneline{ title: url.address }= url.address
    %small
      = link_to url.address, target: '_blank' do
        %i.icon-share
      = link_to url, method: :delete, data: { confirm: 'Are you sure?' } do
        %i.icon-remove

  = form_for Snapshot.new, class: 'form' do |f|
    = hidden_field_tag :url, url.id
    %button.btn.btn-info
      Create new snapshots

  - url.snapshots.includes(:viewport).group_by(&:viewport).each do |viewport, snapshots|
    %h5= viewport
    = render snapshots

Add title attributes to URLs on projects/show
Add title attributes to URLs on projects/show

We have some styles on these elements that prevent them from being too
long. This is great, however it can make understanding the exact URL you
are looking at not super obvious. As a stopgap measure, I'm adding a
title attribute to these elements so you can at least hover to see the
full URL.

Change-Id: I7bcce805221064bffad5b99045db7c83a8ea9f98
