Commit 3040b2e99eb1ecb23f0c1ee612d801fa318cb3c0
Committed by
João M. M. da Silva
1 parent
1bdc1ea0
Exists in
master
and in
29 other branches
[Mezuro] fixed names in source tree partial.
Showing
2 changed files
with
13 additions
and
5 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/helpers/module_result_helper.rb
0 → 100644
plugins/mezuro/views/mezuro_plugin_module_result/_source_tree.rhtml
| 1 | 1 | <h4><%= _('Source tree') %></h4> |
| 2 | -<% module_name = module_result.module.name %> | |
| 2 | +<% helper = MezuroPlugin::Helpers::ModuleResultHelper %> | |
| 3 | +<% module_name = helper.module_name(module_result.module.name) %> | |
| 3 | 4 | <% module_label = "#{module_name} (#{module_result.module.granularity})" %> |
| 4 | 5 | |
| 5 | 6 | <p> |
| 6 | 7 | <h2 class="path"> |
| 7 | 8 | <% module_result.parents.each do |parent| %> |
| 8 | 9 | /<a href="#" class="source-tree-link" data-module-id="<%= parent.id %>"> |
| 9 | - <%= parent.module.name %> | |
| 10 | + <%= helper.module_name parent.module.name %> | |
| 10 | 11 | </a> |
| 11 | - <% end %> | |
| 12 | + <% end %>/ <%= helper.module_name module_name %> | |
| 12 | 13 | </h2> |
| 13 | 14 | </p> |
| 14 | 15 | |
| ... | ... | @@ -17,14 +18,14 @@ |
| 17 | 18 | <% if child.module.granularity=='PACKAGE' %> |
| 18 | 19 | <tr> |
| 19 | 20 | <td class="icon"><%= image_tag('/plugins/mezuro/images/folder.png')%></td> |
| 20 | - <td class="source-tree-text"><a href='#' class="source-tree-link" data-module-id="<%= child.id %>"><%= child.module.name %></a></td> | |
| 21 | + <td class="source-tree-text"><a href='#' class="source-tree-link" data-module-id="<%= child.id %>"><%= helper.module_name child.module.name %></a></td> | |
| 21 | 22 | </tr> |
| 22 | 23 | <% else %> |
| 23 | 24 | <tr> |
| 24 | 25 | <td class="icon"><%= image_tag('/plugins/mezuro/images/file.png') %></td> |
| 25 | 26 | <td class="source-tree-text"> |
| 26 | 27 | <a href='#' class="source-tree-link" data-module-id="<%= child.id %>"> |
| 27 | - <%= child.module.name %> | |
| 28 | + <%= helper.module_name child.module.name %> | |
| 28 | 29 | </a> |
| 29 | 30 | </td> |
| 30 | 31 | </tr> | ... | ... |