Skip to content

Commit 38136c1

Browse files
committed
Remove one commit that we don't want in 1.0.1.
This reverts commit 55edf54.
1 parent 8f425e2 commit 38136c1

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

app/ui/tabs/lessons.rb

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,19 @@ class HH::SideTabs::Lessons < HH::SideTab
1010
# auxiliary function used by Kernel#lesson_set
1111
# stores the code of the DSL used to write the lessons
1212
def self.load_lesson name, blk
13-
@@lessons << [@@difficulty, name, blk]
13+
@@lessons << [name, blk]
1414
end
1515

1616
# draws the lessons tab
1717
def content
1818
stack :margin => 10 do
19-
title "Lessons", :font => "Phonetica"
19+
title "Lessons"
2020
@@lessons = []
21-
@@difficulty = "About Hackety"
22-
para "So you want to learn some programming, eh? You've come to the right place!"
2321
Dir["#{HH::LESSONS}/*.rb"].each { |f| load f }
24-
25-
%w[beginner intermediate advanced expert].each do |d|
26-
@@difficulty = d.capitalize
27-
Dir["#{HH::LESSONS}/#{d}/*.rb"].each { |f| load f }
28-
end
29-
30-
@@lessons.group_by{|i| i[0]}.each do |key, value|
31-
para key.to_s
32-
value.each do |v|
33-
stack do
34-
britelink "icon-file.png", v[1] do
35-
HH::APP.start_lessons name, v[2]
36-
end
22+
@@lessons.sort{|a, b| a[0] <=> b[0]}.each do |name, blk|
23+
stack do
24+
britelink "icon-file.png", name do
25+
HH::APP.start_lessons name, blk
3726
end
3827
end
3928
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lesson_set "Beginner Programming" do
1+
lesson_set "2: Basic Programming" do
22

33
lesson "Hello there!"
44
page "Round One" do
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# encoding: UTF-8
22

3-
lesson_set "Beginner Ruby" do
3+
lesson_set "3: Basic Ruby" do
44

55
lesson "Hello there!"
66
page "Let's get started" do
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# encoding: UTF-8
22

3-
lesson_set "Beginner Shoes" do
3+
lesson_set "4: Basic Shoes" do
44

55
lesson "Hello there!"
66
page "Let's get started" do

lessons/tour.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lesson_set "A Tour of Hackety Hack" do
1+
lesson_set "1: A Tour of Hackety Hack" do
22
lesson "Welcome!"
33
page "Why hello there!" do
44
para "Welcome to the Hackety Hack tour!"

0 commit comments

Comments
 (0)