view: Modify button for copying emails based on application config of showing user email
@04763d85cbd59bf6b0edcf301511bf7e5e40e080
--- app/views/issue/partial_voter_list.scala.html
+++ app/views/issue/partial_voter_list.scala.html
... | ... | @@ -43,7 +43,9 @@ |
43 | 43 |
</ul> |
44 | 44 |
</div> |
45 | 45 |
<div class="modal-footer"> |
46 |
- <button id="copyEmailBtn" class="ybtn ybtn-info ybtn-small" data-clipboard-text="@for(voter <- voters){ @voter.email;}" >@Messages("button.copy.email")</button> |
|
46 |
+ @if(Application.SHOW_USER_EMAIL) { |
|
47 |
+ <button id="copyEmailBtn" class="ybtn ybtn-info ybtn-small" data-clipboard-text="@for(voter <- voters) {@voter.name <@voter.email>;}" >@Messages("button.copy.email")</button> |
|
48 |
+ } |
|
47 | 49 |
<button class="ybtn ybtn-info ybtn-small" data-dismiss="modal" aria-hidden="true">@Messages("button.close")</button> |
48 | 50 |
</div> |
49 | 51 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?