app/views/users/activity.html.erb in mumuki-laboratory-9.3.0 vs app/views/users/activity.html.erb in mumuki-laboratory-9.3.1

- old
+ new

@@ -3,11 +3,11 @@ <% end %> <div class="row"> <%= render partial: 'layouts/user_menu' %> - <div class="col-md-9"> + <div class="col-md-9 mu-tab-body"> <div class="mu-user-header"> <h1><%= t(:activity) %></h1> </div> <div class="row"> <div class="col-lg-8 mu-tab-body"> @@ -15,14 +15,16 @@ locals: { title: t(:exercises), stats: exercises_activity_stats } %> - <%= render partial: 'activity_indicator', - locals: { - title: t(:forum), - stats: messages_activity_stats - } %> + <% if Organization.current.forum_enabled? %> + <%= render partial: 'activity_indicator', + locals: { + title: t(:forum), + stats: messages_activity_stats + } %> + <% end %> </div> <div class="col-lg-4 mu-tab-body"> <div class="nav nav-pills flex-column"> <%= link_to t(:total), activity_user_path, class: "mu-user-activity-week-selector #{mark_period_if_active(nil)}" %> <% activity_selector_week_range_for.each do |(week_start, week_end)| %>