% unless defined?(asset_id) %> <% asset_id = params[:asset_id] %> <% end %>
" class="permissions"> <%= role.capitalize %> <% choices.each do |choice| %> <% choice_label = choice.keys.first %> <% choice_name = choice.values.first %> <% if role_permissions == choice_name %> <%= choice_label.html_safe %> <% else %> <%= choice_label.html_safe %> <% end %> <% end %>