diff --git a/docs/content/doc/usage/linked-references.en-us.md b/docs/content/doc/usage/linked-references.en-us.md
index 8cd4ff7b1fc8f..4e9519301521c 100644
--- a/docs/content/doc/usage/linked-references.en-us.md
+++ b/docs/content/doc/usage/linked-references.en-us.md
@@ -178,28 +178,28 @@ In the examples, `User1/Repo1` refers to the repository where the reference is u
| Reference in User1/Repo1 | Repo1 issues are external | RepoZ issues are external | Should render |
| --------------------------- | :-----------------------: | :-----------------------: | ------------------------------------------------------- |
-| `#1234` | no | N/A | A link to issue/pull 1234 in `User1/Repo1` |
-| `!1234` | no | N/A | A link to issue/pull 1234 in `User1/Repo1` |
-| `#1234` | yes | N/A | A link to _external issue_ 1234 for `User1/Repo1` |
-| `!1234` | yes | N/A | A link to _PR_ 1234 for `User1/Repo1` |
-| `User1/Repo1#1234` | no | N/A | A link to issue/pull 1234 in `User1/Repo1` |
-| `User1/Repo1!1234` | no | N/A | A link to issue/pull 1234 in `User1/Repo1` |
-| `User1/Repo1#1234` | yes | N/A | A link to _external issue_ 1234 for `User1/Repo1` |
-| `User1/Repo1!1234` | yes | N/A | A link to _PR_ 1234 for `User1/Repo1` |
-| `UserZ/RepoZ#1234` | N/A | no | A link to issue/pull 1234 in `UserZ/RepoZ` |
-| `UserZ/RepoZ!1234` | N/A | no | A link to issue/pull 1234 in `UserZ/RepoZ` |
-| `UserZ/RepoZ#1234` | N/A | yes | A link to _external issue_ 1234 for `UserZ/RepoZ` |
-| `UserZ/RepoZ!1234` | N/A | yes | A link to _PR_ 1234 for `UserZ/RepoZ` |
+| `#1234` | no | - | A link to issue/pull 1234 in `User1/Repo1` |
+| `!1234` | no | - | A link to issue/pull 1234 in `User1/Repo1` |
+| `#1234` | yes | - | A link to _external issue_ 1234 for `User1/Repo1` |
+| `!1234` | yes | - | A link to _PR_ 1234 for `User1/Repo1` |
+| `User1/Repo1#1234` | no | - | A link to issue/pull 1234 in `User1/Repo1` |
+| `User1/Repo1!1234` | no | - | A link to issue/pull 1234 in `User1/Repo1` |
+| `User1/Repo1#1234` | yes | - | A link to _external issue_ 1234 for `User1/Repo1` |
+| `User1/Repo1!1234` | yes | - | A link to _PR_ 1234 for `User1/Repo1` |
+| `UserZ/RepoZ#1234` | - | no | A link to issue/pull 1234 in `UserZ/RepoZ` |
+| `UserZ/RepoZ!1234` | - | no | A link to issue/pull 1234 in `UserZ/RepoZ` |
+| `UserZ/RepoZ#1234` | - | yes | A link to _external issue_ 1234 for `UserZ/RepoZ` |
+| `UserZ/RepoZ!1234` | - | yes | A link to _PR_ 1234 for `UserZ/RepoZ` |
| **Alphanumeric issue IDs:** | - | - | - |
-| `AAA-1234` | yes | N/A | A link to _external issue_ `AAA-1234` for `User1/Repo1` |
-| `!1234` | yes | N/A | A link to _PR_ 1234 for `User1/Repo1` |
-| `User1/Repo1!1234` | yes | N/A | A link to _PR_ 1234 for `User1/Repo1` |
-| _Not supported_ | N/A | yes | A link to _external issue_ `AAA-1234` for `UserZ/RepoZ` |
-| `UserZ/RepoZ!1234` | N/A | yes | A link to _PR_ 1234 in `UserZ/RepoZ` |
+| `AAA-1234` | yes | - | A link to _external issue_ `AAA-1234` for `User1/Repo1` |
+| `!1234` | yes | - | A link to _PR_ 1234 for `User1/Repo1` |
+| `User1/Repo1!1234` | yes | - | A link to _PR_ 1234 for `User1/Repo1` |
+| _Not supported_ | - | yes | A link to _external issue_ `AAA-1234` for `UserZ/RepoZ` |
+| `UserZ/RepoZ!1234` | - | yes | A link to _PR_ 1234 in `UserZ/RepoZ` |
_The last section is for repositories with external issue trackers that use alphanumeric format._
-_**N/A**: not applicable._
+_**-**: not applicable._
Note: automatic references between repositories with different types of issues (external vs. internal) are not fully supported
and may render invalid links.
diff --git a/modules/timeutil/datetime.go b/modules/timeutil/datetime.go
index 80b96fa656be3..83170b374b54c 100644
--- a/modules/timeutil/datetime.go
+++ b/modules/timeutil/datetime.go
@@ -30,13 +30,13 @@ func DateTime(format string, datetime any) template.HTML {
var datetimeEscaped, textEscaped string
switch v := datetime.(type) {
case nil:
- return "N/A"
+ return "-"
case string:
datetimeEscaped = html.EscapeString(v)
textEscaped = datetimeEscaped
case time.Time:
if v.IsZero() || v.Unix() == 0 {
- return "N/A"
+ return "-"
}
datetimeEscaped = html.EscapeString(v.Format(time.RFC3339))
if format == "full" {
diff --git a/modules/timeutil/datetime_test.go b/modules/timeutil/datetime_test.go
index a5639b34f19ae..f44b7aaae3c1b 100644
--- a/modules/timeutil/datetime_test.go
+++ b/modules/timeutil/datetime_test.go
@@ -23,10 +23,10 @@ func TestDateTime(t *testing.T) {
refTime, _ := time.Parse(time.RFC3339, refTimeStr)
refTimeStamp := TimeStamp(refTime.Unix())
- assert.EqualValues(t, "N/A", DateTime("short", nil))
- assert.EqualValues(t, "N/A", DateTime("short", 0))
- assert.EqualValues(t, "N/A", DateTime("short", time.Time{}))
- assert.EqualValues(t, "N/A", DateTime("short", TimeStamp(0)))
+ assert.EqualValues(t, "-", DateTime("short", nil))
+ assert.EqualValues(t, "-", DateTime("short", 0))
+ assert.EqualValues(t, "-", DateTime("short", time.Time{}))
+ assert.EqualValues(t, "-", DateTime("short", TimeStamp(0)))
actual := DateTime("short", "invalid")
assert.EqualValues(t, `
{{.PayloadContent}}
{{else}}
- N/A
+ -
{{end}}
{{.ResponseInfo.Body}}
{{else}}
- N/A
+ -
{{end}}