Skip to content

Commit

Permalink
Add stylesheet for 'Resolve this bet' button
Browse files Browse the repository at this point in the history
- Set width to 100%.
  • Loading branch information
LeonTenko committed Apr 11, 2017
1 parent c7d3230 commit de27a27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/bets/resolve-bet.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.resolve-bet-btn{
width: 100%;
}
6 changes: 4 additions & 2 deletions app/views/bets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<hr>
<div class="resolve-bet">
<div class="row text-center">
<div class="col col-lg-12">
<div class="col col-lg-6 offset-lg-3">
<% if @bet.resolved? %>
<div class="text-muted">
<h3>This bet has been resolved.</h3>
</div>
<% else %>
<%= link_to 'Resolve Bet', resolve_bet_path, class: 'btn btn-success',
<%= link_to 'Resolve this bet',
resolve_bet_path,
class: 'btn btn-success resolve-bet-btn',
role: 'button' %>
<% end %>
</div>
Expand Down

0 comments on commit de27a27

Please sign in to comment.