Commit 3ff83dfe7fd64e5a7b9ffb391230c9e2ed729271
Committed by
Guilherme Rojas
1 parent
37109e02
Exists in
colab
and in
4 other branches
Including icons to module show
Signed-off by: Fellipe Souto <fllsouto@gmail.com> Signed-off by: Renan Fichberg <rfichberg@gmail.com>
Showing
4 changed files
with
21 additions
and
3 deletions
Show diff stats
3.12 KB
5.04 KB
app/views/repositories/_module_result.html.erb
| 1 | 1 | <tr> |
| 2 | - <td><%= module_result.module.name %></td> | |
| 2 | + <td> | |
| 3 | + <% if(module_result.children.empty?) then | |
| 4 | + icon = "file.png" | |
| 5 | + else | |
| 6 | + icon = "folder.png" | |
| 7 | + end %> | |
| 8 | + <%= image_tag(icon, :size => "20x16") %> | |
| 9 | + <%= module_result.module.name %> | |
| 10 | + </td> | |
| 3 | 11 | <td><%= module_result.module.granularity %></td> |
| 4 | 12 | <td><%= format_grade(module_result.grade) %></td> |
| 5 | 13 | </tr> |
| 6 | 14 | \ No newline at end of file | ... | ... |
app/views/repositories/show.html.erb
| ... | ... | @@ -39,8 +39,18 @@ |
| 39 | 39 | |
| 40 | 40 | <% if @processing.ready? %> |
| 41 | 41 | <h2>Modules Tree</h2> |
| 42 | - <h3><%= @root_module_result.module.name %></h3> | |
| 43 | - <h3><%= format_grade(@root_module_result.grade) %> </h3> | |
| 42 | + <p> | |
| 43 | + <strong>Name:</strong> | |
| 44 | + <%= @root_module_result.module.name %> | |
| 45 | + </p> | |
| 46 | + <p> | |
| 47 | + <strong>Granularity:</strong> | |
| 48 | + <%= @root_module_result.module.granularity %> | |
| 49 | + </p> | |
| 50 | + <p> | |
| 51 | + <strong>Grade:</strong> | |
| 52 | + <%= format_grade(@root_module_result.grade) %> | |
| 53 | + </p> | |
| 44 | 54 | <% children = @root_module_result.children %> |
| 45 | 55 | <% unless children.empty? %> |
| 46 | 56 | <table class="table table-hover"> | ... | ... |