Better toasts. Add pg service in travis.

This commit is contained in:
dlage committed 2020-08-20 12:28:05 +01:00
1 parent 0125eadc38
commit e77691d960
8 files changed
+149 -30

No files matched your search

@@ -3,4 +3,7 @@
body {
height: 100%;
padding-top: 5rem;
}
#toast-container {
padding-top: 3rem;
}
+1 -3
View File
@@ -1,7 +1,5 @@
<main role="main" class="container">
<div class="starter-template text-center">
<div class="text-center">
<%= yield %>
</div>
</main>
+8
View File
@@ -0,0 +1,8 @@
<% unless flash.empty? %>
<script type="text/javascript">
<% flash.each do |f| %>
<% type = f[0].to_s.gsub('alert', 'error').gsub('notice', 'info') %>
toastr['<%= type %>']('<%= f[1] %>');
<% end %>
</script>
<% end %>
+1 -8
View File
@@ -10,15 +10,8 @@
</head>
<body>
<% unless flash.empty? %>
<script type="text/javascript">
<% flash.each do |f| %>
<% type = f[0].to_s.gsub('alert', 'error').gsub('notice', 'info') %>
toastr['<%= type %>']('<%= f[1] %>');
<% end %>
</script>
<% end %>
<%= render 'layouts/toasts' %>
<%= render 'layouts/top_navigation' %>
<%= render 'layouts/content' %>
<%= render 'layouts/footer' %>