Skip to content

Commit c53929f

Browse files
committed
Removed dead code from the home controller
1 parent e2b3e3a commit c53929f

File tree

3 files changed

+21
-89
lines changed

3 files changed

+21
-89
lines changed

app/controllers/home_controller.rb

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,5 @@ class HomeController < ApplicationController
33

44
def index
55
return redirect_to destination_url, flash: flash if signed_in?
6-
@entrepreneurs = User.username_in(FEATURED_ENTREPRENURES)
7-
@designers = User.username_in(FEATURED_DESIGNERS)
8-
@developers = User.username_in(FEATURED_CODERS)
9-
@teams = Team.any_in(_id: FEATURED_TEAMS).all
106
end
11-
12-
FEATURED_ENTREPRENURES = %w{
13-
naveen
14-
tobi
15-
mojombo
16-
anildash
17-
simonw
18-
topfunky
19-
caseorganic
20-
}
21-
22-
FEATURED_DESIGNERS = %w{
23-
amyhoy
24-
lessallan
25-
chriscoyier
26-
kylebragger
27-
sahil
28-
csswizardry
29-
davidkaneda
30-
sachagreif
31-
}
32-
33-
FEATURED_CODERS = %w{
34-
jeresig
35-
ginatrapani
36-
wycats
37-
unclebob
38-
ry
39-
chad
40-
maccman
41-
shanselman
42-
}
43-
44-
# wifelette
45-
# yukihiro_matz
46-
# caseorganic
47-
48-
FEATURED_TEAMS = %w{
49-
4f4bef5e9683e0000d000013
50-
4f27195a973bf0000400083e
51-
4f271942973bf000040003b0
52-
4f27193d973bf0000400029d
53-
4f271946973bf000040004a1
54-
4f271948973bf00004000515
55-
4f271951973bf00004000646
56-
4f271937973bf00004000196
57-
}
58-
597
end

app/views/home/index.html.haml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,37 @@
1-
=content_for :footer_menu do
1+
= content_for :footer_menu do
22
%li=link_to 'Protips', by_tags_protips_path
33

44
%section.users-top
55
.inside
6-
%a.sign-in{:href => signin_path}
6+
%a.sign-in{ href: signin_path }
77
Sign in
8-
9-
%a.new-logo{:href=> '/'}
10-
8+
%a.new-logo{ href: '/' }
119
%h1.mainline A community for developers to unlock &amp; share new skills.
12-
13-
/ %a.join-us{:href => '/'}
14-
/ Join us
15-
/ %p.join
16-
/ join us
1710
.sign-up-panel
18-
=render :partial => "sessions/join_buttons"
19-
11+
= render partial: "sessions/join_buttons"
2012
%section.home-section
2113
.inside.cf
2214
.text
2315
%h2 Share protips, learn from the community
24-
%p Learn from the experts about the latest languages, tools & technologies or share your own pro tip and get feedback from thousands of developers. Share code snippets, tutorials or thought pieces with your peers.
25-
16+
%p Learn from the experts about the latest languages, tools &amp; technologies or share your own pro tip and get feedback from thousands of developers. Share code snippets, tutorials or thought pieces with your peers.
2617
.image
27-
=image_tag("protip.jpg")
28-
18+
= image_tag("protip.jpg")
2919
%section.home-section.badge-section
3020
.inside.cf
3121
.text
32-
%h2 Unlock & earn badges for your coding achievements
22+
%h2 Unlock &amp; earn badges for your coding achievements
3323
%p Earn unique Coderwall badges to display on your user profile. Based on your github repositories, earn badges for all major language types, represent your skills, level-up.
34-
3524
.image
36-
=image_tag("badges2.jpg")
37-
38-
25+
= image_tag('badges2.jpg')
3926
%section.home-section.team-section
4027
.inside.cf
4128
.text
4229
%h2 Represent your team, curate its culture
4330
%p Discover over 6,000 brilliant engineering teams, how they're solving interesting challenges, and even find your next dream job. Curate your team's page by adding unique content, illustrating it's culture.
44-
4531
.image
46-
=image_tag("team.jpg")
47-
32+
= image_tag('team.jpg')
4833
%section.second-signup
4934
.inside.cf
5035
%h2.subline
5136
Start building your coderwall:
52-
=render :partial => "sessions/join_buttons"
37+
= render partial: 'sessions/join_buttons'

app/views/shared/_footer.html.haml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<script src="https://platform.twitter.com/widgets.js" type="text/javascript"></script>
77
%nav#footer-nav
88
%ul.footer-links.cf
9-
%li= link_to('Contact', contact_us_path)
10-
%li= link_to('Blog', blog_path)
11-
%li= link_to('API & Hacks', api_path)
12-
%li= link_to('FAQ', faq_path)
13-
%li= link_to('Privacy Policy', privacy_policy_path)
14-
%li= link_to('Terms of Service', tos_path)
15-
%li= link_to('Jobs', '/jobs')
9+
%li= link_to('Contact', contact_us_path)
10+
%li= link_to('Blog', blog_path)
11+
%li= link_to('API & Hacks', api_path)
12+
%li= link_to('FAQ', faq_path)
13+
%li= link_to('Privacy Policy', privacy_policy_path)
14+
%li= link_to('Terms of Service', tos_path)
15+
%li= link_to('Jobs', '/jobs')
1616
%li.employers= link_to('Employers', employers_path)
1717
=yield :footer_menu
1818

@@ -24,12 +24,11 @@
2424
%li
2525
:erb
2626
<a href="https://mixpanel.com/f/partner"><img src="https://mixpanel.com/site_media/images/partner/badge_light.png" alt="Real Time Web Analytics" /></a>
27-
=javascript_include_tag 'jquery'
28-
=javascript_include_tag 'application'
29-
=render :partial => 'shared/mixpanel_properties'
30-
=yield :javascript
27+
= javascript_include_tag 'jquery'
28+
= javascript_include_tag 'application'
29+
= render partial: 'shared/mixpanel_properties'
30+
= yield :javascript
3131
:erb
3232
<!--[if lt IE 9]>
3333
<%= javascript_include_tag('html5shiv.js') %>
3434
<![endif]-->
35-
-#=render :partial => 'shared/olark'

0 commit comments

Comments
 (0)