Replace SVG with PNG for IE compatibility

This commit is contained in:
Erik Michaels-Ober 2011-12-25 14:30:46 -08:00
parent e71f789906
commit f1540fcfb0
4 changed files with 8 additions and 19 deletions

BIN
app/assets/images/lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="67.488px" height="100px" viewBox="0 0 67.488 100" enable-background="new 0 0 67.488 100" xml:space="preserve">
<path d="M67.486,65.037V41.437l-7.284-0.472V26.458C60.202,11.868,48.333,0,33.744,0S7.286,11.868,7.286,26.458v14.507L0,41.437
v23.601v9.179v23.601L33.744,100l33.742-2.185V74.215h0.002L67.486,65.037z M37.646,78.455h-3.399h-1.006h-3.399l2.393-9.105
c-1.527-0.603-2.611-2.089-2.611-3.831c0-2.276,1.846-4.121,4.121-4.121s4.121,1.845,4.121,4.121c0,1.742-1.083,3.229-2.611,3.831
L37.646,78.455z M52.214,40.448l-18.47-1.196l-18.471,1.196v-13.99c0-10.184,8.285-18.469,18.471-18.469s18.47,8.285,18.47,18.469
V40.448z"/>
</svg>

Before

Width:  |  Height:  |  Size: 1023 B

View File

@ -3,7 +3,7 @@
%label{:for => "user_email", :id => "user_email_label"}
= t("labels.email")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "email", :value => params[:user] ? params[:user][:email] : nil
= f.label "new" , radio_button_tag("user", "new", true).html_safe + t("labels.user_new")
= f.label "existing", radio_button_tag("user", "existing").html_safe + t("labels.user_existing")
@ -21,17 +21,17 @@
%label{:for => "user_voice_number", :id => "user_voice_number_label"}
= t("labels.voice_number")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "voice_number"
%label{:for => "user_sms_number", :id => "user_sms_number_label"}
= t("labels.sms_number")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "sms_number"
%label{:for => "user_password_confirmation", :id => "user_password_confirmation_label"}
= t("labels.password_choose")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.password_field "password_confirmation"
= f.submit t("buttons.sign_up"), :class => "btn primary"
%p
@ -40,7 +40,7 @@
%label{:for => "user_password", :id => "user_password_label"}
= t("labels.password")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.password_field "password"
= f.label "remember_me" , f.check_box("remember_me", :checked => true).html_safe + t("labels.remember_me")
= f.submit t("buttons.sign_in"), :class => "btn primary"

View File

@ -3,7 +3,7 @@
%label{:for => "user_email", :id => "user_email_label"}
= t("labels.email")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "email"
%label{:for => "user_name", :id => "user_name_label"}
= t("labels.name")
@ -18,12 +18,12 @@
%label{:for => "user_voice_number", :id => "user_voice_number_label"}
= t("labels.voice_number")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "voice_number"
%label{:for => "user_sms_number", :id => "user_sms_number_label"}
= t("labels.sms_number")
%small
= image_tag "lock.svg", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= image_tag "lock.png", :class => "lock", :alt => t("captions.private"), :title => t("captions.private")
= f.text_field "sms_number"
%label{:for => "user_password", :id => "user_password_label"}
= t("labels.password_new")