Skip to content

Commit

Permalink
Merge pull request #48 from winebarrel/show_updatedAt
Browse files Browse the repository at this point in the history
Show updatedAt
  • Loading branch information
winebarrel authored Dec 1, 2024
2 parents 0b96962 + caddf6d commit 3f64082
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Pulse/ContentListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ struct ContentListView: View {
.foregroundColor(.white)
.background(.gray, in: RoundedRectangle(cornerRadius: 5))
}
let status = pull.success ? "" : ""
let label = pull.pending ? pull.title : status + pull.title
Text(label)

if !pull.pending {
Text(pull.success ? "" : "")
}
Text(pull.title)
.multilineTextAlignment(.leading)
.underline(hoverId == pull.id)
.onHover { hovering in
hoverId = hovering ? pull.id : ""
}
Text("(\(pull.updatedAt.relative()))").font(.caption2).foregroundStyle(Color.primary)
if pull.approvedCount > 0 {
HStack(spacing: 0) {
Image(systemName: "person.crop.circle.badge.checkmark")
Expand Down

0 comments on commit 3f64082

Please sign in to comment.