Sha256: 8a325243351832d7b95a3b945c1a287fff282066490a23db174361c5ca264e79
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 KB
Contents
<% content_for(:javascripts) do %> <%= webpacked_plugins_js_for :foreman_resource_quota %> <% end %> <% content_for(:stylesheets) do %> <%= webpacked_plugins_css_for :foreman_resource_quota %> <% end %> <% title _('Resource quotas') %> <%= title_actions react_component('CreateResourceQuotaModal') %> <table class="<%= table_css_classes 'table-bordered table-striped' %>"> <thead> <tr> <th><%= sort :name, :as => s_('Resource Quota|Name') %></th> <th class="col-md-6"><%= _('Description') %></th> <th class="col-md-1"><%= _('CPU cores') %></th> <th class="col-md-1"><%= _('Memory (MB)') %></th> <th class="col-md-1"><%= _('Disk space (GB)') %></th> <th><%= _('Actions') %></th> </tr> </thead> <tbody> <% @resource_quotas.each do |quota| react_data = { "isNewQuota": false, "initialProperties": { "id": quota.id, "name": quota.name, "description": quota.description, "cpu_cores": quota.cpu_cores, "memory_mb": quota.memory_mb, "disk_gb": quota.disk_gb, }, } %> <tr> <td class="ellipsis"> <%= react_component('UpdateResourceQuotaModal', react_data) %> </td> <td><%= h(quota.description) %></td> <td><%= h(quota.cpu_cores) %></td> <td><%= h(quota.memory_mb) %></td> <td><%= h(quota.disk_gb) %></td> <td> <%= action_buttons( display_delete_if_authorized(hash_for_foreman_resource_quota_resource_quota_path(id: quota), data: { confirm: _("Delete %s?") % quota.name}) ) %> </td> </tr> <% end %> </tbody> </table> <%= will_paginate_with_info @resource_quotas %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_resource_quota-0.2.0 | app/views/foreman_resource_quota/resource_quotas/index.html.erb |
foreman_resource_quota-0.1.0 | app/views/foreman_resource_quota/resource_quotas/index.html.erb |