Skip to content

Commit

Permalink
Revert "Alert improvement and adding byebug gem (publiclab#383)"
Browse files Browse the repository at this point in the history
This reverts commit 7502b53.
  • Loading branch information
avsingh999 authored Mar 30, 2019
1 parent 7502b53 commit 19edb4e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ public/lib
node_modules
todo.txt
.sass-cache
.byebug_history
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ group :test do
end

group :development do
gem "byebug"
gem "jshintrb"
gem "therubyracer"
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def successful_login(back_to, id)
def logout
session[:user_id] = nil
flash[:success] = "You have successfully logged out."
redirect_to '/' + '?_=' + Time.now.to_i.to_s
redirect_to '/'
end

protected
Expand Down
15 changes: 0 additions & 15 deletions app/views/layouts/_alerts.html.erb

This file was deleted.

9 changes: 8 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
</head>
<body>
<%= render 'layouts/header' %>
<%= render 'layouts/alerts' %>

<div class="container-fluid" id="alerts">
<% if flash[:notice] %><div class="alert alert-success"><button type="button" class="close" data-dismiss="alert"><i class="fa fa-close"></i></button><%=raw flash[:notice] %></div><% end %>
<% if flash[:error] %><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert"><i class="fa fa-close"></i></button><%=raw flash[:error] %></div><% end %>
<% if flash[:warning] %><div class="alert alert-warning"><button type="button" class="close" data-dismiss="alert"><i class="fa fa-close"></i></button><%=raw flash[:warning] %></div><% end %>
</div>

<%= yield; %>

<%= render 'layouts/footer' %>

<script>
Expand Down
2 changes: 1 addition & 1 deletion app/views/maps/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<%= javascript_include_tag('/lib/leaflet-spin/example/leaflet.spin.min.js') %>

<div class="container-fluid">
<div id="mapknitter-unique" style="height: 300px ; width: 100% ; margin-bottom: 1%; z-index: 5;"></div>
<div id="mapknitter-unique" style="height: 300px ; width: 100% ; margin-bottom: 1%"></div>
<div class="row">
<div class="col-md-3">
<% if logged_in? %>
Expand Down

0 comments on commit 19edb4e

Please sign in to comment.