Skip to content

Commit

Permalink
move non-engine app to beerbook
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Jan 24, 2014
1 parent 62f7fce commit fa02c51
Show file tree
Hide file tree
Showing 33 changed files with 8 additions and 922 deletions.
4 changes: 4 additions & 0 deletions README.md
@@ -1,3 +1,7 @@
# beer.db.admin

open beer database (beer.db) web admin tool in ruby on rails (version 3.2 and up)


## License

Expand Down
9 changes: 0 additions & 9 deletions app/controllers/admin/base_controller.rb

This file was deleted.

61 changes: 0 additions & 61 deletions app/controllers/admin/users_controller.rb

This file was deleted.

8 changes: 0 additions & 8 deletions app/controllers/mobile/base_controller.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/controllers/mobile/beers_controller.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/controllers/mobile/bookmarks_controller.rb

This file was deleted.

70 changes: 0 additions & 70 deletions app/controllers/mobile/drinks_controller.rb

This file was deleted.

13 changes: 0 additions & 13 deletions app/controllers/mobile/pages_controller.rb

This file was deleted.

50 changes: 0 additions & 50 deletions app/controllers/mobile/sessions_controller.rb

This file was deleted.

7 changes: 0 additions & 7 deletions app/controllers/mobile/time_controller.rb

This file was deleted.

16 changes: 0 additions & 16 deletions app/controllers/mobile/users_controller.rb

This file was deleted.

46 changes: 1 addition & 45 deletions app/helpers/application_helper.rb
Expand Up @@ -2,49 +2,5 @@

module ApplicationHelper

# todo/fix: try/polish breadcrumb helper
def breadcrumb(*parts)
content_for :breadcrumb do
parts.join( ' › ' )
end
end

def signed_in?
session[:user_id].nil? == false
end

def current_user
User.find( session[:user_id] )
end

def current_user_id
session[:user_id]
end

def current_user?( user )
session[:user_id] == user.id
end



def powered_by
content_tag :div do
link_to( 'Questions? Comments?', 'http://groups.google.com/group/beerdb' ) + " | " +
link_to( "world.db/#{WorldDb::VERSION}", 'https://github.com/geraldb/world.db.ruby' ) + ', ' +
link_to( "beer.db/#{BeerDb::VERSION}", 'https://github.com/geraldb/beer.db.ruby' ) + ' - ' +
content_tag( :span, "Ruby/#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}/#{RUBY_PLATFORM}) on") + ' ' +
content_tag( :span, "Rails/#{Rails.version} (#{Rails.env})" ) + " | " +
link_to( 'Icon Drawer Flags', 'http://www.icondrawer.com' )
## content_tag( :span, "#{request.headers['SERVER_SOFTWARE'] || request.headers['SERVER']}" )
end
end

def image_tag_for_country( country, opts={} )
if opts[:size] == 'large' || opts[:size] == '64x64'
image_tag "flags/64x64/#{country.key}.png"
else
image_tag "flags/24x24/#{country.key}.png"
end
end

end

36 changes: 0 additions & 36 deletions app/views/admin/users/_form.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/admin/users/edit.html.erb

This file was deleted.

0 comments on commit fa02c51

Please sign in to comment.