Skip to content

Commit

Permalink
Display 10 most detected languages instead of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
fxbru committed Apr 9, 2024
1 parent d63f68a commit 1614756
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/analysis/templates/analysis_scans_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h5><i class="icon fas fa-exclamation-triangle"></i> Form error</h5>
<div class="col-sm-12">
<div class="card card-tertiary">
<div class="card-header">
<h3 class="card-title">Detected languages</h3>
<h3 class="card-title">Detected languages (Top 10)</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse"
title="Collapse">
Expand Down Expand Up @@ -190,14 +190,14 @@ <h3 class="card-title">Detected languages</h3>
<script type="text/javascript">

var data_labels = [
{% for c_top5 in top_language_lines_counts(project.project_lines_count, 5) %}
"{{ c_top5.language }}",
{% for c_top10 in top_language_lines_counts(project.project_lines_count, 10) %}
"{{ c_top10.language }}",
{% endfor %}
];

var data_values = [
{% for c_top5 in top_language_lines_counts(project.project_lines_count, 5) %}
{{ (c_top5.code_count / project.project_lines_count.total_code_count * 100) | round | int }},
{% for c_top10 in top_language_lines_counts(project.project_lines_count, 10) %}
{{ (c_top10.code_count / project.project_lines_count.total_code_count * 100) | round | int }},
{% endfor %}
];

Expand Down

0 comments on commit 1614756

Please sign in to comment.