summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehmet Samet Duman <froster12@naver.com>2026-02-13 14:52:42 +0300
committerMehmet Samet Duman <froster12@naver.com>2026-02-13 14:52:42 +0300
commit98d6a20f3724be8eb5eef639b1774c2fa964a89d (patch)
treedcaee8b15b5f8a1518a472318c931bd62b1685fa
parent36294e0ac568bbc4c34c99ad24ba89d755e3c4b2 (diff)
downloadProject-Tick-98d6a20f3724be8eb5eef639b1774c2fa964a89d.tar.gz
Project-Tick-98d6a20f3724be8eb5eef639b1774c2fa964a89d.zip
fix: update "coc" link text to "Code of Conduct" for clarity in UI and documentation
Signed-off-by: Mehmet Samet Duman <froster12@naver.com>
-rw-r--r--cgitrc.5.txt4
-rw-r--r--tests/t0112-coc.sh3
-rw-r--r--ui-shared.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 0b73a50e3e..671a8c303e 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -382,8 +382,8 @@ root-readme::
root-coc::
The content of the file specified with this option will be included
- verbatim below the "coc" link on the repository index page. Default
- value: none.
+ verbatim below the "Code of Conduct" link on the repository index page.
+ Default value: none.
root-title::
Text printed as heading on the repository index page. Default value:
diff --git a/tests/t0112-coc.sh b/tests/t0112-coc.sh
index b27f0c1fc5..d5eb724030 100644
--- a/tests/t0112-coc.sh
+++ b/tests/t0112-coc.sh
@@ -5,7 +5,8 @@ test_description='Check top-level CoC page'
test_expect_success 'index has coc tab' '
cgit_url "" >tmp &&
- grep "p=coc" tmp
+ grep "p=coc" tmp &&
+ grep "Code of Conduct" tmp
'
test_expect_success 'generate top-level coc page' '
diff --git a/ui-shared.c b/ui-shared.c
index d8f5e701be..281a22f5b6 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1140,7 +1140,7 @@ void cgit_print_pageheader(void)
site_link("about", "about", NULL, hc("about"),
NULL, NULL, 0, 1);
if (ctx.cfg.root_coc)
- site_link("coc", "coc", NULL, hc("coc"),
+ site_link("coc", "Code of Conduct", NULL, hc("coc"),
NULL, NULL, 0, 1);
html("</td><td class='form'>");
html("<form method='get' action='");