37 lines
926 B
Plaintext
37 lines
926 B
Plaintext
<div id="c-status">
|
|
<div id="a-show" class="fixed-width-container">
|
|
<h1>Status</h1>
|
|
|
|
<p>Running <%= external_link_to "#{Danbooru.config.source_code_url}/commits/#{@status.danbooru_version}", @status.danbooru_version.first(7) %>.</p>
|
|
|
|
<h2>Server</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
Server: <%= @status.hostname %>
|
|
</summary>
|
|
<%= render "list", hash: @status.serializable_hash[:status] %>
|
|
</details>
|
|
|
|
<h2>Postgres</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
<%= pluralize @status.postgres_active_connections, "active connection" %>.
|
|
</summary>
|
|
|
|
<%= render "table", rows: @status.serializable_hash[:postgres][:connection_stats] %>
|
|
</details>
|
|
|
|
<h2>Redis</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
<%= @status.redis_used_memory %> memory used.
|
|
</summary>
|
|
|
|
<%= render "list", hash: @status.serializable_hash[:redis][:info] %>
|
|
</details>
|
|
</div>
|
|
</div>
|