Changes bg images, adds favicon and alerts styles

This commit is contained in:
Alberto Garcia Cabeza
2015-08-29 00:33:40 +02:00
parent b04f257498
commit 13fe1dcb9f
7 changed files with 10 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

View File

@@ -9,17 +9,18 @@
<%= javascript_include_tag "vendor/modernizr" %> <%= javascript_include_tag "vendor/modernizr" %>
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %> <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<%= favicon_link_tag "favicon.ico" %>
</head> </head>
<body> <body class="<%= "bg-white" if current_page?(root_path) %>">
<%= render 'layouts/header' %> <%= render 'layouts/header' %>
<% if notice %> <% if notice %>
<p class="alert-box success"><%= notice %></p> <p class="alert-box success alert-layout"><%= notice %></p>
<% end %> <% end %>
<% if alert %> <% if alert %>
<p class="alert-box"><%= alert %></p> <p class="alert-box alert alert-layout"><%= alert %></p>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@@ -14,11 +14,11 @@
<body class="auth-page"> <body class="auth-page">
<% if notice %> <% if notice %>
<p class="alert-box success"><%= notice %></p> <p class="alert-box success alert-layout"><%= notice %></p>
<% end %> <% end %>
<% if alert %> <% if alert %>
<p class="alert-box"><%= alert %></p> <p class="alert-box alert alert-layout"><%= alert %></p>
<% end %> <% end %>
<div class="row"> <div class="row">

View File

@@ -1,10 +1,8 @@
<% if resource.errors.any? %> <% if resource.errors.any? %>
<div id="error_explanation" class="alert-box alert radius"> <div id="error_explanation" class="alert-box alert radius">
<p>
<strong> <strong>
<%= pluralize resource.errors.count, t("form.error"), t("form.errors") %> <%= pluralize resource.errors.count, t("form.error"), t("form.errors") %>
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %> <%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %>
</strong> </strong>
</p>
</div> </div>
<% end %> <% end %>