Commit fe3e77175588035cdf9ed295ebb17d460bb5002f

Authored by Heitor
1 parent 744ddcbc

Fix granularity appearing on repository show

 * It was showing the hash corresponding to the granularity, now it only
   shows the granularity's type

Signed off by: Diego Araújo <diegoamc90@gmail.com>
app/views/modules/_module_result.html.erb
@@ -7,6 +7,6 @@ @@ -7,6 +7,6 @@
7 <% end %> 7 <% end %>
8 <%= link_to format_module_name(module_result.kalibro_module.name), "#module_#{module_result.id}", onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} #{escape_javascript(t('loading_data'))}', #{module_result.id});" %> 8 <%= link_to format_module_name(module_result.kalibro_module.name), "#module_#{module_result.id}", onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} #{escape_javascript(t('loading_data'))}', #{module_result.id});" %>
9 </td> 9 </td>
10 - <td><%= module_result.kalibro_module.granularity %></td> 10 + <td><%= module_result.kalibro_module.granularity["type"] %></td>
11 <td><%= format_grade(module_result.grade) %></td> 11 <td><%= format_grade(module_result.grade) %></td>
12 </tr> 12 </tr>
app/views/modules/_module_tree.html.erb
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 </p> 4 </p>
5 <p> 5 <p>
6 <strong><%= KalibroModule.human_attribute_name('granularity') %>:</strong> 6 <strong><%= KalibroModule.human_attribute_name('granularity') %>:</strong>
7 - <%= @root_module_result.kalibro_module.granularity %> 7 + <%= @root_module_result.kalibro_module.granularity["type"] %>
8 </p> 8 </p>
9 <p> 9 <p>
10 <strong><%= KalibroModule.human_attribute_name('grade') %>:</strong> 10 <strong><%= KalibroModule.human_attribute_name('grade') %>:</strong>