Sha256: 4ea8b74e79407fddb2e4379d1204aeb86f0883da5a44a73a5566a3089a830d1a
Contents?: true
Size: 951 Bytes
Versions: 12
Compression:
Stored size: 951 Bytes
Contents
<%= grid(@versions_grid2) do |g| g.row_attributes do |version| if version.status == 'production' {style: 'background-color: rgb(255, 255, 204);'} end end g.column name: 'ID', attribute: 'id', filter: false do |version| if version.id.to_s.index('9') [version.id, {style: 'background-color: rgb(255, 105, 104);'}] else version.id end end g.column name: 'Project', attribute: 'name', assoc: :project, class: 'special-column' do |version| if version.project if version.project.name == 'Divine Firmware' [version.project.name , {style: 'background-color: rgb(255, 105, 104);', class: 'some-special-class'}] else version.project.name end end end g.column name: 'Version name', attribute: 'name' g.column name: 'Status', attribute: 'status', custom_filter: {'Development' => 'development', 'Testing' => 'testing', 'Production' => 'production'} end -%>
Version data entries
12 entries across 12 versions & 2 rubygems