Skip to content

Commit

Permalink
remove duplicate maintenance message
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 30, 2024
1 parent 17abdda commit df1bd87
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
</head>
<body>
<div class="container shadow-lg rounded-3 border p-4 p-md-5 my-md-3">
<% if AppSettings.app_maintenance == "true" %>
<div class="alert alert-warning text-center" role="alert">
<%= raw(AppSettings.app_maintenance_message) %>
</div>
<% end %>
<header>
<div class="d-flex flex-column flex-md-row align-items-center">
<div class="p-2">
Expand All @@ -31,11 +26,11 @@
<main class="my-3">
<header>
<%= render :template => "layouts/navbar" %>

<% if AppSettings.app_maintenance == "true" %>
<div class="alert alert-warning" role="alert">
<h2>Attention!</h2>
<p><%= AppSettings.app_maintenance_message %></p>
</div>
<div class="alert alert-warning text-center" role="alert">
<%= raw(AppSettings.app_maintenance_message) %>
</div>
<% end %>

<% flash.each do |name, msg| %>
Expand Down

0 comments on commit df1bd87

Please sign in to comment.