56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
|
<% content_for(:html_head) do %>
|
||
|
<% description = "A status checker for e621." %>
|
||
|
<%= render "head_images",
|
||
|
manifest_path: e621_ws_status_manifest_path(:json)
|
||
|
%>
|
||
|
<%= render "twitter_card",
|
||
|
card_site: "@e621dotnet",
|
||
|
card_creator: "@Donovan_DMC",
|
||
|
card_description: description,
|
||
|
card_image: image_path("#{assets_path}/icon.png"),
|
||
|
card_image_alt: "E621 Icon"
|
||
|
%>
|
||
|
|
||
|
<%= render "dublin_core",
|
||
|
dc_creator: "Donovan_DMC",
|
||
|
dc_description: description
|
||
|
%>
|
||
|
|
||
|
<%= render "open_graph",
|
||
|
og_description: description,
|
||
|
og_image: image_path("#{assets_path}/icon.png"),
|
||
|
og_image_type: "image/png",
|
||
|
og_image_width: 300,
|
||
|
og_image_height: 300,
|
||
|
og_image_alt: "E621 Icon"
|
||
|
%>
|
||
|
<% end %>
|
||
|
|
||
|
<span style="display: none;" data-e621-ws--status-target="rawTime"><%= @current.created_at.iso8601 %></span>
|
||
|
|
||
|
<% case @current.status %>
|
||
|
<% when 0 %>
|
||
|
<%= render "error" %>
|
||
|
<% when 1 %>
|
||
|
<%= render "maintenance" %>
|
||
|
<% when 2 %>
|
||
|
<%= render "no_status" %>
|
||
|
<% else %>
|
||
|
<%= render "primary" %>
|
||
|
<% end %>
|
||
|
|
||
|
<h3>
|
||
|
Looking to access this data automatically, or see the history? We have a <a id="json-link" href="https://docs.status.e621.ws">JSON</a> endpoint.<br>
|
||
|
We also provide a <a id="discord-link" href="/webhook">Discord Webhook</a> service.
|
||
|
</h3>
|
||
|
|
||
|
<% if @current.note %>
|
||
|
<h3>
|
||
|
<%= @current.note %>
|
||
|
</h3>
|
||
|
<% end %>
|
||
|
|
||
|
<h3>
|
||
|
Note: This is not an official status page. It is ran by <a id="user-link" href="https://e621.net/users/Donovan_DMC">Donovan_DMC</a> as a communal utility.
|
||
|
</h3>
|