diff --git a/app/views/users/pending.html.haml b/app/views/users/pending.html.haml deleted file mode 100644 index 947225c9..00000000 --- a/app/views/users/pending.html.haml +++ /dev/null @@ -1,55 +0,0 @@ --content_for :mixpanel do - =record_event('viewed pending profile', :viewing_self => viewing_self?) - -#inprogress - %h1 Heavy Lifting In Progress - -unless viewing_self? - #members - %h3==Looks like #{@user.display_name}'s Coderwall is not ready yet. Why not check out some other hackers in the meantime? - -User.random(8).each do |user| - .member - =avatar_image_tag(user) - =link_to user.username, badge_path(:username => user.username) - .clear - -else - %h3==Welcome to Coderwall! We add new members to our beta at the end of every week. Your estimated delivery is #{estimated_delivery_date.to_words}. While you wait for your welcome email, below are some things you can do to get the most out of coderwall. - %ul.badges - %li - %h2 1 - %p.desc Maximize the potential to earn new achievements - %p - Badges are awarded when we discover your achievements. By linking more accounts, we can find more of these achievements on the internet. (we - %strong never - post to your accounts) - .linkaccounts=render :partial => 'users/link_accounts' - / %li - / %h2 2 - / %p.desc Share an accomplishment - / %p Inspire others, be proud of your skills, and earn achievements by sharing a personal accomplishment. - / .createwhilepending - / =form_tag user_highlights_path(@user), :remote => true do - / .white-container - / =text_area_tag :highlight, nil, :placeholder => 'Enter an accomplishment', :id => "new_accomplishment" - / / #countdown 100 - / =link_to 'save', '#', {:class => 'submitter button'} - %li - %h2 2 - %p.desc Can't wait and need your Coderwall today? - %p - Help us spread the word and we'll help you cut to the front of the queue. Tweet a link to your profile and have your account activated within 2 hours. - -if event_checkin_class == 'show' - %p - %strong Checking in to NodeSummit will put you in the front of the queue. - #spread=share_coderwall_on_twitter - - .clear - -if @user.highlights.empty? - #personalAccomplishments.hide - %h2.section - .headline Personal Accomplishments - %ul.accomplishments=render @user.highlights - -else - #personalAccomplishments - %h2.section - .headline Personal Accomplishments - %ul.accomplishments=render @user.highlights diff --git a/lib/date_to_words.rb b/lib/date_to_words.rb deleted file mode 100644 index 6b96d435..00000000 --- a/lib/date_to_words.rb +++ /dev/null @@ -1,35 +0,0 @@ -Date.class_eval do - def to_words - if self == Date.today - "today" - elsif self <= Date.today - 1 - if self == Date.today - 1 - "yesterday" - elsif ((Date.today - 7)..(Date.today - 1)).include?(self) - "last #{self.strftime("%A")}" - elsif ((Date.today - 14)..(Date.today - 8)).include?(self) - "two #{self.strftime("%A")}s ago" - elsif ((Date.today - 21)..(Date.today - 15)).include?(self) - "three #{self.strftime("%A")}s ago" - elsif ((Date.today - 29)..(Date.today - 22)).include?(self) - "four #{self.strftime("%A")}s ago" - elsif Date.today - 30 < self - "more than a month ago" - end - else - if self == Date.today + 1 - "tomorrow" - elsif ((Date.today + 1)..(Date.today + 6)).include?(self) - "this coming #{self.strftime("%A")}" - elsif ((Date.today + 7)..(Date.today + 14)).include?(self) - "next #{self.strftime("%A")}" - elsif ((Date.today + 15)..(Date.today + 21)).include?(self) - "two #{self.strftime("%A")}s away" - elsif ((Date.today + 22)..(Date.today + 29)).include?(self) - "three #{self.strftime("%A")}s away" - elsif Date.today + 30 > self - "more than a month in the future" - end - end - end -end \ No newline at end of file