diff --git a/app/assets/javascripts/reports/new.js.erb b/app/assets/javascripts/reports/new.js.erb index 80a4b162d..c482528c5 100644 --- a/app/assets/javascripts/reports/new.js.erb +++ b/app/assets/javascripts/reports/new.js.erb @@ -564,7 +564,7 @@ function initSidebarElement(reportEl) { var type = reportEl.data("type"); var name = reportEl.data("name"); var scrollId = reportEl.data("scroll-id"); - var iconClass = "glyphicon " + reportEl.data("icon-class"); + var iconClass = reportEl.data("icon-class"); // Generate list element var newLi = $(document.createElement("li")); diff --git a/app/views/reports/elements/_my_module_activity_element.html.erb b/app/views/reports/elements/_my_module_activity_element.html.erb index fab07dacd..8a709e931 100644 --- a/app/views/reports/elements/_my_module_activity_element.html.erb +++ b/app/views/reports/elements/_my_module_activity_element.html.erb @@ -6,7 +6,7 @@
- +
<%=t "projects.reports.elements.module_activity.name", my_module: my_module.name %> diff --git a/app/views/reports/elements/_my_module_element.html.erb b/app/views/reports/elements/_my_module_element.html.erb index 9537da131..32727b14a 100644 --- a/app/views/reports/elements/_my_module_element.html.erb +++ b/app/views/reports/elements/_my_module_element.html.erb @@ -1,7 +1,7 @@ <% if my_module.blank? and @my_module.present? then my_module = @my_module end %> <% timestamp = my_module.created_at %> <% name = my_module.name %> -
" data-name="<%= name %>" data-icon-class="glyphicon-credit-card"> +
" data-name="<%= name %>" data-icon-class="glyphicon glyphicon-credit-card">
diff --git a/app/views/reports/elements/_my_module_repository_element.html.erb b/app/views/reports/elements/_my_module_repository_element.html.erb index e077b5049..7c1e26c3d 100644 --- a/app/views/reports/elements/_my_module_repository_element.html.erb +++ b/app/views/reports/elements/_my_module_repository_element.html.erb @@ -4,11 +4,11 @@ <% if order.blank? and @order.present? then order = @order end %> <% timestamp = Time.current + 1.year - 1.days %> <% rows_json = my_module.repository_json_hot(repository.id, order) %> -
" data-order="<%= order == :asc ? "asc" : "desc" %>" data-name="<%= repository.name %>" data-icon-class="glyphicon-oil"> +
" data-order="<%= order == :asc ? "asc" : "desc" %>" data-name="<%= repository.name %>" data-icon-class="fa fa-cubes">
- +
<%=t "projects.reports.elements.module_repository.name", repository: repository.name, my_module: my_module.name %> diff --git a/app/views/reports/elements/_my_module_result_asset_element.html.erb b/app/views/reports/elements/_my_module_result_asset_element.html.erb index f91ac3858..3aa56eda5 100644 --- a/app/views/reports/elements/_my_module_result_asset_element.html.erb +++ b/app/views/reports/elements/_my_module_result_asset_element.html.erb @@ -4,7 +4,7 @@ <% comments = result.result_comments %> <% timestamp = asset.created_at %> <% name = result.name %> -<% icon_class = is_image ? "glyphicon-picture" : "glyphicon-file" %> +<% icon_class = 'glyphicon ' + (is_image ? 'glyphicon-picture' : 'glyphicon-file') %>
" data-name="<%= name %>" data-icon-class="<%= icon_class %>">
diff --git a/app/views/reports/elements/_my_module_result_table_element.html.erb b/app/views/reports/elements/_my_module_result_table_element.html.erb index e5489cab3..a545e009a 100644 --- a/app/views/reports/elements/_my_module_result_table_element.html.erb +++ b/app/views/reports/elements/_my_module_result_table_element.html.erb @@ -3,7 +3,7 @@ <% comments = result.result_comments %> <% timestamp = table.created_at %> <% name = result.name %> -
" data-name="<%= name %>" data-icon-class="glyphicon-th"> +
" data-name="<%= name %>" data-icon-class="glyphicon glyphicon-th">
diff --git a/app/views/reports/elements/_my_module_result_text_element.html.erb b/app/views/reports/elements/_my_module_result_text_element.html.erb index 1dee844d1..674213e75 100644 --- a/app/views/reports/elements/_my_module_result_text_element.html.erb +++ b/app/views/reports/elements/_my_module_result_text_element.html.erb @@ -3,7 +3,7 @@ <% comments = result.result_comments %> <% timestamp = result.created_at %> <% name = result.name %> -
" data-name="<%= name %>" data-icon-class="glyphicon-asterisk"> +
" data-name="<%= name %>" data-icon-class="glyphicon glyphicon-asterisk">
diff --git a/app/views/reports/elements/_my_module_samples_element.html.erb b/app/views/reports/elements/_my_module_samples_element.html.erb index ab1bc9fdc..97468dd00 100644 --- a/app/views/reports/elements/_my_module_samples_element.html.erb +++ b/app/views/reports/elements/_my_module_samples_element.html.erb @@ -2,7 +2,7 @@ <% if order.blank? and @order.present? then order = @order end %> <% timestamp = Time.current + 1.year - 1.days %> <% samples_json = my_module.samples_json_hot(order) %> -
" data-name="<%=t "projects.reports.elements.module_samples.sidebar_name" %>" data-icon-class="glyphicon-tint"> +
" data-name="<%=t "projects.reports.elements.module_samples.sidebar_name" %>" data-icon-class="glyphicon glyphicon-tint">
diff --git a/app/views/reports/elements/_my_module_step_element.html.erb b/app/views/reports/elements/_my_module_step_element.html.erb index 0ee71cb0f..89b7b9a80 100644 --- a/app/views/reports/elements/_my_module_step_element.html.erb +++ b/app/views/reports/elements/_my_module_step_element.html.erb @@ -6,7 +6,7 @@ <% assets = step.assets %> <% checklists = step.checklists %> <% comments = step.step_comments %> -
" data-name="<%=t "projects.reports.elements.step.sidebar_name", pos: (step.position + 1), name: step.name %>" data-icon-class="glyphicon-circle-arrow-right"> +
" data-name="<%=t "projects.reports.elements.step.sidebar_name", pos: (step.position + 1), name: step.name %>" data-icon-class="glyphicon glyphicon-circle-arrow-right">
diff --git a/app/views/reports/elements/_project_header_element.html.erb b/app/views/reports/elements/_project_header_element.html.erb index aa422d5f3..45ee4f988 100644 --- a/app/views/reports/elements/_project_header_element.html.erb +++ b/app/views/reports/elements/_project_header_element.html.erb @@ -1,6 +1,6 @@ <% if project.blank? and @project.present? then project = @project end %> <% name = t("projects.reports.elements.project_header.title", project: project.name) %> -
+
diff --git a/app/views/reports/elements/_result_comments_element.html.erb b/app/views/reports/elements/_result_comments_element.html.erb index 2e9077128..d0c0ce929 100644 --- a/app/views/reports/elements/_result_comments_element.html.erb +++ b/app/views/reports/elements/_result_comments_element.html.erb @@ -2,7 +2,7 @@ <% if order.blank? and @order.present? then order = @order end %> <% comments = result.result_comments.order(created_at: order) %> <% timestamp = Time.current + 1.year %> -
" data-type="result_comments" data-id='{ "result_id": <%= result.id %> }' data-scroll-id="<%= result.id %>" data-name="<%=t "projects.reports.elements.result_comments.sidebar_name" %>" data-icon-class="glyphicon-comment"> +
" data-type="result_comments" data-id='{ "result_id": <%= result.id %> }' data-scroll-id="<%= result.id %>" data-name="<%=t "projects.reports.elements.result_comments.sidebar_name" %>" data-icon-class="glyphicon glyphicon-comment">
diff --git a/app/views/reports/elements/_step_asset_element.html.erb b/app/views/reports/elements/_step_asset_element.html.erb index c003d1cfc..d794fd89e 100644 --- a/app/views/reports/elements/_step_asset_element.html.erb +++ b/app/views/reports/elements/_step_asset_element.html.erb @@ -1,7 +1,7 @@ <% if asset.blank? and @asset.present? then asset = @asset end %> <% is_image = asset.is_image? %> <% timestamp = asset.created_at %> -<% icon_class = is_image ? 'glyphicon-picture' : 'glyphicon-file' %> +<% icon_class = 'glyphicon ' + (is_image ? 'glyphicon-picture' : 'glyphicon-file') %>
" data-icon-class="<%= icon_class %>">
diff --git a/app/views/reports/elements/_step_checklist_element.html.erb b/app/views/reports/elements/_step_checklist_element.html.erb index 4dfe8e2e6..9f04e801b 100644 --- a/app/views/reports/elements/_step_checklist_element.html.erb +++ b/app/views/reports/elements/_step_checklist_element.html.erb @@ -1,7 +1,7 @@ <% if checklist.blank? and @checklist.present? then checklist = @checklist end %> <% items = checklist.checklist_items %> <% timestamp = checklist.created_at %> -
+
diff --git a/app/views/reports/elements/_step_comments_element.html.erb b/app/views/reports/elements/_step_comments_element.html.erb index fddee65cd..6c9a73a93 100644 --- a/app/views/reports/elements/_step_comments_element.html.erb +++ b/app/views/reports/elements/_step_comments_element.html.erb @@ -2,7 +2,7 @@ <% if order.blank? and @order.present? then order = @order end %> <% comments = step.step_comments.order(created_at: order) %> <% timestamp = Time.current + 1.year %> -
" data-icon-class="glyphicon-comment"> +
" data-icon-class="glyphicon glyphicon-comment">
diff --git a/app/views/reports/elements/_step_table_element.html.erb b/app/views/reports/elements/_step_table_element.html.erb index 8507cc62a..0e76051e3 100644 --- a/app/views/reports/elements/_step_table_element.html.erb +++ b/app/views/reports/elements/_step_table_element.html.erb @@ -1,6 +1,6 @@ <% if table.blank? and @table.present? then table = @table end %> <% timestamp = table.created_at %> -
+
diff --git a/app/views/shared/_navigation.html.erb b/app/views/shared/_navigation.html.erb index d43010b67..b39e084bc 100644 --- a/app/views/shared/_navigation.html.erb +++ b/app/views/shared/_navigation.html.erb @@ -59,7 +59,7 @@
  • - + <%= t('nav.label.repositories') %>