Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup remaining "Go Beyond" code #15174

Merged
merged 1 commit into from
May 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 0 additions & 28 deletions dashboard/app/models/levels/go_beyond.rb

This file was deleted.

1 change: 0 additions & 1 deletion dashboard/app/models/levels/level.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ def delete_custom_level_file
'FreeResponse', # no ideal solution
'FrequencyAnalysis', # widget
'Gamelab', # freeplay
'GoBeyond', # unknown
'Level', # base class
'LevelGroup', # dsl defined, covered in dsl
'Map', # no user submitted content
Expand Down
6 changes: 1 addition & 5 deletions dashboard/app/models/script_level.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ def report_bug_url(request)

def level_display_text
if level.unplugged?
if level.is_a?(GoBeyond)
I18n.t('go_beyond')
else
I18n.t('unplugged_activity')
end
I18n.t('unplugged_activity')
elsif stage.unplugged?
position - 1
else
Expand Down
2 changes: 0 additions & 2 deletions dashboard/app/views/levels/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
dashboard.createCallouts(appOptions.callouts);
- if @level.is_a?(Widget)
= render partial: 'levels/widget'
- elsif @level.is_a?(GoBeyond)
= render partial: 'levels/external_link'
- else
= render partial: "levels/#{@level.class.to_s.underscore}"
- unless @level.is_a?(StandaloneVideo)
Expand Down
1 change: 0 additions & 1 deletion dashboard/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ en:
trophies: "Trophies"
courses: 'Courses'
unplugged_activity: 'Unplugged Activity'
go_beyond: 'Go Beyond'
of: "of"
more: "MORE"
less: "LESS"
Expand Down