Sha256: 2c59b0fb95295d0b292d0ef1082d6c4183ecb561f4b309ce8addf8f1247bec09

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 KB

Contents

<%= content_for :title, "pg_extras" %>
<%= render "rails_pg_extras/web/shared/queries_selector" %>
<%= render "unavailable_extensions_warning" if unavailable_extensions.any? %>
<%= render "diagnose" %>

<h1 class="font-bold text-xl my-5">Actions</h1>

<% if RailsPgExtras::Web.action_enabled?(:kill_all) %>
  <%= link_to "kill_all", kill_all_action_path,
              method: "post",
              data: {
                confirm: "This commands kills all the currently active connections to the database. Do you want to proceed?",
              },
              class: "border p-3 bg-red-500 text-white hover:bg-red-600 font-bold rounded" %>
<% end %>

<% if RailsPgExtras::Web.action_enabled?(:pg_stat_statements_reset) && unavailable_extensions.exclude?(:pg_stat_statements) %>
  <%= link_to "pg_stat_statements_reset", pg_stat_statements_reset_action_path,
              method: "post",
              data: {
                confirm: "This command discards all statistics gathered so far by pg_stat_statements. Do you want to proceed?",
              }, class: "border p-3 bg-blue-500 text-white hover:bg-blue-600 font-bold rounded" %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-pg-extras-5.5.1 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.5.0 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.4.5 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.4.3 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.4.2 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.4.1 app/views/rails_pg_extras/web/queries/index.html.erb
rails-pg-extras-5.4.0 app/views/rails_pg_extras/web/queries/index.html.erb