- if @rows && !@rows.empty?
  %h3 Data
  %ul
    %li= link_to "Download table (as CSV)", scraper_data_path(@scraper, :format => :csv)
    %li= link_to "Download SQLite database", scraper_data_path(@scraper, :format => :sqlite)
    %li= link_to "Use the API", api_path
  %p (First 10 rows)
  .table-responsive
    %table.table.table-striped.table-bordered.table-condensed.scraper-data
      %tr
        - @rows.first.each_key do |field|
          %th= field
      - @rows.each do |row|
        %tr
          - row.each_value do |v|
            %td= v

- if @rows && !@rows.empty?
  %h3 Data
  %p
    .btn-group
      = link_to "Download table (as CSV)", scraper_data_path(@scraper, :format => :csv), class: "btn btn-default"
      = link_to "Download SQLite database", scraper_data_path(@scraper, :format => :sqlite), class: "btn btn-default"
      = link_to "Use the API", api_path, class: "btn btn-default"
  %p (First 10 rows)
  .table-responsive
    %table.table.table-striped.table-bordered.table-condensed.scraper-data
      %tr
        - @rows.first.each_key do |field|
          %th= field
      - @rows.each do |row|
        %tr
          - row.each_value do |v|
            %td= v

Make data download links into buttons
Make data download links into buttons
