Sha256: f99c70dae7548ece2f2e56af0256e663b6d728be894c1bdd4850e59dc9b78b31
Contents?: true
Size: 881 Bytes
Versions: 19
Compression:
Stored size: 881 Bytes
Contents
.remote = form_for(@user, :url => upload_avatar_user_path(@user, :format => "js"), :html => { :multipart => true, :target => "uploading", :onsubmit => "$('#user_avatar_submit').disabled = true" }) do |f| = link_to_close avatar_user_path(@user) = error_messages_for :avatar, :object => @user.avatar, :object_name => t('avatar') %p %small #{t :image_help} %div #{t :image_file}: = fields_for(Avatar) do |a| %div= a.file_field :image .buttonbar %small.cool{:style => "float:right"}== #{t :gravatar_help} #{link_to(t(:here), "http://en.gravatar.com", :"data-popup" => true)}. = f.submit t(:upload_picture), :id => "user_avatar_submit" #{t :or} = link_to(t(:use_gravatar), upload_avatar_user_path(@user) + '?gravatar=1', :method => :put, :remote => true) #{t :or} = link_to_cancel avatar_user_path(@user) %br
Version data entries
19 entries across 19 versions & 2 rubygems