Skip to content

Commit

Permalink
issue: Change 'show watcher of this issue' button position and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 17, 2017
1 parent 1e07cac commit 7f1d6e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/utils/TemplateHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object TemplateHelper {

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>"
}

Expand Down
3 changes: 1 addition & 2 deletions app/views/issue/view.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -190,6 +188,7 @@
@partial_voters(issue, 3)
}
</div>
@Html(showWatchers(issue))
</div>
</div>

Expand Down

0 comments on commit 7f1d6e4

Please sign in to comment.