Skip to content

Commit 45ef494

Browse files
committed
WIP: Add shortcut button to person profile to facilitate messaging
1 parent 79863d3 commit 45ef494

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/views/better_together/people/show.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
<i class="fas fa-trash-alt"></i> <%= t('globals.delete') %>
3737
<% end %>
3838
<% end %>
39+
<% if current_person && current_person != @person %>
40+
<%= link_to new_conversation_path(conversation: { participant_ids: [@person.id] }), class: 'btn btn-outline-primary btn-sm me-2', 'aria-label' => t('globals.message') do %>
41+
<i class="fas fa-envelope"></i> <%= t('globals.message') %>
42+
<% end %>
43+
<% end %>
3944
</div>
4045
</div>
4146
</div>

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ en:
12731273
destroy: Destroy
12741274
draft: Draft
12751275
edit: Edit
1276+
message: Message
12761277
'false': 'No'
12771278
forms:
12781279
save: Save

0 commit comments

Comments
 (0)