Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed invitation counter when no more invitations left

  • Loading branch information...
commit 7401c35430f7c80bc6c131721c14819f125db720 1 parent 8f8d491
@yvesvanbroekhoven yvesvanbroekhoven authored
View
16 app/helpers/application_helper.rb
@@ -114,22 +114,6 @@ def block2(title=nil, &block)
concat(%{</div></div>})
end
- def css_class_first(value=nil, check=nil)
- unless value.nil? or check.nil?
- if value == check
- %{first}
- end
- end
- end
-
- def css_class_last(value=nil, check=nil)
- unless value.nil? or check.nil?
- if value == check
- %{last}
- end
- end
- end
-
def css_class(class_name='', value=nil, check=nil)
unless value.nil? or check.nil?
if value == check
View
11 app/views/layouts/home.html.haml
@@ -21,10 +21,11 @@
%a{ :href => "#", :title => "Newsletter" }
Newsletter
%li.invites-counter
- Only
- %strong
- = invites_left(50)
- invites left, so hurry!
+ - if invites_left(50).to_i > 0
+ Only
+ %strong
+ = invites_left(50)
+ invites left, so hurry!
%h1
%a{ :href => "/", :title => "Failtale (beta) - Telling you more about failing applications." }
@@ -124,7 +125,7 @@
%span.valid{:style => "display:none;"}
%span.invalid{:style => "display:none;"}
%p
- = f.submit "Request invitation", :class => 'button request'
+ = f.submit "Request invitation", :class => 'button'
#login{:style => "display:none;"}
- form_for UserSession.new, :url => user_session_path, :html => {:class => 'form'} do |f|
View
2  app/views/shared/_home_assets.html.haml
@@ -1,2 +1,2 @@
= stylesheet_link_tag 'reset.css', 'general.css'
-= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js', 'jquery.scrollTo-min.js', 'jquery.clearfield.packed.js', 'application.js'
+= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js', 'jquery.scrollTo-min.js', 'jquery.clearfield.packed.js', 'jquery.tablesorter.min.js', 'application.js'
View
BIN  db/development.sqlite3 copy
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.