|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en" dir="ltr"> |
| 3 | +<head> |
| 4 | + <%= render 'layouts/head' %> |
| 5 | +</head> |
| 6 | +<body class="<%= Rails.env.development? ? 'development' : '' %>" |
| 7 | + data-user-id="<%= user_signed_in? ? current_user.id : 'none' %>" |
| 8 | + data-mathjax="<%= SiteSetting['MathJaxEnabled'] %>"> |
| 9 | +<%= render 'layouts/header' %> |
| 10 | + |
| 11 | +<main class="container"> |
| 12 | + <div class="grid"> |
| 13 | + <div class="grid--cell is-8-lg is-12"> |
| 14 | + <div class="has-padding-4"> |
| 15 | + <%= render 'shared/notices' %> |
| 16 | + |
| 17 | + <% if @first_visit_notice %> |
| 18 | + <%= render 'notices/first_visit' %> |
| 19 | + <% end %> |
| 20 | + |
| 21 | + <%= yield %> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + |
| 25 | + <div class="grid--cell is-4-lg is-12 js-sidebar" role="complementary"> |
| 26 | + <nav class="widget"> |
| 27 | + <div class="widget--body"> |
| 28 | + <h3>Modules</h3> |
| 29 | + <p>Navigate through the modules here.</p> |
| 30 | + <div class="menu"> |
| 31 | + <%= link_to 'Home', osa_training_path('home'), |
| 32 | + class: "menu--item #{'is-active' if params[:page] == 'home'}" %> |
| 33 | + <%= link_to 'Overview', osa_training_path('overview'), |
| 34 | + class: "menu--item #{'is-active' if params[:page] == 'overview'}" %> |
| 35 | + <%= link_to 'Priority & Non-Prority Illegal Content', osa_training_path('illegal-content'), |
| 36 | + class: "menu--item #{'is-active' if params[:page] == 'illegal-content'}" %> |
| 37 | + <%= link_to 'Definitions', osa_training_path('definitions'), |
| 38 | + class: "menu--item #{'is-active' if params[:page] == 'definitions'}" %> |
| 39 | + <%= link_to 'Handling Illegal Content', osa_training_path('handling'), |
| 40 | + class: "menu--item #{'is-active' if params[:page] == 'handling'}" %> |
| 41 | + <%= link_to 'Higher-Risk Content', osa_training_path('higher-risk'), |
| 42 | + class: "menu--item #{'is-active' if params[:page] == 'higher-risk'}" %> |
| 43 | + <%= link_to 'Conclusion', osa_training_path('conclusion'), |
| 44 | + class: "menu--item #{'is-active' if params[:page] == 'conclusion'}" %> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </nav> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | +</main> |
| 51 | + |
| 52 | +<%= render 'layouts/footer' %> |
| 53 | + |
| 54 | +<%= render 'layouts/matomo' %> |
| 55 | + |
| 56 | +<% if Rails.env.production? %> |
| 57 | + <script src="https://7zb04r9ckbwg.statuspage.io/embed/script.js"></script> |
| 58 | +<% end %> |
| 59 | +</body> |
| 60 | +</html> |
0 commit comments