app/views/exception_handler/exception/show.html.erb in exception_handler-0.3.45 vs app/views/exception_handler/exception/show.html.erb in exception_handler-0.4
- old
+ new
@@ -1,27 +1,29 @@
-<% if @status.to_s == "404" %>
+<div class="error">
+ <% if @layout == "error" %>
- Sorry, this page is missing!
-
-<% else %>
-
- <div class="error">
-
- <!--Alert -->
- <%= image_tag 'exception_handler/alert.png', width: "150", alt: "Error!", title: "Sorry, A Server Error Occurred", class: "alert" %>
-
<!--Message -->
- <div class="message">
- <strong><%= details[:name] %></strong>
- <span><%= details[:message] %></span>
- </div>
-
- <!--Contact -->
- <div class="contact">
- <% ExceptionHandler.config.social.each do |item, address| %>
- <%= link_to image_tag("exception_handler/contact/#{item}.png", title: item.to_s.titleize), address, target: :blank %>
+ <%= content_tag :div, class: "message" do %>
+ <%= content_tag :div, class: "title" do %>
+ <span><%= "#{@status} Error - #{details[:name]}" %></span>
+ <%= link_to image_tag("exception_handler/close.png"), root_url, title: "Close (Go back home)", class: "close" %>
<% end %>
- </div>
-
- </div>
+ <%= content_tag :div, class: "details" do %>
+ <%= image_tag "exception_handler/alert.png", title: "#{@status} Error" %>
+ <div class="status"><%= @status %> Error</div>
+ <% end %>
+ <%= content_tag :div, class: "info" do %>
+ <span><%= @message %></span>
+ <div class="notification">
+ <%= link_to image_tag("exception_handler/home.png", title: "Go Back Home"), root_url, class: "home" %>
+ <div class="version">v<%= Rails.version %></div>
+ <strong>Our developers have been notified - we're working on it!</strong>
+ </div>
+ <% end %>
+ <% end %>
-<% end %>
+ <% else %>
+
+ <%= content_tag :div, @message, class: "message" %>
+
+ <% end %>
+</div>
\ No newline at end of file