- if can? :destroy, scraper
  %h2 Danger Zone
  .row
    .col-md-8
      .panel.panel-danger#danger-settings
        .panel-heading
          %p
            %strong Be careful, these actions can’t be undone.
        %ul.danger-settings-options-list.list-group
          %li.list-group-item
            %h3 Clear your scraper’s database
            .danger-settings-action-body
              %p
                - if scraper.data?
                  Your
                  = pluralize(scraper.sqlite_total_rows, "row")
                  of scraped data will be gone!
                - else
                  All your data will be gone!
              = button_to clear_scraper_path(scraper), { class: "btn btn-danger", data: { confirm: "All the data you’ve scraped will be deleted. Are you sure you want to clear your scraper’s database?" } } do
                Clear database
                %i.glyphicon.glyphicon-th-list
          %li.list-group-item
            %h3 Delete your scraper
            .danger-settings-action-body
              %p
                Delete the entire scraper from morph.io,
                %em data and all.
              = button_to scraper, { class: "btn btn-danger", method: :delete, data: { confirm: "Scraper #{scraper.full_name} and its database will be deleted from morph.io. Are you sure you want to delete your scraper?" } } do
                Delete your scraper
                %i.glyphicon.glyphicon-remove

- if can? :destroy, scraper
  %h2 Danger Zone
  .row
    .col-md-8
      .panel.panel-danger#danger-settings
        .panel-heading
          %p
            %strong Be careful, these actions can’t be undone.
        %ul.danger-settings-options-list.list-group
          %li.list-group-item
            %h3 Clear your scraper’s database
            .danger-settings-action-body
              %p
                - if scraper.data?
                  Your
                  = pluralize(scraper.sqlite_total_rows, "row")
                  of scraped data will be gone!
                - else
                  All your data will be gone!
              = button_to clear_scraper_path(scraper), { class: "btn btn-danger", data: { confirm: "All the data you’ve scraped will be deleted. Are you sure you want to clear your scraper’s database?" } } do
                Clear database
                %i.glyphicon.glyphicon-th-list
          %li.list-group-item
            %h3 Delete your scraper
            .danger-settings-action-body
              %p
                Delete the entire scraper from morph.io,
                %em data and all.
                This will leave the repository on GitHub untouched. If you want to delete the repository as well you will need to do that manually on GitHub.
              = button_to scraper, { class: "btn btn-danger", method: :delete, data: { confirm: "Scraper #{scraper.full_name} and its database will be deleted from morph.io. Are you sure you want to delete your scraper?" } } do
                Delete your scraper
                %i.glyphicon.glyphicon-remove

Make it clear that when deleting scraper it leaves github repo untouched
Make it clear that when deleting scraper it leaves github repo untouched
