Commit dd333bfe6dfb074c2d2daba995b1a31e859d3013
1 parent
6e42673d
Exists in
colab
and in
4 other branches
Module tree using Glyphicons that are available through Twitter Bootstrap
Showing
4 changed files
with
6 additions
and
7 deletions
Show diff stats
app/assets/images/file.png
3.12 KB
app/assets/images/folder.png
5.04 KB
app/views/repositories/_module_result.html.erb
1 | <tr> | 1 | <tr> |
2 | <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") %> | 3 | + <% if module_result.folder? %> |
4 | + <i class="icon-folder-close"></i> | ||
5 | + <% else %> | ||
6 | + <i class="icon-file"></i> | ||
7 | + <% end %> | ||
9 | <%= link_to module_result.module.name, project_repository_module_path(repository.project_id, repository.id, module_result.id) %> | 8 | <%= link_to module_result.module.name, project_repository_module_path(repository.project_id, repository.id, module_result.id) %> |
10 | </td> | 9 | </td> |
11 | <td><%= module_result.module.granularity %></td> | 10 | <td><%= module_result.module.granularity %></td> |
app/views/repositories/show.html.erb
@@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
52 | <%= format_grade(@root_module_result.grade) %> | 52 | <%= format_grade(@root_module_result.grade) %> |
53 | </p> | 53 | </p> |
54 | <% unless @root_module_result.parent_id.nil? %> | 54 | <% unless @root_module_result.parent_id.nil? %> |
55 | - <p><%= link_to '../', project_repository_module_path(@repository.project_id, @repository.id, @root_module_result.parent_id) %></p> | 55 | + <p><i class="icon-arrow-up"></i><%= link_to '../', project_repository_module_path(@repository.project_id, @repository.id, @root_module_result.parent_id) %></p> |
56 | <% end %> | 56 | <% end %> |
57 | <% children = @root_module_result.children %> | 57 | <% children = @root_module_result.children %> |
58 | <% unless children.empty? %> | 58 | <% unless children.empty? %> |