Sha256: 4046e42a2ca83034b5b8e24d79eba6e05f7f206e5fc02b1c7c3718a208ef40e9
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
<% status_icons = { down: '💀', configuration_error: '⚠️', shutting_down: '😪', at_capacity: '🥵', scaling_down: '📉', scaling_up: '📈', migrating: '💾', ok: '✅', sleeping: '💤' } backend = @application_name == 'Tutor' ? 'tutor-server' : @application_name.downcase %> <h3>Versions</h3> <ul> <li> Backend (<%= backend %>): <%= Rails.application.secrets.release_version || 'not deployed' %> </li> <li> Frontend (tutor-js): <%= OpenStax::Utilities::Assets.manifest.version || 'not deployed' %> </li> </ul> <% status = status_icons.find { |key, _| @statuses.any? { |_, _, _, status| status == key } } %> <h3>Status: <% unless status.nil? %><span title="<%= status.first.to_s.humanize %>"><%= status.second %></span><% end %></h3> <ul> <% @statuses.map do |name, num_instances, max_size, status| %> <% title = status.to_s.humanize %> <li> <%= name.to_s.underscore.humanize %>: <%= num_instances %>/<%= max_size %> <% if status_icons.has_key? status %> <span title="<%= title %>"><%= status_icons[status] %></span> <% else %> (<%= title %>) <% end %> </li> <% end %> </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openstax_utilities-4.4.0 | app/views/openstax/utilities/status/index.html.erb |