mastodon/app/views/admin/software_updates/index.html.haml

28 lines
933 B
Plaintext

- content_for :page_title do
= t('admin.software_updates.title')
- current_deprecation = SoftwareDeprecation.current
- if current_deprecation&.unsupported?
.flash-message.alert= t('admin.software_updates.unsupported_branch')
- elsif current_deprecation.present?
.flash-message.warning= t('admin.software_updates.nearing_eol', date: current_deprecation.end_of_support)
.simple_form
%p.lead
= t('admin.software_updates.description')
= link_to t('admin.software_updates.documentation_link'), 'https://docs.joinmastodon.org/admin/upgrading/#automated_checks', target: '_new'
%hr.spacer
- unless @software_updates.empty?
.table-wrapper
%table.table
%thead
%tr
%th= t('admin.software_updates.version')
%th= t('admin.software_updates.type')
%th
%th
%tbody
= render collection: @software_updates, partial: 'admin/software_updates/software_update'