Skip to content

Commit 666ce2d

Browse files
committed
Move reference closer to package name
1 parent 86f00f5 commit 666ce2d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Sources/App/Views/PackageController/Builds/BuildShow+View.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ enum BuildShow {
7070
.href(model.packageURL),
7171
.text(model.packageName)
7272
),
73+
.unwrap(model.buildInfo.buildDetails) {
74+
.group(
75+
.text(", reference "),
76+
.strong("\(model.reference)"),
77+
.text(" ("),
78+
.code("\($0.commitHash.prefix(6))"),
79+
.text("),")
80+
)
81+
},
7382
.text(" with "),
7483
.strong(
7584
.text(model.buildInfo.swiftVersion.longDisplayName),
@@ -86,14 +95,11 @@ enum BuildShow {
8695
.unwrap(model.buildInfo.xcodeVersion) {
8796
.group(
8897
.text(" using "),
89-
.strong(.text($0)),
90-
.text(" at "),
91-
.strong(.text(model.reference))
98+
.strong(.text($0))
9299
)
93100
},
94101
.unwrap(model.buildInfo.buildDetails) {
95102
.group(
96-
.text(" (\($0.commitHash.prefix(6)))"),
97103
.text(" on "),
98104
.strong(.text(DateFormatter.utcFullDateTimeDateFormatter.string(from: $0.buildDate) + " UTC"))
99105
)

0 commit comments

Comments
 (0)