fix(plugins/languages): recent languages description says NaN when no commits found (#1038) [skip ci]
This commit is contained in:
@@ -23,7 +23,10 @@
|
|||||||
<% if (languages.length) { %>
|
<% if (languages.length) { %>
|
||||||
estimation from <%= f(plugins.languages["stats.recent"]?.total) %>b of code in <%= plugins.languages["stats.recent"]?.files %> edited file<%= s(plugins.languages["stats.recent"]?.files) %> across <%= plugins.languages["stats.recent"]?.commits %> commit<%= s(plugins.languages["stats.recent"]?.commits) %> over last <%= plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days %> day<%= s(plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days) %>
|
estimation from <%= f(plugins.languages["stats.recent"]?.total) %>b of code in <%= plugins.languages["stats.recent"]?.files %> edited file<%= s(plugins.languages["stats.recent"]?.files) %> across <%= plugins.languages["stats.recent"]?.commits %> commit<%= s(plugins.languages["stats.recent"]?.commits) %> over last <%= plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days %> day<%= s(plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days) %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
No recent push activity found over last <%= plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days %> day<%= s(plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days) %>
|
No recent push activity found
|
||||||
|
<% { const days = plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days; if (days) { %>
|
||||||
|
over last <%= days %> day<%= s(days) %>
|
||||||
|
<% } } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</small>
|
</small>
|
||||||
<% } else if ((section === "most-used")&&(plugins.languages.indepth)) { %>
|
<% } else if ((section === "most-used")&&(plugins.languages.indepth)) { %>
|
||||||
|
|||||||
@@ -20,7 +20,10 @@
|
|||||||
<% } else { const width = 460 * (1 + large) %>
|
<% } else { const width = 460 * (1 + large) %>
|
||||||
<% if (section === "recently-used") { %>
|
<% if (section === "recently-used") { %>
|
||||||
<small>
|
<small>
|
||||||
estimation from <%= plugins.languages["stats.recent"]?.files %> edited file<%= s(plugins.languages["stats.recent"]?.files) %> from <%= plugins.languages["stats.recent"]?.commits %> commit<%= s(plugins.languages["stats.recent"]?.commits) %> over last <%= plugins.languages["stats.recent"]?.days %> day<%= s(plugins.languages["stats.recent"]?.days) %>
|
estimation from <%= plugins.languages["stats.recent"]?.files %> edited file<%= s(plugins.languages["stats.recent"]?.files) %> from <%= plugins.languages["stats.recent"]?.commits %> commit<%= s(plugins.languages["stats.recent"]?.commits) %>
|
||||||
|
<% { const days = plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days; if (days) { %>
|
||||||
|
over last <%= days %> day<%= s(days) %>
|
||||||
|
<% } } %>
|
||||||
</small>
|
</small>
|
||||||
<% } %>
|
<% } %>
|
||||||
<svg class="bar" xmlns="http://www.w3.org/2000/svg" width="<%= width %>" height="8">
|
<svg class="bar" xmlns="http://www.w3.org/2000/svg" width="<%= width %>" height="8">
|
||||||
|
|||||||
Reference in New Issue
Block a user