lib/rubycritic/generators/html/templates/code_index.html.erb in rubycritic-3.4.0 vs lib/rubycritic/generators/html/templates/code_index.html.erb in rubycritic-3.5.0

- old
+ new

@@ -21,9 +21,19 @@ <tbody> <% @analysed_modules.each do |analysed_module| %> <tr> <td> <% unless Config.suppress_ratings %> + <% if Config.build_mode? %> + <% master_analysed_module = Config.base_branch_collection.find(analysed_module.pathname) %> + <% if master_analysed_module.cost > analysed_module.cost %> + <span class="glyphicon glyphicon-arrow-up green-color"></span> + <% elsif master_analysed_module.cost < analysed_module.cost %> + <span class="glyphicon glyphicon-arrow-down red-color"></span> + <% else %> + <span class="empty-span glyphicon"></span> + <% end %> + <% end %> <div class="rating <%= analysed_module.rating.to_s.downcase %>"><%= analysed_module.rating %></div> <% end %> </td> <td> <ul class="nav nav-pills">