Commit 3040b2e99eb1ecb23f0c1ee612d801fa318cb3c0
Committed by
João M. M. da Silva
1 parent
1bdc1ea0
Exists in
master
and in
28 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 | <h4><%= _('Source tree') %></h4> | 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 | <% module_label = "#{module_name} (#{module_result.module.granularity})" %> | 4 | <% module_label = "#{module_name} (#{module_result.module.granularity})" %> |
4 | 5 | ||
5 | <p> | 6 | <p> |
6 | <h2 class="path"> | 7 | <h2 class="path"> |
7 | <% module_result.parents.each do |parent| %> | 8 | <% module_result.parents.each do |parent| %> |
8 | /<a href="#" class="source-tree-link" data-module-id="<%= parent.id %>"> | 9 | /<a href="#" class="source-tree-link" data-module-id="<%= parent.id %>"> |
9 | - <%= parent.module.name %> | 10 | + <%= helper.module_name parent.module.name %> |
10 | </a> | 11 | </a> |
11 | - <% end %> | 12 | + <% end %>/ <%= helper.module_name module_name %> |
12 | </h2> | 13 | </h2> |
13 | </p> | 14 | </p> |
14 | 15 | ||
@@ -17,14 +18,14 @@ | @@ -17,14 +18,14 @@ | ||
17 | <% if child.module.granularity=='PACKAGE' %> | 18 | <% if child.module.granularity=='PACKAGE' %> |
18 | <tr> | 19 | <tr> |
19 | <td class="icon"><%= image_tag('/plugins/mezuro/images/folder.png')%></td> | 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 | </tr> | 22 | </tr> |
22 | <% else %> | 23 | <% else %> |
23 | <tr> | 24 | <tr> |
24 | <td class="icon"><%= image_tag('/plugins/mezuro/images/file.png') %></td> | 25 | <td class="icon"><%= image_tag('/plugins/mezuro/images/file.png') %></td> |
25 | <td class="source-tree-text"> | 26 | <td class="source-tree-text"> |
26 | <a href='#' class="source-tree-link" data-module-id="<%= child.id %>"> | 27 | <a href='#' class="source-tree-link" data-module-id="<%= child.id %>"> |
27 | - <%= child.module.name %> | 28 | + <%= helper.module_name child.module.name %> |
28 | </a> | 29 | </a> |
29 | </td> | 30 | </td> |
30 | </tr> | 31 | </tr> |