Mijeong Park Mijeong Park 2018-01-16
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
+++ app/views/issue/partial_voter_list.scala.html
@@ -43,7 +43,9 @@
         </ul>
     </div>
     <div class="modal-footer">
-        <button id="copyEmailBtn" class="ybtn ybtn-info ybtn-small" data-clipboard-text="@for(voter <- voters){ @voter.email;}" >@Messages("button.copy.email")</button>
+        @if(Application.SHOW_USER_EMAIL) {
+            <button id="copyEmailBtn" class="ybtn ybtn-info ybtn-small" data-clipboard-text="@for(voter <- voters) {@voter.name <@voter.email>;}" >@Messages("button.copy.email")</button>
+        }
         <button class="ybtn ybtn-info ybtn-small" data-dismiss="modal" aria-hidden="true">@Messages("button.close")</button>
     </div>
 </div>
Add a comment
List