[Notice] Announcing the End of Demo Server [Read me]
doortts doortts 2017-04-17
issue: Change 'show watcher of this issue' button position and icon
@7f1d6e425132b2caed7217d2a59a34a7561365ab
app/utils/TemplateHelper.scala
--- app/utils/TemplateHelper.scala
+++ app/utils/TemplateHelper.scala
@@ -35,7 +35,7 @@
 
   def showWatchers(posting: AbstractPosting): String = {
       "<div class='show-watchers' data-toggle='tooltip' data-placement='top' data-trigger='hover' data-html='true' title='" + Messages.get("watchers") + "'>" +
-      "<button id='watcher-list-button' type='button' class='ybtn'><i class='yobicon-emo-coffee'></i><span class='watcherCount'></span></button>" +
+      "<button id='watcher-list-button' type='button' class='ybtn'><i class='yobicon-emo-happy'></i><span class='watcherCount'></span></button>" +
       "</div>"
   }
 
app/views/issue/view.scala.html
--- app/views/issue/view.scala.html
+++ app/views/issue/view.scala.html
@@ -164,8 +164,6 @@
                                 }
                                 </button>
                             }
-                            @Html(showWatchers(issue))
-
                             <div id="vote" class="vote-wrap">
                                 @if(isResourceCreatable(UserApp.currentUser, issue.asResource(), ResourceType.ISSUE_COMMENT)) {
                                     <a href="@urlToVote" class="ybtn @if(issue.isVotedBy(UserApp.currentUser)){ybtn-watching}" title="@getVoteButtonTitle"
@@ -190,6 +188,7 @@
                                     @partial_voters(issue, 3)
                                 }
                             </div>
+                            @Html(showWatchers(issue))
                         </div>
                     </div>
 
Add a comment
List