From 4957cc2441c3c34da1e8174e908e48f3a0473b12 Mon Sep 17 00:00:00 2001 From: Nixinova <42429413+Nixinova@users.noreply.github.com> Date: Fri, 28 May 2021 23:14:30 +1200 Subject: [PATCH] Copyedit coding habits plugin (#337) --- source/app/web/statics/about/index.html | 2 +- source/templates/classic/partials/habits.ejs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/app/web/statics/about/index.html b/source/app/web/statics/about/index.html index e8da6d82..ba531065 100644 --- a/source/app/web/statics/about/index.html +++ b/source/app/web/statics/about/index.html @@ -232,7 +232,7 @@

- Average commits per day over the last week + Average commits at each hour over the last week

diff --git a/source/templates/classic/partials/habits.ejs b/source/templates/classic/partials/habits.ejs index 89927995..4c88add4 100644 --- a/source/templates/classic/partials/habits.ejs +++ b/source/templates/classic/partials/habits.ejs @@ -2,7 +2,7 @@

- Coding habits and recent activity + Recent coding habits

<% if (plugins.habits.facts) { %>
@@ -16,16 +16,16 @@ <% } else { %>
    <% if (plugins.habits.indents.style) { %> -
  • Use <%= plugins.habits.indents.style %> for indents
  • +
  • Uses <%= plugins.habits.indents.style %> for indentation
  • <% } %> <% if (plugins.habits.lines.average.chars) { %> -
  • Approximately <%= f(plugins.habits.lines.average.chars, {fixed:1}) %> characters per line of code written
  • +
  • Has approximately <%= f(plugins.habits.lines.average.chars, {fixed:1}) %> characters per line of code written
  • <% } %> <% if (!Number.isNaN(plugins.habits.commits.hour)) { %> -
  • Mostly push code around <%= plugins.habits.commits.hour %>:00
  • +
  • Mostly pushes code around <%= plugins.habits.commits.hour %>:00
  • <% } %> <% if (plugins.habits.commits.day) { %> -
  • Mostly active on <%= plugins.habits.commits.day.toLocaleLowerCase() %>
  • +
  • Mostly active on <%= plugins.habits.commits.day %>
  • <% } %>
<% } %> @@ -36,7 +36,7 @@ <% if (plugins.habits.charts) { %> <% if (!Number.isNaN(plugins.habits.commits.hour)) { %>
-

Commit activity per time of the day

+

Commit activity per hour of day

<% for (let h = 0; h < 24; h++) { const p = (plugins.habits.commits.hours[h]??0)/(plugins.habits.commits.hours.max??1); %>
@@ -52,7 +52,7 @@
<% if (!Number.isNaN(plugins.habits.commits.day)) { %>
-

Commit activity per day

+

Commit activity per day of week

<% for (let d = 0; d < 7; d++) { const p = (plugins.habits.commits.days[d]??0)/(plugins.habits.commits.days.max??1); %>
@@ -80,4 +80,4 @@ <% } %>
<% } %> -<% } %> \ No newline at end of file +<% } %>