Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the recipients in the thread view of messages. #1034

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config/environments/development.rb
nbproject/
.*.sw?
*~
*.iml

coverage
tags
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/bootstrap_and_overrides.css.less
Original file line number Diff line number Diff line change
Expand Up @@ -540,3 +540,7 @@ span.negative_amout {
.deleted_row {
text-decoration: line-through;
}

details {
cursor: pointer;
}
5 changes: 5 additions & 0 deletions plugins/messages/app/views/messages/thread.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
.panel-heading
%b= h(message.sender_name)
= format_time(message.created_at)
%br
- # show the list of recipients in a expandable detail/summary panel
%details
%summary= t '.recipients'
= message.recipients.map(&:display).join(', ')
.panel-body= simple_format(h(message.body))

%p
Expand Down
1 change: 1 addition & 0 deletions plugins/messages/config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ de:
thread:
all_message_threads: Alle Nachrichtenverläufe
reply: Antworten
recipients: Empfänger_innen
toggle_private:
not_allowed: Du kannst die Sichtbarkeit dieser Nachricht nicht ändern.
message_threads:
Expand Down
1 change: 1 addition & 0 deletions plugins/messages/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ en:
thread:
all_message_threads: All message threads
reply: Reply
recipients: Recipients
toggle_private:
not_allowed: You can not change the visibility of the message.
message_threads:
Expand Down
1 change: 1 addition & 0 deletions plugins/messages/config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ es:
thread:
all_message_threads: Todos los hilos de mensaje
reply: Responde
recipients: Destinatarios
toggle_private:
not_allowed: No puede cambiar la visibilidad del mensaje.
message_threads:
Expand Down
1 change: 1 addition & 0 deletions plugins/messages/config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ nl:
thread:
all_message_threads: Alle conversaties
reply: Antwoord
recipients: Geadresseerden
toggle_private:
not_allowed: Je kunt de zichtbaarheid van het bericht niet wijzigen.
message_threads:
Expand Down
1 change: 1 addition & 0 deletions plugins/messages/config/locales/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ tr:
thread:
all_message_threads: Tüm mesaj konuları
reply: Yanıtla
recipients: Alıcılar
toggle_private:
not_allowed: Mesajın görünürlüğünü değiştiremezsiniz.
message_threads:
Expand Down
Loading