mumuki-laboratory 7.12.0 → 8.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/characters.js +3 -1
- data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +89 -11
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +171 -333
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +144 -130
- data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +63 -0
- data/app/assets/javascripts/mumuki_laboratory/application/number-counter.js +18 -0
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +258 -0
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +117 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +47 -113
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +9 -12
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +31 -3
- data/app/controllers/api/courses_controller.rb +1 -2
- data/app/controllers/api/organizations_controller.rb +2 -3
- data/app/controllers/api/users_controller.rb +2 -4
- data/app/controllers/application_controller.rb +41 -8
- data/app/controllers/assets_controller.rb +1 -0
- data/app/controllers/book_discussions_controller.rb +1 -1
- data/app/controllers/chapters_controller.rb +1 -0
- data/app/controllers/discussions_controller.rb +4 -0
- data/app/controllers/exercises_controller.rb +1 -0
- data/app/controllers/guides_controller.rb +2 -0
- data/app/controllers/invitations_controller.rb +2 -2
- data/app/controllers/lessons_controller.rb +1 -0
- data/app/controllers/login_controller.rb +1 -0
- data/app/controllers/users_controller.rb +9 -1
- data/app/helpers/assistance_box_helper.rb +7 -5
- data/app/helpers/contextualization_result_helper.rb +9 -1
- data/app/helpers/gamification_helper.rb +5 -0
- data/app/helpers/links_helper.rb +1 -1
- data/app/views/exercise_solutions/_assistant_rules_box.html.erb +13 -0
- data/app/views/exercise_solutions/_contextualization_results_container.html.erb +9 -0
- data/app/views/exercise_solutions/_kids_level_up.html.erb +11 -0
- data/app/views/exercise_solutions/_kids_results.html.erb +1 -1
- data/app/views/exercise_solutions/_results.html.erb +19 -19
- data/app/views/exercise_solutions/_results_title.html.erb +5 -0
- data/app/views/exercises/show.html.erb +4 -1
- data/app/views/layouts/_kindergarten.html.erb +4 -4
- data/app/views/layouts/_organizations_listing.html.erb +8 -12
- data/app/views/layouts/application.html.erb +8 -2
- data/app/views/layouts/modals/_guide_corollary.html.erb +1 -1
- data/app/views/layouts/modals/_kids_context.html.erb +1 -1
- data/app/views/layouts/modals/_kids_results.html.erb +16 -6
- data/app/views/layouts/modals/_kindergarten_context.html.erb +15 -15
- data/app/views/layouts/modals/_kindergarten_results.html.erb +20 -7
- data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +10 -7
- data/app/views/layouts/modals/_level_up.html.erb +27 -0
- data/app/views/users/_edit_user_form.html.erb +1 -1
- data/app/views/users/_user_form.html.erb +12 -2
- data/app/views/users/terms.html.erb +12 -0
- data/config/routes.rb +8 -8
- data/lib/mumuki/laboratory.rb +18 -5
- data/lib/mumuki/laboratory/controllers.rb +2 -0
- data/lib/mumuki/laboratory/controllers/action_redirector.rb +21 -0
- data/lib/mumuki/laboratory/controllers/immersive_navigation.rb +7 -0
- data/lib/mumuki/laboratory/controllers/results_rendering.rb +1 -0
- data/lib/mumuki/laboratory/events/events.rb +0 -33
- data/lib/mumuki/laboratory/locales/en.yml +11 -0
- data/lib/mumuki/laboratory/locales/es-CL.yml +5 -0
- data/lib/mumuki/laboratory/locales/es.yml +12 -1
- data/lib/mumuki/laboratory/locales/pt.yml +11 -0
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +5 -1
- data/spec/controllers/exercise_solutions_controller_spec.rb +1 -1
- data/spec/features/immersive_redirection_spec.rb +181 -0
- data/spec/features/profile_flow_spec.rb +35 -3
- data/spec/features/terms_flow_spec.rb +155 -0
- metadata +108 -98
- data/app/helpers/organization_list_helper.rb +0 -5
- data/spec/features/choose_organization_spec.rb +0 -74
@@ -12,6 +12,7 @@ class ApplicationController < ActionController::Base
|
|
12
12
|
include Mumuki::Laboratory::Controllers::DynamicErrors
|
13
13
|
include Mumuki::Laboratory::Controllers::EmbeddedMode
|
14
14
|
include Mumuki::Laboratory::Controllers::IncognitoMode
|
15
|
+
include Mumuki::Laboratory::Controllers::ActionRedirector
|
15
16
|
|
16
17
|
before_action :set_current_organization!
|
17
18
|
before_action :set_locale!
|
@@ -24,6 +25,7 @@ class ApplicationController < ActionController::Base
|
|
24
25
|
before_action :authorize_if_private!
|
25
26
|
before_action :validate_active_organization!
|
26
27
|
before_action :validate_user_profile!, if: :current_user?
|
28
|
+
before_action :validate_accepted_role_terms!, if: :current_user?
|
27
29
|
|
28
30
|
before_action :visit_organization!, if: :current_user?
|
29
31
|
|
@@ -36,23 +38,26 @@ class ApplicationController < ActionController::Base
|
|
36
38
|
:has_notifications?,
|
37
39
|
:subject,
|
38
40
|
:should_choose_organization?,
|
41
|
+
:current_immersive_organizations,
|
39
42
|
:theme_stylesheet_url,
|
40
|
-
:extension_javascript_url
|
43
|
+
:extension_javascript_url,
|
44
|
+
:current_immersive_path
|
41
45
|
|
42
46
|
def immersive_context_wrong?
|
43
47
|
current_immersive_context != Organization.current
|
44
48
|
end
|
45
49
|
|
46
50
|
def redirect_to_proper_context!
|
47
|
-
|
48
|
-
redirect_to current_immersive_context.url_for('/')
|
51
|
+
redirect_to current_immersive_path_for(*current_immersive_context_and_content)
|
49
52
|
end
|
50
53
|
|
51
54
|
def should_choose_organization?
|
52
55
|
return false unless current_user?
|
56
|
+
current_immersive_organizations.multiple?
|
57
|
+
end
|
53
58
|
|
54
|
-
|
55
|
-
current_user.
|
59
|
+
def current_immersive_organizations
|
60
|
+
current_user.immersive_organizations_with_content_at(subject)
|
56
61
|
end
|
57
62
|
|
58
63
|
# ensures contents are accessible to current user
|
@@ -66,7 +71,6 @@ class ApplicationController < ActionController::Base
|
|
66
71
|
Organization.current.validate_active!
|
67
72
|
end
|
68
73
|
|
69
|
-
|
70
74
|
# required by Mumukit::Login
|
71
75
|
def login_button(options = {})
|
72
76
|
login_form.button_html I18n.t(:sign_in), options[:class]
|
@@ -82,11 +86,31 @@ class ApplicationController < ActionController::Base
|
|
82
86
|
Mumuki::Domain::Workspace.new(current_user, Organization.current)
|
83
87
|
end
|
84
88
|
|
89
|
+
def current_immersive_path(context)
|
90
|
+
current_immersive_path_for context, subject&.navigable_content_in(context)
|
91
|
+
end
|
92
|
+
|
93
|
+
def current_immersive_path_for(context, content)
|
94
|
+
resource = content ? polymorphic_path(content) : default_immersive_path_for(context)
|
95
|
+
context.url_for resource
|
96
|
+
end
|
97
|
+
|
85
98
|
private
|
86
99
|
|
100
|
+
def default_immersive_path_for(context)
|
101
|
+
subject.present? ? root_path : inorganic_path_for(request)
|
102
|
+
end
|
103
|
+
|
104
|
+
def inorganic_path_for(request)
|
105
|
+
Mumukit::Platform.organization_mapping.inorganic_path_for(request)
|
106
|
+
end
|
107
|
+
|
87
108
|
def current_immersive_context
|
88
|
-
|
89
|
-
|
109
|
+
current_immersive_context_and_content&.first || Organization.current
|
110
|
+
end
|
111
|
+
|
112
|
+
def current_immersive_context_and_content
|
113
|
+
current_user&.current_immersive_context_and_content_at(subject) || [Organization.current, nil]
|
90
114
|
end
|
91
115
|
|
92
116
|
def from_sessions?
|
@@ -99,11 +123,20 @@ class ApplicationController < ActionController::Base
|
|
99
123
|
|
100
124
|
def validate_user_profile!
|
101
125
|
unless current_user.profile_completed?
|
126
|
+
save_location_before! :profile_completion
|
102
127
|
flash.notice = I18n.t :please_fill_profile_data
|
103
128
|
redirect_to edit_user_path
|
104
129
|
end
|
105
130
|
end
|
106
131
|
|
132
|
+
def validate_accepted_role_terms!
|
133
|
+
if current_user&.has_role_terms_to_accept?
|
134
|
+
save_location_before! :terms_acceptance
|
135
|
+
flash.notice = I18n.t :accept_terms_to_continue
|
136
|
+
redirect_to terms_user_path
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
107
140
|
def set_locale!
|
108
141
|
I18n.locale = Organization.current.locale
|
109
142
|
end
|
@@ -3,6 +3,7 @@ class AssetsController < ApplicationController
|
|
3
3
|
protect_from_forgery except: [:theme_stylesheet, :extension_javascript]
|
4
4
|
skip_before_action :authorize_if_private!
|
5
5
|
skip_before_action :validate_user_profile!
|
6
|
+
skip_before_action :validate_accepted_role_terms!
|
6
7
|
skip_before_action :validate_active_organization!
|
7
8
|
|
8
9
|
def theme_stylesheet
|
@@ -46,6 +46,10 @@ class DiscussionsController < ApplicationController
|
|
46
46
|
|
47
47
|
private
|
48
48
|
|
49
|
+
def default_immersive_path_for(context)
|
50
|
+
context.forum_enabled? ? discussions_path : root_path
|
51
|
+
end
|
52
|
+
|
49
53
|
def current_content_discussions
|
50
54
|
@debatable.discussions_in_organization
|
51
55
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class ExercisesController < ApplicationController
|
2
2
|
include Mumuki::Laboratory::Controllers::Content
|
3
3
|
include Mumuki::Laboratory::Controllers::ExerciseSeed
|
4
|
+
include Mumuki::Laboratory::Controllers::ImmersiveNavigation
|
4
5
|
|
5
6
|
before_action :set_guide!, only: :show
|
6
7
|
before_action :set_assignment!, only: :show, if: :current_user?
|
@@ -6,6 +6,7 @@ class InvitationsController < ApplicationController
|
|
6
6
|
before_action :set_user!
|
7
7
|
|
8
8
|
skip_before_action :validate_user_profile!
|
9
|
+
skip_before_action :validate_accepted_role_terms!
|
9
10
|
skip_before_action :authorize_if_private!
|
10
11
|
skip_before_action :validate_active_organization!
|
11
12
|
|
@@ -15,8 +16,7 @@ class InvitationsController < ApplicationController
|
|
15
16
|
|
16
17
|
def join
|
17
18
|
current_user.accept_invitation! @invitation
|
18
|
-
current_user.
|
19
|
-
current_user.notify!
|
19
|
+
current_user.update_and_notify! user_params
|
20
20
|
redirect_to_organization!
|
21
21
|
end
|
22
22
|
|
@@ -3,6 +3,7 @@ class LoginController < ApplicationController
|
|
3
3
|
|
4
4
|
skip_before_action :verify_authenticity_token, if: lambda { Rails.env.development? }
|
5
5
|
skip_before_action :validate_user_profile!
|
6
|
+
skip_before_action :validate_accepted_role_terms!
|
6
7
|
skip_before_action :validate_active_organization!
|
7
8
|
|
8
9
|
private
|
@@ -3,6 +3,7 @@ class UsersController < ApplicationController
|
|
3
3
|
|
4
4
|
before_action :authenticate!, except: :terms
|
5
5
|
before_action :set_user!
|
6
|
+
skip_before_action :validate_accepted_role_terms!
|
6
7
|
|
7
8
|
def show
|
8
9
|
@messages = current_user.messages.to_a
|
@@ -12,7 +13,14 @@ class UsersController < ApplicationController
|
|
12
13
|
def update
|
13
14
|
current_user.update_and_notify! user_params
|
14
15
|
current_user.accept_profile_terms!
|
15
|
-
|
16
|
+
flash.notice = I18n.t(:user_data_updated)
|
17
|
+
redirect_after! :profile_completion, fallback_location: user_path
|
18
|
+
end
|
19
|
+
|
20
|
+
def accept_profile_terms
|
21
|
+
current_user.accept_profile_terms!
|
22
|
+
flash.notice = I18n.t(:terms_accepted)
|
23
|
+
redirect_after! :terms_acceptance, fallback_location: root_path
|
16
24
|
end
|
17
25
|
|
18
26
|
def terms
|
@@ -1,9 +1,11 @@
|
|
1
1
|
module AssistanceBoxHelper
|
2
2
|
def assistance_box(assignment)
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
%Q{<div class="mu-tips-box">
|
4
|
+
#{Mumukit::Assistant::Narrator.random.compose_explanation_html assignment.tips}
|
5
|
+
</div>}.html_safe
|
6
|
+
end
|
7
|
+
|
8
|
+
def should_display_assistance_box?(assignment)
|
9
|
+
assignment.tips.present? && !assignment.solved?
|
8
10
|
end
|
9
11
|
end
|
@@ -8,7 +8,7 @@ module ContextualizationResultHelper
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def t_contextualization_status(contextualization)
|
11
|
-
t contextualization_status
|
11
|
+
t contextualization_status(contextualization)
|
12
12
|
end
|
13
13
|
|
14
14
|
def contextualization_status(contextualization)
|
@@ -16,6 +16,14 @@ module ContextualizationResultHelper
|
|
16
16
|
:hidden_done
|
17
17
|
elsif contextualization.exercise.choice?
|
18
18
|
contextualization.solved? ? :correct_answer : :wrong_answer
|
19
|
+
else
|
20
|
+
contextualization_status_translation_key contextualization
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def contextualization_status_translation_key(contextualization)
|
25
|
+
if contextualization.exercise.input_kindergarten?
|
26
|
+
"kindergarten_#{contextualization.submission_status}"
|
19
27
|
else
|
20
28
|
contextualization.submission_status
|
21
29
|
end
|
data/app/helpers/links_helper.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
<% if should_display_assistance_box? assignment %>
|
2
|
+
<hr>
|
3
|
+
<%= assistance_box assignment %>
|
4
|
+
<a data-toggle="collapse" href="#assistance-details-section" class="example-see-more">
|
5
|
+
<%= t :view_details %>
|
6
|
+
</a>
|
7
|
+
<div id="assistance-details-section" class="<%= 'collapse' if should_display_assistance_box?(assignment) %> in results-item">
|
8
|
+
<hr>
|
9
|
+
<%= yield %>
|
10
|
+
</div>
|
11
|
+
<% else %>
|
12
|
+
<%= yield %>
|
13
|
+
<% end %>
|
@@ -1,4 +1,13 @@
|
|
1
1
|
<div class="<%= "bs-callout bs-callout-#{icon_class_for contextualization.submission_status}" %>">
|
2
2
|
<%= render partial: 'exercise_solutions/results_title', locals: {contextualization: contextualization} %>
|
3
|
+
|
4
|
+
<% if in_gamified_context? %>
|
5
|
+
<div id="mu-exp-earned-message" class="hidden">
|
6
|
+
<span><%= t(:you_earned) %></span>
|
7
|
+
<strong><span id="mu-exp-points"></span></strong>
|
8
|
+
<span><%= t(:exp_points) %></span>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
11
|
+
|
3
12
|
<%= yield %>
|
4
13
|
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div>
|
2
|
+
<h3 class="text-center">
|
3
|
+
<%= t :level_up %>
|
4
|
+
</h3>
|
5
|
+
<div class="text-center mu-level">
|
6
|
+
<i class="fa fa-star fa-fw fa-4x"></i>
|
7
|
+
<span class="mu-level-number"></span>
|
8
|
+
<p></p>
|
9
|
+
<p id="mu-solve-more-exercises"> <%= (t :solve_more_exercises_to_level_up).html_safe %></p>
|
10
|
+
</div>
|
11
|
+
</div>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<%= corollary_box @exercise %>
|
13
13
|
<% else %>
|
14
14
|
<div class="mu-kids-default-success">
|
15
|
-
<img class="capital-animation mu-kids-character-
|
15
|
+
<img class="capital-animation mu-kids-character-result"/>
|
16
16
|
<p><%= t :kids_default_success %></p>
|
17
17
|
</div>
|
18
18
|
<% end %>
|
@@ -11,24 +11,26 @@
|
|
11
11
|
<%= render layout: 'exercise_solutions/contextualization_results_container', locals: {contextualization: assignment} do %>
|
12
12
|
<%= manual_evaluation_comment assignment %>
|
13
13
|
<% unless assignment.manual_evaluation_comment? %>
|
14
|
-
<%= render
|
15
|
-
|
16
|
-
|
17
|
-
<div class="
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
14
|
+
<%= render layout: 'exercise_solutions/assistant_rules_box', locals: {assignment: assignment } do %>
|
15
|
+
<%= render partial: 'exercise_solutions/contextualization_results_body', locals: {contextualization: assignment} %>
|
16
|
+
<% if should_render_need_help_dropdown?(assignment) %>
|
17
|
+
<div class="notify-problem-box">
|
18
|
+
<div class="dropdown">
|
19
|
+
<%= link_to fa_icon(:'question-circle', text: t(:need_help)), "", {'data-toggle': 'dropdown'} %>
|
20
|
+
<ul class="dropdown-menu" aria-labelledby="helpDropdown">
|
21
|
+
<li>
|
22
|
+
<%= read_discussions_link(@exercise) %>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<%= render_community_link %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= report_bug_link(assignment) %>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
</div>
|
30
32
|
</div>
|
31
|
-
|
33
|
+
<% end %>
|
32
34
|
<% end %>
|
33
35
|
<% end %>
|
34
36
|
<%= solution_download_link assignment %>
|
@@ -36,8 +38,6 @@
|
|
36
38
|
|
37
39
|
<% if assignment.passed? %>
|
38
40
|
<%= corollary_box @exercise %>
|
39
|
-
<% else %>
|
40
|
-
<%= assistance_box assignment %>
|
41
41
|
<% end %>
|
42
42
|
<% end %>
|
43
43
|
|
@@ -1,3 +1,8 @@
|
|
1
1
|
<h4 class="text-<%= icon_class_for(contextualization.submission_status) %>">
|
2
2
|
<strong><%= fa_icon icon_type_for(contextualization.submission_status) %> <%= t_contextualization_status contextualization %></strong>
|
3
|
+
<% if in_gamified_context? %>
|
4
|
+
<strong><small class="text-success">
|
5
|
+
<span class="mu-experience"></span>
|
6
|
+
</small></strong>
|
7
|
+
<% end %>
|
3
8
|
</h4>
|
@@ -48,7 +48,6 @@
|
|
48
48
|
<%= hidden_field_tag "mu-exercise-id", @exercise.id %>
|
49
49
|
<%= hidden_field_tag "mu-exercise-layout", @exercise.layout %>
|
50
50
|
<%= hidden_field_tag "mu-exercise-settings", @exercise.settings.to_json %>
|
51
|
-
<%= hidden_field_tag "mu-current-exp", UserStats.exp_for(@current_user) %>
|
52
51
|
|
53
52
|
<div style="display: none" id="processing-template">
|
54
53
|
<div class="bs-callout bs-callout-info">
|
@@ -62,6 +61,10 @@
|
|
62
61
|
<%= render partial: 'layouts/exercise_skipped' %>
|
63
62
|
<% end %>
|
64
63
|
|
64
|
+
<% if in_gamified_context? %>
|
65
|
+
<%= render partial: 'layouts/modals/level_up' %>
|
66
|
+
<% end %>
|
67
|
+
|
65
68
|
<%= render partial: 'layouts/modals/guide_corollary', locals: {guide: @guide} %>
|
66
69
|
<%= render partial: 'layouts/modals/new_message', locals: {exercise: @exercise} if should_render_message_input?(@exercise) %>
|
67
70
|
<% end if current_user? %>
|
@@ -4,10 +4,10 @@
|
|
4
4
|
<div class="mu-kindergarten-character-speech-bubble">
|
5
5
|
<span class="mu-kindergarten-exercise-description"><%= exercise.description_task %></span>
|
6
6
|
<div class="mu-kindergarten-buttons">
|
7
|
-
<button class="mu-kindergarten-show-context" onclick="mumuki.
|
7
|
+
<button class="mu-kindergarten-show-context" onclick="mumuki.kids.context.show()">
|
8
8
|
<img class="mu-kindergarten-button-image" src="https://mumuki.io/static/show-context.svg" alt="">
|
9
9
|
</button>
|
10
|
-
<button class="mu-kindergarten-play-description" onclick="mumuki.
|
10
|
+
<button class="mu-kindergarten-play-description" onclick="mumuki.kids.speech.click('.mu-kindergarten-exercise-description', '<%= exercise.locale %>')">
|
11
11
|
<img class="mu-kindergarten-button-image mu-kindergarten-play" src="https://mumuki.io/static/audio-play.svg" alt="">
|
12
12
|
<img class="mu-kindergarten-button-image mu-kindergarten-stop hidden" src="https://mumuki.io/static/audio-stop.svg" alt="">
|
13
13
|
</button>
|
@@ -16,14 +16,14 @@
|
|
16
16
|
</div>
|
17
17
|
<div class="mu-kindergarten-hint">
|
18
18
|
<% if exercise.hint? %>
|
19
|
-
<button class="mu-hint-light" onclick="mumuki.
|
19
|
+
<button class="mu-hint-light" onclick="mumuki.kids.hint.toggle()">
|
20
20
|
<img class="mu-hint-light on" src="https://mumuki.io/static/lamparita_on.svg" alt="">
|
21
21
|
</button>
|
22
22
|
<div class="mu-kindergarten-light-speech-bubble">
|
23
23
|
<span class="mu-kindergarten-exercise-hint">
|
24
24
|
<%= exercise.hint.markdownified %>
|
25
25
|
</span>
|
26
|
-
<button class="expand-or-collapse-hint-media" onclick="mumuki.
|
26
|
+
<button class="expand-or-collapse-hint-media" onclick="mumuki.kids.hint.toggleMedia()">
|
27
27
|
<i class="fa fa-fw fa-2x fa-caret-up"></i>
|
28
28
|
</button>
|
29
29
|
</div>
|
@@ -1,14 +1,10 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<div class="row">
|
6
|
-
<div class="col-md-6 organization-row">
|
7
|
-
<%= image_tag(org.banner_url, height: 50, class: 'pull-left') %>
|
8
|
-
</div>
|
9
|
-
<div class="col-md-6 organization-row">
|
10
|
-
<%= link_to(t(:go_to, organization: org.name), org.url, class: 'btn btn-success pull-right') %>
|
11
|
-
</div>
|
1
|
+
<% current_immersive_organizations.each do |organization| %>
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-md-6 organization-row">
|
4
|
+
<%= image_tag(organization.banner_url, height: 50, class: 'pull-left') %>
|
12
5
|
</div>
|
13
|
-
|
6
|
+
<div class="col-md-6 organization-row">
|
7
|
+
<%= link_to(t(:go_to, organization: organization.name), current_immersive_path(organization), class: 'btn btn-success pull-right') %>
|
8
|
+
</div>
|
9
|
+
</div>
|
14
10
|
<% end %>
|