mumuki-laboratory 9.10.0 → 9.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/assets/javascripts/mumuki_laboratory/application/bridge.js +15 -9
- data/app/assets/javascripts/mumuki_laboratory/application/confirmation.js +10 -8
- data/app/assets/javascripts/mumuki_laboratory/application/editors.js +5 -3
- data/app/assets/javascripts/mumuki_laboratory/application/progress.js +4 -4
- data/app/assets/javascripts/mumuki_laboratory/application/results-renderer.js +12 -1
- data/app/assets/javascripts/mumuki_laboratory/application/submissions-store.js +8 -2
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_dropdown.scss +11 -0
- data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +1 -1
- data/app/controllers/application_controller.rb +8 -4
- data/app/controllers/book_controller.rb +6 -0
- data/app/controllers/chapters_controller.rb +9 -0
- data/app/controllers/discussions_controller.rb +9 -0
- data/app/controllers/exercises_controller.rb +5 -0
- data/app/controllers/faqs_controller.rb +4 -0
- data/app/controllers/lessons_controller.rb +9 -0
- data/app/controllers/users_controller.rb +37 -0
- data/app/helpers/application_helper.rb +2 -2
- data/app/helpers/concerns/with_student_path_navigation.rb +1 -1
- data/app/helpers/content_view_helper.rb +8 -0
- data/app/helpers/discussions_helper.rb +1 -1
- data/app/helpers/icons_helper.rb +1 -1
- data/app/helpers/links_helper.rb +5 -1
- data/app/helpers/menu_bar_helper.rb +8 -5
- data/app/helpers/notifications_helper.rb +13 -0
- data/app/helpers/overlapped_buttons_helper.rb +2 -1
- data/app/helpers/time_zone_helper.rb +5 -0
- data/app/helpers/user_menu_helper.rb +4 -0
- data/app/mailers/user_mailer.rb +11 -1
- data/app/views/book/show.html.erb +16 -7
- data/app/views/chapters/show.html.erb +1 -0
- data/app/views/discussions/_new_message.html.erb +1 -1
- data/app/views/discussions/show.html.erb +5 -5
- data/app/views/exercise_solutions/_results.html.erb +1 -1
- data/app/views/guides/_guide.html.erb +2 -2
- data/app/views/layouts/_progress_bar.html.erb +1 -0
- data/app/views/layouts/_progress_listing.html.erb +1 -0
- data/app/views/layouts/_user_menu.html.erb +1 -0
- data/app/views/layouts/application.html.erb +4 -0
- data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +6 -2
- data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
- data/app/views/layouts/exercise_inputs/read_only_editors/_hidden.html.erb +0 -0
- data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +4 -4
- data/app/views/layouts/exercise_inputs/read_only_editors/_upload.html.erb +0 -0
- data/app/views/layouts/mailer.html.erb +7 -1
- data/app/views/notifications/_custom.html.erb +1 -0
- data/app/views/notifications/_dropdown.html.erb +2 -2
- data/app/views/notifications/_exam_authorization_request_updated.html.erb +2 -0
- data/app/views/notifications/_exam_registration.html.erb +2 -1
- data/app/views/notifications/previews/_custom.html.erb +1 -0
- data/app/views/notifications/previews/_discussion.html.erb +2 -0
- data/app/views/notifications/previews/_exam_authorization_request_updated.html.erb +2 -0
- data/app/views/notifications/previews/_exam_registration.html.erb +2 -0
- data/app/views/notifications/previews/_message.html.erb +2 -0
- data/app/views/user_mailer/1st_reminder.html.erb +7 -349
- data/app/views/user_mailer/1st_reminder.text.erb +0 -4
- data/app/views/user_mailer/2nd_reminder.html.erb +7 -349
- data/app/views/user_mailer/2nd_reminder.text.erb +0 -4
- data/app/views/user_mailer/3rd_reminder.html.erb +7 -349
- data/app/views/user_mailer/3rd_reminder.text.erb +0 -4
- data/app/views/user_mailer/_mail_template.erb +336 -0
- data/app/views/user_mailer/certificate.html.erb +7 -335
- data/app/views/user_mailer/certificate.text.erb +0 -3
- data/app/views/user_mailer/no_submissions_reminder.html.erb +7 -349
- data/app/views/user_mailer/no_submissions_reminder.text.erb +0 -4
- data/app/views/user_mailer/notification.html.erb +1 -0
- data/app/views/user_mailer/notification.text.erb +6 -0
- data/app/views/user_mailer/notifications/_custom.html.erb +11 -0
- data/app/views/user_mailer/notifications/_exam_authorization_request_updated.html.erb +1 -0
- data/app/views/user_mailer/notifications/_exam_registration.html.erb +7 -0
- data/app/views/user_mailer/notifications/exam_authorization_request_updated/_approved.html.erb +7 -0
- data/app/views/user_mailer/notifications/exam_authorization_request_updated/_rejected.html.erb +7 -0
- data/app/views/users/manage_notifications.html.erb +26 -0
- data/app/views/users/notifications.html.erb +54 -0
- data/config/routes.rb +4 -0
- data/lib/mumuki/laboratory.rb +1 -0
- data/lib/mumuki/laboratory/controllers.rb +1 -0
- data/lib/mumuki/laboratory/controllers/authorization.rb +5 -1
- data/lib/mumuki/laboratory/controllers/notifications.rb +2 -2
- data/lib/mumuki/laboratory/controllers/validate_access_mode.rb +15 -0
- data/lib/mumuki/laboratory/locales/en.yml +35 -1
- data/lib/mumuki/laboratory/locales/es-CL.yml +35 -1
- data/lib/mumuki/laboratory/locales/es.yml +36 -2
- data/lib/mumuki/laboratory/locales/pt.yml +35 -1
- data/lib/mumuki/laboratory/mailers/message_delivery.rb +15 -0
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/controllers/users_controller_spec.rb +48 -0
- data/spec/dummy/db/schema.rb +7 -1
- data/spec/features/menu_bar_spec.rb +3 -2
- data/spec/features/not_found_private_flow_spec.rb +1 -1
- data/spec/features/notifications_flow_spec.rb +2 -1
- data/spec/features/read_only_flow_spec.rb +920 -0
- data/spec/javascripts/editors-spec.js +21 -3
- data/spec/javascripts/submissions-store-spec.js +11 -0
- data/spec/mailers/previews/user_mailer_preview.rb +87 -1
- metadata +35 -19
- data/app/views/notifications/_discussion.html.erb +0 -1
- data/app/views/notifications/_exam_authorization_request.html.erb +0 -1
- data/app/views/notifications/_message.html.erb +0 -1
@@ -7,6 +7,14 @@ module ContentViewHelper
|
|
7
7
|
content.name
|
8
8
|
end
|
9
9
|
|
10
|
+
def show_content?(content)
|
11
|
+
current_access_mode.show_content?(content)
|
12
|
+
end
|
13
|
+
|
14
|
+
def show_content_element?
|
15
|
+
current_access_mode.show_content_element?
|
16
|
+
end
|
17
|
+
|
10
18
|
private
|
11
19
|
|
12
20
|
def content_type_number(content)
|
@@ -8,7 +8,7 @@ module DiscussionsHelper
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def solve_discussions_link
|
11
|
-
discussions_link others_discussions_icon(t(:solve_doubts)), discussions_path(solve_discussion_params_for(current_user)), class: 'dropdown-item'
|
11
|
+
discussions_link others_discussions_icon(t(:solve_doubts)), discussions_path(solve_discussion_params_for(current_user)), class: 'dropdown-item' if current_access_mode.resolve_discussions_here?
|
12
12
|
end
|
13
13
|
|
14
14
|
def user_discussions_link
|
data/app/helpers/icons_helper.rb
CHANGED
data/app/helpers/links_helper.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
module MenuBarHelper
|
2
2
|
def menu_bar_links
|
3
3
|
[
|
4
|
-
menu_link_to_profile,
|
5
4
|
menu_link_to_classroom,
|
6
5
|
menu_link_to_bibliotheca,
|
7
6
|
solve_discussions_link,
|
@@ -18,7 +17,7 @@ module MenuBarHelper
|
|
18
17
|
end
|
19
18
|
|
20
19
|
def menu_link_to_profile
|
21
|
-
menu_item('user', :my_account, user_path)
|
20
|
+
li_tag menu_item('user', :my_account, user_path)
|
22
21
|
end
|
23
22
|
|
24
23
|
def menu_link_to_classroom
|
@@ -36,11 +35,15 @@ module MenuBarHelper
|
|
36
35
|
end
|
37
36
|
|
38
37
|
def logout_menu_link
|
39
|
-
li_tag menu_item('sign-out-alt', :sign_out, logout_path(origin: url_for))
|
38
|
+
li_tag menu_item('sign-out-alt', :sign_out, logout_path(origin: url_for, organization: Organization.current))
|
40
39
|
end
|
41
40
|
|
42
|
-
def menu_item(icon, name, url,
|
43
|
-
|
41
|
+
def menu_item(icon, name, url, css_class = nil, **translation_params)
|
42
|
+
menu_text_item(icon, t(name, translation_params), url, css_class)
|
43
|
+
end
|
44
|
+
|
45
|
+
def menu_text_item(icon, text, url, css_class = nil)
|
46
|
+
link_to fixed_fa_icon(icon, text: text), url, role: 'menuitem', tabindex: '-1', class: "dropdown-item #{css_class}"
|
44
47
|
end
|
45
48
|
|
46
49
|
def any_menu_bar_links?
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module NotificationsHelper
|
2
|
+
def background_for_notification(notification)
|
3
|
+
notification.read? ? '' : 'bg-light'
|
4
|
+
end
|
5
|
+
|
6
|
+
def notification_preview_item(icon, name, url, **translation_params)
|
7
|
+
menu_item icon, name, url, 'mu-notification-preview', **translation_params
|
8
|
+
end
|
9
|
+
|
10
|
+
def notification_text_preview_item(icon, text, url)
|
11
|
+
menu_text_item(icon, text, url, 'mu-notification-preview')
|
12
|
+
end
|
13
|
+
end
|
@@ -16,7 +16,8 @@ module OverlappedButtonsHelper
|
|
16
16
|
{class: 'mu-content-toolbar-item mu-restart-guide',
|
17
17
|
data: {confirm: t(:confirm_restart)}, method: :delete, 'data-bs-placement': 'top'})
|
18
18
|
|
19
|
-
link_to overlapped_button_icon(:undo), guide_progress_path(guide), all_options
|
19
|
+
link_to overlapped_button_icon(:undo), guide_progress_path(guide), all_options if show_content_element?
|
20
|
+
|
20
21
|
end
|
21
22
|
|
22
23
|
private
|
@@ -31,6 +31,10 @@ module UserMenuHelper
|
|
31
31
|
user_menu_item t(:exams), exam_authorizations_user_path, 'exam_authorizations'
|
32
32
|
end
|
33
33
|
|
34
|
+
def notifications_user_menu_link
|
35
|
+
user_menu_item t(:notifications), notifications_user_path, 'notifications'
|
36
|
+
end
|
37
|
+
|
34
38
|
private
|
35
39
|
|
36
40
|
def user_menu_item(label, path, active_on)
|
data/app/mailers/user_mailer.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
class UserMailer < ApplicationMailer
|
2
2
|
include WithCertificateRender
|
3
3
|
|
4
|
+
helper :time_zone
|
5
|
+
|
4
6
|
def welcome_email(user, organization)
|
5
7
|
with_locale(user, organization) do
|
6
8
|
organization_name = organization.display_name || t(:your_new_organization)
|
@@ -23,7 +25,15 @@ class UserMailer < ApplicationMailer
|
|
23
25
|
def certificate(certificate)
|
24
26
|
with_locale certificate.user, certificate.organization do
|
25
27
|
attachments[certificate.filename] = pdf_for(certificate)
|
26
|
-
mail to: certificate.user.email, subject:
|
28
|
+
mail to: certificate.user.email, subject: t(:certificate_available)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def notification(notification)
|
33
|
+
@notification = notification
|
34
|
+
|
35
|
+
with_locale(notification.user, notification.organization) do
|
36
|
+
build_email notification.custom_title || t("mailer.title.#{notification.subject}"), 'notification'
|
27
37
|
end
|
28
38
|
end
|
29
39
|
|
@@ -6,16 +6,25 @@
|
|
6
6
|
<%= render partial: 'book/header' %>
|
7
7
|
|
8
8
|
<% @book.next_lesson_for(current_user).try do |lesson| %>
|
9
|
-
|
10
|
-
<
|
11
|
-
<%=
|
12
|
-
|
13
|
-
|
9
|
+
<% if show_content_element? %>
|
10
|
+
<div class="actions">
|
11
|
+
<a href="<%= lesson_path(lesson) %>" class="btn btn-complementary">
|
12
|
+
<%= t book_practice_key_for(current_user) %>
|
13
|
+
</a>
|
14
|
+
</div>
|
15
|
+
<% else %>
|
16
|
+
<br>
|
17
|
+
<% end %>
|
14
18
|
<% end %>
|
15
19
|
|
16
|
-
|
20
|
+
<% if show_content?(@book) %>
|
21
|
+
<h2><%= t(:chapters) %></h2>
|
22
|
+
<% end %>
|
17
23
|
|
18
24
|
<% @book.chapter_visibilities_in(current_workspace).each do |it, enabled| %>
|
25
|
+
|
26
|
+
<% next unless show_content?(it.topic) %>
|
27
|
+
|
19
28
|
<div class="chapter-container">
|
20
29
|
<div class="chapter <%= enabled ? '' : 'mu-locked' %>">
|
21
30
|
<h3><%= it.number %>. <%= link_to_path_element it, mode: :plain %></h3>
|
@@ -24,7 +33,7 @@
|
|
24
33
|
</div>
|
25
34
|
</div>
|
26
35
|
|
27
|
-
<% unless enabled
|
36
|
+
<% unless enabled %>
|
28
37
|
<div class="text-center mu-lock">
|
29
38
|
<i class="fas fa-lock fa-5x"></i>
|
30
39
|
<p><%= t :locked_content %></p>
|
@@ -28,6 +28,7 @@
|
|
28
28
|
<h3><%= t(:lessons) %></h3>
|
29
29
|
|
30
30
|
<% @chapter.lessons.includes(guide: :exercises).each do |lesson| %>
|
31
|
+
<% next unless show_content?(lesson.guide) %>
|
31
32
|
<h4><%= lesson.number %>. <%= link_to_path_element lesson, mode: :plain %></h4>
|
32
33
|
<%= render partial: 'layouts/progress_listing', locals: { guide: lesson.guide } %>
|
33
34
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= form_for [@discussion, Message.new] do |f| %>
|
2
|
-
<%= render layout: 'discussions/message_container', locals: {user: user} do %>
|
2
|
+
<%= render layout: 'discussions/message_container', locals: { user: user } do %>
|
3
3
|
<div class="discussion-message-bubble">
|
4
4
|
<div class="discussion-message-bubble-header">
|
5
5
|
<div class="discussion-message-bubble-title">
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<div>
|
6
6
|
<div class="discussion-context">
|
7
|
-
<%= render partial: 'exercises/read_only', locals: {exercise: @debatable} %>
|
7
|
+
<%= render partial: 'exercises/read_only', locals: { exercise: @debatable } %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
<div class="d-flex flex-wrap">
|
15
15
|
<h3 class="flex-grow-1 me-3"><%= t :messages %></h3>
|
16
|
-
<% if current_user && @discussion.persisted? %>
|
16
|
+
<% if current_user && @discussion.persisted? && current_access_mode.show_discussion_element? %>
|
17
17
|
<span class="d-flex">
|
18
18
|
<% if @discussion.can_toggle_responsible?(current_user) %>
|
19
19
|
<div class="discussion-responsible me-1">
|
@@ -40,10 +40,10 @@
|
|
40
40
|
<% if @discussion.has_messages? %>
|
41
41
|
<div class="discussion-messages">
|
42
42
|
<% if @discussion.description.present? %>
|
43
|
-
<%= render partial: 'discussions/description_message', locals: {discussion: @discussion} %>
|
43
|
+
<%= render partial: 'discussions/description_message', locals: { discussion: @discussion } %>
|
44
44
|
<% end %>
|
45
45
|
<% @discussion.visible_messages.each do |message| %>
|
46
|
-
|
46
|
+
<%= render partial: 'discussions/message', locals: { user: message.sender_user, message: message } %>
|
47
47
|
<% end %>
|
48
48
|
<% if @discussion.commentable_by?(current_user) %>
|
49
49
|
<hr class="message-divider">
|
@@ -51,7 +51,7 @@
|
|
51
51
|
</div>
|
52
52
|
<% end %>
|
53
53
|
|
54
|
-
<%= render partial: 'discussions/new_message', locals: {user: current_user} if @discussion.commentable_by?(current_user) %>
|
54
|
+
<%= render partial: 'discussions/new_message', locals: { user: current_user } if @discussion.commentable_by?(current_user) && current_access_mode.show_discussion_element? %>
|
55
55
|
|
56
56
|
<% end %>
|
57
57
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% unless assignment.manual_evaluation_comment? %>
|
14
14
|
<%= render layout: 'exercise_solutions/assistant_rules_box', locals: {assignment: assignment } do %>
|
15
15
|
<%= render partial: 'exercise_solutions/contextualization_results_body', locals: {contextualization: assignment} %>
|
16
|
-
<% if should_render_need_help_dropdown?(assignment) %>
|
16
|
+
<% if should_render_need_help_dropdown?(assignment) && current_access_mode.show_discussion_element? %>
|
17
17
|
<div class="notify-problem-box">
|
18
18
|
<div class="dropdown">
|
19
19
|
<%= link_to fa_icon(:'question-circle', text: t(:need_help)), "", {'data-bs-toggle': 'dropdown'} %>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</div>
|
29
29
|
<% end %>
|
30
30
|
|
31
|
-
<% if !@stats.try(:done?) && @next_exercise %>
|
31
|
+
<% if !@stats.try(:done?) && @next_exercise && show_content_element? %>
|
32
32
|
<div class="text-box">
|
33
33
|
<div class="actions">
|
34
34
|
<%= link_to t(lesson_practice_key_for(@stats)), exercise_path(@next_exercise), class: 'btn btn-complementary' %>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</div>
|
37
37
|
<% end %>
|
38
38
|
|
39
|
-
<% if @stats&.done? %>
|
39
|
+
<% if @stats&.done? && show_content_element? %>
|
40
40
|
<div class="text-box">
|
41
41
|
<div class="actions">
|
42
42
|
<%= next_lesson_button @guide %>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<div class="progress-list-flex">
|
2
2
|
<% assignments = guide.assignments_for(current_user) %>
|
3
3
|
<% assignments.each do |assignment| %>
|
4
|
+
<% next unless show_content?(assignment.exercise) %>
|
4
5
|
<% exercise = assignment.exercise %>
|
5
6
|
<a
|
6
7
|
<%= turbolinks_enable_for exercise %>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<ul class="progress-listing">
|
2
2
|
<% guide.assignments_for(current_user).each do |assignment| %>
|
3
|
+
<% next unless show_content?(assignment.exercise) %>
|
3
4
|
<% cache [assignment.exercise, assignment.status, Organization.current.name, current_user?] do %>
|
4
5
|
<li <%= turbolinks_enable_for(assignment.exercise) %>>
|
5
6
|
<%= assignment_status_icon assignment %>
|
@@ -20,6 +20,10 @@
|
|
20
20
|
<%= profile_picture_for current_user %>
|
21
21
|
</div>
|
22
22
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="profileDropdown">
|
23
|
+
<% if profile_enabled_here? %>
|
24
|
+
<%= menu_link_to_profile %>
|
25
|
+
<li class="dropdown-divider"></li>
|
26
|
+
<% end %>
|
23
27
|
<%= menu_bar_list_items %>
|
24
28
|
<% if any_menu_bar_links? %>
|
25
29
|
<li class="dropdown-divider"></li>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= render_exercise_input_editor f, exercise %>
|
5
5
|
|
6
6
|
<div class="actions mu-submit-button mu-kids-submit-button">
|
7
|
-
<%= render_submit_button(@assignment) %>
|
7
|
+
<%= render_submit_button(@assignment) if current_access_mode.submit_solutions_here? %>
|
8
8
|
</div>
|
9
9
|
<div class="actions mu-kids-reset-button"></div>
|
10
10
|
<img class="mu-kids-compass-rose" src="/compass_rose.svg">
|
@@ -34,11 +34,15 @@
|
|
34
34
|
remote: true,
|
35
35
|
html: {role: 'form', class: "new_solution mu-editor mu-editor-overlap mu-form #{pending_messages_filter(@assignment)}"}) do |f| %>
|
36
36
|
<div class="mb-3">
|
37
|
-
|
37
|
+
<% if current_access_mode.submit_solutions_here? %>
|
38
|
+
<%= render_exercise_input_editor f, exercise %>
|
39
|
+
<% else %>
|
40
|
+
<%= render_exercise_read_only_editor exercise, @assignment.solution %>
|
41
|
+
<% end %>
|
38
42
|
</div>
|
39
43
|
|
40
44
|
<div class="actions mu-submit-button">
|
41
|
-
<%= render_submit_button(@assignment) %>
|
45
|
+
<%= render_submit_button(@assignment) if current_access_mode.submit_solutions_here? %>
|
42
46
|
</div>
|
43
47
|
<% end %>
|
44
48
|
</div>
|
File without changes
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
<div class="editor-files">
|
6
6
|
<span class="files-tabs">
|
7
|
-
<ul class="nav nav-tabs">
|
7
|
+
<ul class="nav nav-tabs" role="tablist">
|
8
8
|
<% files.each_with_index do |file, index| %>
|
9
|
-
<li role="presentation" class="
|
10
|
-
<a class="file-name" href="#"><%= file.name %></a>
|
9
|
+
<li role="presentation" class="nav-item file-tab">
|
10
|
+
<a class="file-name nav-link <%= 'active' if index == 0 %>" href="#" data-bs-target="#editor-file-<%= index %>" tabindex="0" data-bs-toggle="tab"><%= file.name %></a>
|
11
11
|
</li>
|
12
12
|
<% end %>
|
13
13
|
</ul>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
<div class="tab-content">
|
19
19
|
<% files.each_with_index do |file, index| %>
|
20
|
-
<div role="tabpanel" class="file-editor tab-pane mu-input-panel <%= '
|
20
|
+
<div role="tabpanel" class="file-editor tab-pane mu-input-panel fade <%= 'show active' if index == 0 %>" id="editor-file-<%= index %>">
|
21
21
|
<div class=<%="content[#{file.name}]"%>>
|
22
22
|
<%= read_only_editor file.content, file.highlight_mode %>
|
23
23
|
</div>
|
File without changes
|
@@ -244,7 +244,7 @@
|
|
244
244
|
@section Body Text
|
245
245
|
*/
|
246
246
|
.bodyContainer .muMailTextContent,.bodyContainer .muMailTextContent p{
|
247
|
-
/*@editable*/color:#
|
247
|
+
/*@editable*/color:#616060;
|
248
248
|
/*@editable*/font-family:Helvetica;
|
249
249
|
/*@editable*/font-size:16px;
|
250
250
|
/*@editable*/line-height:150%;
|
@@ -309,6 +309,12 @@
|
|
309
309
|
/*@editable*/font-weight:normal;
|
310
310
|
/*@editable*/text-decoration:underline;
|
311
311
|
}
|
312
|
+
|
313
|
+
.mu-stealth-link {
|
314
|
+
text-decoration: none !important;
|
315
|
+
color: unset !important;
|
316
|
+
}
|
317
|
+
|
312
318
|
@media only screen and (min-width:768px){
|
313
319
|
.templateContainer{
|
314
320
|
width:600px !important;
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= notification.custom_content_plain_text %>
|
@@ -4,9 +4,9 @@
|
|
4
4
|
<span class="badge badge-notifications"><%= notifications_count %></span>
|
5
5
|
</div>
|
6
6
|
<ul id="notificationsPanel" class="dropdown-menu dropdown-menu-end" aria-labelledby="notificationsDropdown">
|
7
|
-
<%
|
7
|
+
<% user_notifications.each do |it| %>
|
8
8
|
<li>
|
9
|
-
<%= notification_preview_for it
|
9
|
+
<%= notification_preview_for it %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
</ul>
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
<% target = notification.target %>
|
2
|
+
<%= link_to t(:exam_registration_open, description: target.description), exam_registration_url(notification.organization, target), class: 'mu-stealth-link' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= notification_text_preview_item :envelope, notification.custom_title, notification.organization.url_for('/user/notifications') %>
|