Mijeong Park Mijeong Park 2018-01-17
view: Remove ux(number of heart) & Add new feature for copying email to message(voters more)
@4437e5fd7f147479269d0404292955482cf6b627
app/views/issue/partial_voters.scala.html
--- app/views/issue/partial_voters.scala.html
+++ app/views/issue/partial_voters.scala.html
@@ -27,7 +27,9 @@
                     @if(issueVoters.size > numOfAvatars + numOfNames) {
                             …
                     }">
-                    <span>...</span>
+                    <a href="#voters" data-toggle="modal">
+                    @Messages("issue.voters.more", issueVoters.size - numOfAvatars)
+                    </a>
                 </li>
             }
         }
app/views/issue/view.scala.html
--- app/views/issue/view.scala.html
+++ app/views/issue/view.scala.html
@@ -180,9 +180,6 @@
                     </div>
                     <div id="vote" class="vote-wrap @if(issue.voters.size > 0){voter-exists}">
                         @if(isResourceCreatable(UserApp.currentUser, issue.asResource(), ResourceType.ISSUE_COMMENT)) {
-                            @if(issue.voters.size > 0) {
-                                <a href="#voters" data-toggle="modal">@issue.voters.size</a>
-                            }
                             <a href="@urlToVote" class="@if(issue.isVotedBy(UserApp.currentUser)) {ybtn-watching}" title="@getVoteButtonTitle"
                             data-request-method="post" data-toggle="tooltip">
                                 <span class="heart"><i class="yobicon-hearts"></i></span>
@@ -194,7 +191,7 @@
                         }
 
                         @if(issue.voters.size > 0) {
-                            @partial_voters(issue, 1)
+                            @partial_voters(issue, 3)
                         }
                     </div>
 
Add a comment
List