Skip to content

Commit d8df407

Browse files
committed
Add resend message button
Messages now include another "upstream" button next to the main archive icon: a link that immediately goes to the resend message page.
1 parent 22fe8f1 commit d8df407

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

app/assets/stylesheets/components/messages.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
display: inline-flex;
126126
align-items: center;
127127
}
128+
129+
& a + a {
130+
margin-left: var(--spacing-2);
131+
}
128132
}
129133

130134
.message-content {

app/views/topics/_message.html.slim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
.message-archive-link
4848
= link_to "https://postgr.es/m/#{ERB::Util.url_encode(message.message_id)}", target: "_blank", rel: "noopener", data: { turbo: false }, title: "View on postgr.es", "aria-label": "View on postgr.es" do
4949
i.fa-solid.fa-building-columns
50+
= link_to "http://www.postgresql.org/message-id/resend/#{ERB::Util.url_encode(message.message_id)}", target: "_blank", rel: "noopener", data: { turbo: false }, title: "Resend from postgresql.org archive", "aria-label": "Resend from postgresql.org archive" do
51+
i.fa-solid.fa-paper-plane
5052

5153
.message-content class=read_classes.join(" ") data=read_data
5254
- if message.subject != @topic.title && message.subject.present?

0 commit comments

Comments
 (0)