feat: show pr status under creation date
This commit is contained in:
@@ -200,6 +200,10 @@ impl PullRequestView {
|
||||
.overflow_hidden()
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.flex_row()
|
||||
.justify_between()
|
||||
.items_center()
|
||||
.w_full()
|
||||
.px_3p5()
|
||||
.py_3()
|
||||
@@ -209,19 +213,22 @@ impl PullRequestView {
|
||||
div()
|
||||
.w_full()
|
||||
.flex()
|
||||
.flex_row()
|
||||
.justify_between()
|
||||
.items_center()
|
||||
.flex_col()
|
||||
.items_start()
|
||||
.child(text(pr.title.clone()).w_full().text_xl().mb_1())
|
||||
.when_some(pr.created_at, |it, created_at| {
|
||||
it.child(
|
||||
text(created_at.format("%Y-%m-%d %H:%M").to_string())
|
||||
.opacity(0.5)
|
||||
.text_xs(),
|
||||
)
|
||||
}),
|
||||
.child(metadata_line),
|
||||
)
|
||||
.child(metadata_line),
|
||||
.child(div().flex().flex_col().items_end().gap_1().when_some(
|
||||
pr.created_at,
|
||||
|it, created_at| {
|
||||
it.child(
|
||||
text(created_at.format("%Y-%m-%d %H:%M").to_string())
|
||||
.opacity(0.5)
|
||||
.text_xs(),
|
||||
)
|
||||
.child(status_pill)
|
||||
},
|
||||
)),
|
||||
)
|
||||
.child(
|
||||
div().flex_1().min_h_0().w_full().child(
|
||||
|
||||
Reference in New Issue
Block a user