Adds title on close alerts link

This commit is contained in:
Alberto Garcia Cabeza
2015-09-22 18:00:56 +02:00
parent 3df06ebcb4
commit bf08cb582f
8 changed files with 11 additions and 9 deletions

View File

@@ -26,14 +26,14 @@
<div class="admin-content small-12 medium-9 column">
<% if notice %>
<div data-alert class="alert-box radius success">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= notice %>
</div>
<% end %>
<% if alert %>
<div data-alert class="alert-box radius alert">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= alert %>
</div>
<% end %>

View File

@@ -44,7 +44,7 @@
<div class="alert-messages">
<div class="row">
<div data-alert class="alert-box success radius">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= notice %>
</div>
</div>
@@ -55,7 +55,7 @@
<div class="alert-messages">
<div class="row">
<div data-alert class="alert-box alert radius">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= alert %>
</div>
</div>

View File

@@ -30,14 +30,14 @@
<div class="panel">
<% if notice %>
<div data-alert class="alert-box radius success">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= notice %>
</div>
<% end %>
<% if alert %>
<div data-alert class="alert-box radius warning">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= alert %>
</div>
<% end %>

View File

@@ -1,6 +1,6 @@
<% if resource.errors.any? %>
<div id="error_explanation" data-alert class="alert-box alert radius">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<strong>
<%= pluralize resource.errors.count, t("form.error"), t("form.errors") %>

View File

@@ -1,7 +1,7 @@
<% if @residence.errors[:residence_in_madrid].present? %>
<div id="error_explanation" data-alert class="alert-box alert radius">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= t("verification.residence.new.error_verifying_census") %>
<%= mail_to "web.gobiernoabierto@madrid.es" %>
</div>

View File

@@ -27,7 +27,7 @@
<%= form_for @sms, as: "sms", url: sms_path, method: :put do |f| %>
<% if @error %>
<div data-alert class="alert-box alert radius">
<a href="#" class="close">&times;</a>
<a href="#" class="close" title="<%= t("application.close") %>">&times;</a>
<%= @error %>
</div>
<% end %>

View File

@@ -70,6 +70,7 @@ en:
application:
alert:
only_beta_testers: "Sorry only Beta Testers are allowed access at the moment"
close: "Close"
debates:
index:
start_debate: Start a debate

View File

@@ -70,6 +70,7 @@ es:
application:
alert:
only_beta_testers: "Lo sentimos sólo los usuarios de pruebas tienen acceso de momento"
close: "Cerrar"
debates:
index:
start_debate: Empieza un debate