Sha256: fa10c97dcfc5ebedee04e6ce47ce2aceaecb480e400254627f5c65daedf3fc87
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
<% status_icons = { configuration_error: '💀', down: '💥', impacted: '⚠️', at_capacity: '🥵', migrating: '💾', scaling_down: '📉', scaling_up: '📈', ok: '✅', shutting_down: '😪', offline: '🔌', 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> <li> Deployment (tutor-deployment): <%= Rails.application.secrets.deployment_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
4 entries across 4 versions & 1 rubygems