Skip to content

Commit

Permalink
Merge pull request #250 from LittleBigProgramming/feature/truncate-co…
Browse files Browse the repository at this point in the history
…ntent-column-message-logs

feature/truncate-content-column-message-logs
  • Loading branch information
maebeale authored Oct 10, 2019
2 parents 31b27d9 + 529f047 commit da9f893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/message_logs/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<th scope="row"><%= message_log.message_type %></th>
<td><%= message_log.id %></td>
<%# Strip HTML tags and hard carriage returns since content returns as a long HTML string%>
<td><%= strip_tags(message_log.content)&.gsub(/=0D/, "") %></td>
<td><%= truncate(strip_tags(message_log.content).gsub(/=0D/, ""), length: 25) %></td>
<td><%= message_log.delivery_type %></td>
<td><%= message_log.delivery_status %></td>
<td><%= message_log.sent_to.email %></td>
Expand Down

0 comments on commit da9f893

Please sign in to comment.