mumuki-laboratory 7.12.1 → 8.1.2
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/bridge.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/button.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror-builder.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +5 -5
- data/app/assets/javascripts/mumuki_laboratory/application/console.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +7 -7
- data/app/assets/javascripts/mumuki_laboratory/application/editors.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/elipsis.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/events.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/exercise.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +99 -11
- data/app/assets/javascripts/mumuki_laboratory/application/inputs.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/kids.js +20 -8
- data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +16 -57
- data/app/assets/javascripts/mumuki_laboratory/application/messages.js +6 -6
- data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +63 -0
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/number-counter.js +18 -0
- data/app/assets/javascripts/mumuki_laboratory/application/pin.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/primary.js +3 -2
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +1 -1
- data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/submission.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +3 -3
- data/app/assets/javascripts/mumuki_laboratory/application/sync-mode.js +2 -2
- data/app/assets/javascripts/mumuki_laboratory/application/timer.js +1 -1
- data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +7 -7
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +117 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +45 -131
- 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/concerns/with_user_discussion_validation.rb +6 -0
- data/app/controllers/discussions_controller.rb +4 -6
- 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/gamification_helper.rb +5 -0
- data/app/helpers/links_helper.rb +2 -2
- 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/_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/_copyright.html.erb +1 -1
- data/app/views/layouts/_kindergarten.html.erb +1 -1
- data/app/views/layouts/_organizations_listing.html.erb +8 -12
- data/app/views/layouts/application.html.erb +23 -15
- data/app/views/layouts/embedded.html.erb +14 -11
- 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 +4 -4
- 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 +5 -0
- data/lib/mumuki/laboratory/locales/es-CL.yml +6 -1
- data/lib/mumuki/laboratory/locales/es.yml +7 -2
- data/lib/mumuki/laboratory/locales/pt.yml +6 -1
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/capybara_helper.rb +5 -1
- data/spec/controllers/discussions_controller_spec.rb +19 -0
- data/spec/controllers/exercise_solutions_controller_spec.rb +1 -1
- data/spec/dummy/db/schema.rb +2 -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 +110 -101
- data/app/helpers/organization_list_helper.rb +0 -5
- data/spec/features/choose_organization_spec.rb +0 -74
@@ -2,12 +2,18 @@ module WithUserDiscussionValidation
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
+
# users are not allowed to access discussions during exams
|
6
|
+
before_action :validate_not_blocked_in_forum!
|
5
7
|
# discussions are not enabled for all organizations nor all users
|
6
8
|
before_action :validate_user_can_discuss!
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
13
|
+
def validate_not_blocked_in_forum!
|
14
|
+
raise Mumuki::Domain::BlockedForumError if current_user&.currently_in_exam?
|
15
|
+
end
|
16
|
+
|
11
17
|
def validate_user_can_discuss!
|
12
18
|
raise Mumuki::Domain::NotFoundError unless current_user&.can_discuss_here?
|
13
19
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
class DiscussionsController < ApplicationController
|
2
2
|
include Mumuki::Laboratory::Controllers::Content
|
3
3
|
include WithUserDiscussionValidation
|
4
|
-
# users are not allowed to access discussions during exams
|
5
|
-
before_action :validate_not_in_exam!
|
6
4
|
|
7
5
|
before_action :set_debatable, except: [:subscription]
|
8
6
|
before_action :authenticate!, only: [:update, :create]
|
@@ -46,6 +44,10 @@ class DiscussionsController < ApplicationController
|
|
46
44
|
|
47
45
|
private
|
48
46
|
|
47
|
+
def default_immersive_path_for(context)
|
48
|
+
context.forum_enabled? ? discussions_path : root_path
|
49
|
+
end
|
50
|
+
|
49
51
|
def current_content_discussions
|
50
52
|
@debatable.discussions_in_organization
|
51
53
|
end
|
@@ -70,8 +72,4 @@ class DiscussionsController < ApplicationController
|
|
70
72
|
def discussion_filter_params
|
71
73
|
@filter_params ||= params.permit(Discussion.permitted_query_params)
|
72
74
|
end
|
73
|
-
|
74
|
-
def validate_not_in_exam!
|
75
|
-
raise Mumuki::Domain::BlockedForumError if current_user&.currently_in_exam?
|
76
|
-
end
|
77
75
|
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
|
data/app/helpers/links_helper.rb
CHANGED
@@ -52,11 +52,11 @@ module LinksHelper
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def link_to_profile_terms
|
55
|
-
link_to t(:terms_and_conditions)
|
55
|
+
link_to t(:terms_and_conditions), terms_user_path, target: '_blank'
|
56
56
|
end
|
57
57
|
|
58
58
|
def link_to_forum_terms
|
59
|
-
link_to t(:forum_terms)
|
59
|
+
link_to t(:forum_terms), discussions_terms_path, target: '_blank'
|
60
60
|
end
|
61
61
|
|
62
62
|
def turbolinks_enable_for(exercise)
|
@@ -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>
|
@@ -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? %>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
©
|
1
|
+
© 2015-<%= DateTime.now.year %>
|
2
2
|
<a href="http://mumuki.org/" class="mu-org-link"><span class="da da-mumuki-circle"></span> Mumuki</a>
|
@@ -4,7 +4,7 @@
|
|
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.kids.context.
|
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
10
|
<button class="mu-kindergarten-play-description" onclick="mumuki.kids.speech.click('.mu-kindergarten-exercise-description', '<%= exercise.locale %>')">
|
@@ -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 %>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<%= content_for :navbar do %>
|
2
|
+
<%= hidden_field_tag("mu-current-exp", UserStats.exp_for(@current_user)) if in_gamified_context? %>
|
2
3
|
<div class="<%= exercise_container_type %>">
|
3
4
|
<nav class="mu-navbar">
|
4
5
|
<div class="mu-navbar-breadcrumb hidden-xs">
|
@@ -18,16 +19,20 @@
|
|
18
19
|
</div>
|
19
20
|
<div class="mu-navbar-avatar">
|
20
21
|
<% if current_logged_user? %>
|
22
|
+
<% if in_gamified_context? %>
|
23
|
+
<i class="fa fa-star fa-fw fa-2x navbar-icon mu-level-tooltip" data-toggle="tooltip" data-placement="bottom" level="<%= t(:level) %>"></i>
|
24
|
+
<span class="mu-level-number"></span>
|
25
|
+
<% end %>
|
21
26
|
<div class="dropdown">
|
22
27
|
<span>
|
23
28
|
<a class="notifications-box <%= has_notifications? ? '' : 'notifications-box-empty' %>" href=<%= "#{user_notifications_path}" %>>
|
24
|
-
<i class="fa fa-bell fa-fw fa-
|
29
|
+
<i class="fa fa-bell fa-fw fa-2x navbar-icon"></i>
|
25
30
|
<span class="badge badge-notifications"><%= notifications_count %></span>
|
26
31
|
</a>
|
27
32
|
</span>
|
28
33
|
</div>
|
29
34
|
<div class="dropdown">
|
30
|
-
<div id="profileDropdown" class="profile-dropdown" data-toggle="dropdown" aria-label="<%= t(:user) %>" role="menu" tabindex="0">
|
35
|
+
<div id="profileDropdown" class="profile-dropdown navbar-icon" data-toggle="dropdown" aria-label="<%= t(:user) %>" role="menu" tabindex="0">
|
31
36
|
<%= profile_picture_for current_user %>
|
32
37
|
<span class="caret"></span>
|
33
38
|
</div>
|
@@ -47,32 +52,35 @@
|
|
47
52
|
|
48
53
|
<% content_for :footer do %>
|
49
54
|
<footer class="footer">
|
50
|
-
<div class="<%= exercise_container_type %>">
|
51
|
-
<
|
52
|
-
|
53
|
-
<div class="row">
|
54
|
-
<div class="col-md-12">
|
55
|
+
<div class="mu-footer <%= exercise_container_type %>">
|
56
|
+
<div class="mu-footer-row">
|
57
|
+
<div class="mu-footer-authoring">
|
55
58
|
<%= yield :authoring %>
|
56
59
|
</div>
|
57
60
|
</div>
|
58
61
|
|
59
|
-
<div
|
60
|
-
<div class="
|
61
|
-
|
62
|
-
<%= render partial: 'layouts/copyright' %>
|
63
|
-
</p>
|
62
|
+
<div class="mu-footer-row">
|
63
|
+
<div class="mu-footer-copyright">
|
64
|
+
<%= render partial: 'layouts/copyright' %>
|
64
65
|
</div>
|
65
66
|
|
66
|
-
<div class="
|
67
|
-
|
67
|
+
<div class="mu-footer-terms">
|
68
|
+
<div><%= link_to_profile_terms %></div>
|
69
|
+
<% if current_user&.can_discuss_here? %>
|
70
|
+
<div><%= link_to_forum_terms %></div>
|
71
|
+
<% end %>
|
68
72
|
</div>
|
69
73
|
|
70
|
-
|
74
|
+
<%= login_form.footer_html %>
|
75
|
+
|
76
|
+
<div id="footer-social" class="mu-footer-social" lang="en">
|
71
77
|
<%= render partial: 'layouts/social_media' %>
|
72
78
|
</div>
|
73
79
|
</div>
|
80
|
+
|
74
81
|
</div>
|
75
82
|
</footer>
|
76
83
|
<% end %>
|
77
84
|
|
78
85
|
<%= render partial: 'layouts/main' %>
|
86
|
+
|
@@ -1,22 +1,25 @@
|
|
1
1
|
<% content_for :footer do %>
|
2
2
|
<footer class="footer">
|
3
|
-
<div class="<%= exercise_container_type %>">
|
4
|
-
<
|
5
|
-
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-md-12">
|
3
|
+
<div class="mu-footer <%= exercise_container_type %>">
|
4
|
+
<div class="mu-footer-row">
|
5
|
+
<div class="mu-footer-authoring">
|
8
6
|
<%= yield :authoring %>
|
9
7
|
</div>
|
10
8
|
</div>
|
11
9
|
|
12
|
-
<div
|
13
|
-
<div class="
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
<div class="mu-footer-row">
|
11
|
+
<div class="mu-footer-copyright">
|
12
|
+
<%= render partial: 'layouts/copyright' %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="mu-footer-terms">
|
16
|
+
<div><%= link_to_profile_terms %></div>
|
17
|
+
<% if current_user&.can_discuss_here? %>
|
18
|
+
<div><%= link_to_forum_terms %></div>
|
19
|
+
<% end %>
|
17
20
|
</div>
|
18
21
|
|
19
|
-
<div id="footer-social" class="
|
22
|
+
<div id="footer-social" class="mu-footer-social" lang="en">
|
20
23
|
<%= render partial: 'layouts/social_media' %>
|
21
24
|
</div>
|
22
25
|
</div>
|