Skip to content

Commit

Permalink
FeedView: Added tooltip to show pair names
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Apr 7, 2015
1 parent a1087b0 commit 4274b5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@
<li class="item">
<span class="alt time"><%= moment(time).format('hh:mm:ss') %></span>
<br>
<img class="logo" src="images/<%= currencies[0].toLowerCase() %>.png">
<span>/</span>
<img class="logo" src="images/<%= currencies[1].toLowerCase() %>.png">
<span class="pair" data-toggle="tooltip" data-placement="top" title="<%= currencies.join('/').toUpperCase() %>">
<img class="logo" src="images/<%= currencies[0].toLowerCase() %>.png">
<span>/</span>
<img class="logo" src="images/<%= currencies[1].toLowerCase() %>.png">
</span>
<span class="alt"> - </span>
<span class="amount"><span class="symbol"><%= symbols[0] %></span><%= amount %></span>
<span class="alt">@</span>
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/js/views/FeedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ coinswap.FeedView = Backbone.View.extend({
var children = this.$el.find('.list').children();
children.eq(-1).remove();
}

row.find('[data-toggle="tooltip"]').tooltip({
animation: false,
container: this.$el
});
}
});

Expand Down

0 comments on commit 4274b5c

Please sign in to comment.