diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index c3934ad5..3190e83f 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -2025,6 +2025,18 @@ div.mapInfoStat { .blackBox .metacodeSetsDescription { width: 314px; } +.blackBox td.metacodeSetDesc { + width: 314px; + word-wrap: break-word; +} +.blackBox .metacodeSetImage { + width:40px; + height:40px; + float:left; +} +.blackBox tr { + display:table-row; +} .blackBox tr:nth-child(odd) { background: rgba(0, 0, 0, 0.2); } diff --git a/app/views/metacode_sets/index.html.erb b/app/views/metacode_sets/index.html.erb index 37aa2d3b..a3df5c3e 100644 --- a/app/views/metacode_sets/index.html.erb +++ b/app/views/metacode_sets/index.html.erb @@ -19,10 +19,10 @@ <%= link_to 'Edit', edit_metacode_set_path(metacode_set) %>
<%= link_to 'Delete', metacode_set, method: :delete, data: { confirm: 'Are you sure?' } %> - <%= metacode_set.desc %> - + <%= metacode_set.desc %> + <% metacode_set.metacodes.each_with_index do |metacode, index| %> - + <% if (index+1)%4 == 0 %>
<% end %> @@ -36,6 +36,9 @@ \ No newline at end of file diff --git a/app/views/metacodes/index.html.erb b/app/views/metacodes/index.html.erb index 323af079..ea063b92 100644 --- a/app/views/metacodes/index.html.erb +++ b/app/views/metacodes/index.html.erb @@ -26,6 +26,9 @@ \ No newline at end of file