Calculate selected_count, any_selected? and mailto_bcc once in assigns instead of recalculating Enum.any? and Enum.count multiple times in template. This improves render performance and makes the template code more readable. |
||
|---|---|---|
| .. | ||
| index | ||
| form.ex | ||
| index.ex | ||
| index.html.heex | ||
| show.ex | ||