<% content_for :title, t(".about") %> <% info = @info %>

<%= t(".about") %>

<%= t(".simple_aircraft_manager_what_s") %>

<%= t(".version") %>

<%= info.version %>

<%= t(".build_html", build: (info.revision_url ? link_to(info.revision, info.revision_url, class: "link font-mono", target: "_blank", rel: "noopener", title: t(".this_commit_on_github")) : tag.span(info.revision, class: "font-mono"))) %>

<%= link_to t(".what_s_new"), help_page_path("changelog"), class: "link" %><%= link_to t(".disclaimer"), help_page_path("disclaimer"), class: "link" %><% if info.repository_url %><%= link_to t(".source_code"), info.repository_url, class: "link", target: "_blank", rel: "noopener" %><% end %>

<%= t(".built") %>
<%= info.built_at ? fmt_time(info.built_at.in_time_zone) : "—" %>
<%= t(".started") %>
<%= fmt_time(info.booted_at.in_time_zone) %>
<%= t(".uptime") %>
<%= distance_of_time_in_words(info.booted_at, Time.current) %>
<% if (notes = Changelog.load.release(info.version)) %> <%# This version's release notes; older ones are on the What's new page. %>

<%= t(".whats_new_in", version: info.version) %>

<%= link_to t(".all_releases"), help_page_path("changelog"), class: "link text-sm" %>
<%= guide_markdown(notes.markdown, class: "card-body") %>
<% end %>

<%= t(".runtime") %>

<%= render "pairs", pairs: info.runtime %>

<%= t(".features") %>

<%= render "pairs", pairs: info.features %>

<%= t(".key_components") %>

<%= render "pairs", pairs: info.key_gems %>

<%= t(".storage") %>

<% s = info.storage %> <%= render "pairs", pairs: [ [ t(".uploaded_files"), "#{number_with_delimiter(s[:files])} (#{number_to_human_size(s[:bytes])})" ], [ t(".saved_by_storing_duplicates_once"), number_to_human_size(s[:shared_bytes]) ], [ t(".free_disk_space"), s[:free_bytes] && number_to_human_size(s[:free_bytes]) ] ] + info.databases.map { |label, bytes| [ "#{label} database", bytes && number_to_human_size(bytes) ] } %>

<%= t(".email") %>

<%= button_to t(".send_test_email"), admin_test_email_path, class: "btn-secondary btn-sm", disabled: !MailSettings.configured?, data: { turbo_submits_with: t(".sending") }, title: t(".sends_to", email_address: current_user.email_address) %>
<%= render "pairs", pairs: MailSettings.summary.merge(t(".weekly_reminders") => t(".mondays_to_owners_who_haven")) %>
<%= button_to t(".send_me_this_week_s"), admin_test_reminder_path, class: "btn-secondary btn-sm", disabled: !MailSettings.configured? %>

<%= t(".background_jobs") %>

<% if (j = info.jobs) %> <%= render "pairs", pairs: [ [ t(".workers_running"), j[:workers].zero? ? tag.span("none", class: "badge-red") : j[:workers] ], [ t(".waiting"), j[:ready] ], [ t(".scheduled"), j[:scheduled] ], [ t(".failed"), j[:failed].positive? ? tag.span(j[:failed], class: "badge-orange") : 0 ] ] %> <% else %> <%= empty_state t(".job_queue_not_available") %> <% end %>

<%= t(".records") %>

<%= render "pairs", pairs: info.record_counts.transform_values { number_with_delimiter(_1) } %>

<%= t(".records_integrity") %>

<%= t(".nightly_a_verified_database_backup") %>

<%= button_to t(".back_up_and_check_now"), admin_check_records_path, class: "btn-secondary btn-sm", data: { turbo_submits_with: t(".checking") } %>
<% check = IntegrityCheck.latest %> <% backup = BackupRun.latest %> <%= render "pairs", pairs: [ [ t(".last_check"), check ? "#{fmt_time(check.created_at)} · #{check.ok ? t(".no_problems") : t("counts.problem", count: check.problems.size)}" : t(".not_run_yet") ], [ t(".checked"), check ? t(".checked_counts", versions: number_with_delimiter(check.versions_checked), signatures: number_with_delimiter(check.signatures_checked)) : nil ], [ t(".last_backup"), backup ? "#{fmt_time(backup.created_at)} · #{backup.ok ? number_to_human_size(backup.bytes) : 'FAILED'}" : t(".not_run_yet") ], [ t(".backup_check"), backup&.message ], [ t(".backups_kept"), t(".in_storage_backups", backups_kept: (Setting.integer('backups_kept'))) ], [ t(".off_site_backup"), OffsiteConnection.connected? ? ((o = OffsiteRun.latest_backup) ? tag.span("#{o.ok ? 'OK' : 'FAILED'} #{fmt_date(o.created_at.to_date)}", class: (o.ok && o.recent? ? nil : "badge-orange")) + t(".google_drive", account_email: OffsiteConnection.current.account_email) : t(".google_drive_connected_none_yet")) : link_to(t(".not_set_up"), admin_offsite_backup_path, class: "badge-orange") ], [ t(".procedures"), (r = ProceduresRevision.current) ? t(".revision_adopted", number: r.number, to_date: (fmt_date(r.adopted_at.to_date))) : tag.span(t(".not_adopted"), class: "badge-orange") ], [ t(".last_audit"), AuditRun.latest ? "#{fmt_date(AuditRun.latest.performed_at.to_date)} · #{AuditRun.latest.passed ? 'passed' : 'items not passed'}" : t(".none_yet") ], [ t(".next_audit_due"), AuditRun.due_soon? ? tag.span(fmt_date(AuditRun.next_due), class: "badge-orange") : fmt_date(AuditRun.next_due) ] ] %> <% if check && !check.ok %> <% end %>

<%= t(".software_versions") %>

<% revisions = AppRevision.latest_first.limit(20) %> <% if revisions.any? %> <%= render "pairs", pairs: revisions.map { |r| [ [ r.version, "build #{r.revision}" ].compact.join(" · "), "#{fmt_time(r.first_seen_at)} – #{fmt_time(r.last_seen_at)}" ] } %> <% else %> <%= empty_state t(".no_versions_recorded_yet") %> <% end %>
<%= t(".all_gems_html", all_gems: info.all_gems.size) %>
<% info.all_gems.each do |name, version| %>
<%= name %><%= version %>
<% end %>