1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added dismissable alerts

This commit is contained in:
2019-01-24 13:46:09 +00:00
parent ceb7645490
commit a834b38a8e
3 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
</script>
<% end %>
<div class="afs_ads">&nbsp;</div>
<div class="well" id="blocked_message" style="display: none;">
<div class="alert alert-danger alert-dismissible" id="blocked_message" style="display: none;"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<p>We've detected that you have an ad blocker enabled! Please consider disabling it for <strong>wrestlingdev.com</strong>. This site is free for users and supported by ads. Ad blockers also block performance monitoring that help us with user experience.</p>
</div>
<script>

View File

@@ -37,7 +37,9 @@
</div>
<div class="row no-margin">
<div class="col-md-12" style="padding-left: 2%;">
<p id="notice"><%= notice %></p>
<% if notice %>
<p id="notice" class="alert alert-success alert-dismissible"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><%= notice %></p>
<% end %>
<div id="view"><%= yield %></div>
</div>
</div>

View File

@@ -1,5 +1,5 @@
<% if can? :manage, @tournament %>
| <%= link_to "Edit #{@tournament.name}", edit_tournament_path(@tournament), :class=>"btn btn-primary" %>
<%= link_to "Edit #{@tournament.name}", edit_tournament_path(@tournament), :class=>"btn btn-primary" %>
<% end %>