diff --git a/source/templates/repository/partials/languages.ejs b/source/templates/repository/partials/languages.ejs index 244d41f1..742d21d2 100644 --- a/source/templates/repository/partials/languages.ejs +++ b/source/templates/repository/partials/languages.ejs @@ -1,6 +1,9 @@ <% if (plugins.languages) { %>
-

Most used languages

+

+ + Most used languages +

<% if (plugins.languages.error) { %>
@@ -18,14 +21,35 @@ <% } %> -
- <% for (const {name, value, color} of plugins.languages.favorites) { %> -
- - <%= name %> -
- <% } %> -
+ <% if (plugins.languages.details?.length) { %> +
+ <% for (const row of [0, 1]) { %> +
+ <% for (const {name, value, color, size} of plugins.languages.favorites.filter((_, i) => i%2 === row)) { %> +
+
+ + <%= name %> +
+ + <% if (plugins.languages.details.includes("bytes-size")) { %>
<%= f.bytes(size) %>
<% } %> + <% if (plugins.languages.details.includes("percentage")) { %>
<%= f.percentage(value) %>
<% } %> +
+
+ <% } %> +
+ <% } %> +
+ <% } else { %> +
+ <% for (const {name, value, color} of plugins.languages.favorites) { %> +
+ + <%= name %> +
+ <% } %> +
+ <% } %> <% } %>
<% } %> \ No newline at end of file