|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta content="IE=edge" http-equiv="X-UA-Compatible"> |
| 6 | + <meta content="width=device-width, initial-scale=1.0" name="viewport"> |
| 7 | + <title><%= distro %> <%= version %> | <%= [group_title, subgroup_title, topic_title].compact.join(' | ') %></title> |
| 8 | + |
| 9 | + <!-- Bootstrap --> |
| 10 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> |
| 11 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> |
| 12 | + |
| 13 | + <%= render("_templates/_css.html.erb", :css_path => css_path) %> |
| 14 | + <script src="<%= File.join(javascripts_path, "bootstrap-offcanvas.js") %>" type="text/javascript"></script> |
| 15 | + |
| 16 | + <meta content="AsciiBinder" name="application-name"> |
| 17 | +</head> |
| 18 | +<body> |
| 19 | + <div class="navbar navbar-default" role="navigation"> |
| 20 | + <div class="container-fluid"> |
| 21 | + <div class="navbar-header"> |
| 22 | + <a class="navbar-brand" href="http://www.projectatomic.io/"><img alt="ProjectAtomic" src="<%= File.join(images_path, "project_atomic_horizontal_logo.png") %>" height="100"></a> |
| 23 | + </div> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + <div class="container"> |
| 27 | + <p class="toggle-nav visible-xs pull-left"> |
| 28 | + <button class="btn btn-default btn-sm" type="button" data-toggle="offcanvas">Toggle nav</button> |
| 29 | + </p> |
| 30 | + <ol class="breadcrumb"> |
| 31 | + <li class="sitename"> |
| 32 | + <a href="<%= site_home_path %>"><%= site_name %></a> |
| 33 | + </li> |
| 34 | + <li class="hidden-xs active"> |
| 35 | + <%= breadcrumb_root %> |
| 36 | + </li> |
| 37 | + <li class="hidden-xs active"> |
| 38 | + <%= breadcrumb_group %> |
| 39 | + </li> |
| 40 | + <%= breadcrumb_subgroup_block %> |
| 41 | + <li class="hidden-xs active"> |
| 42 | + <%= breadcrumb_topic %> |
| 43 | + </li> |
| 44 | + </ol> |
| 45 | + <div class="row row-offcanvas row-offcanvas-left"> |
| 46 | + <div class="col-xs-8 col-sm-3 col-md-3 sidebar sidebar-offcanvas"> |
| 47 | + <%= render("_templates/_nav.html.erb", :navigation => navigation, :group_id => group_id, :topic_id => topic_id, :subgroup_id => subgroup_id, :subtopic_shim => subtopic_shim) %> |
| 48 | + </div> |
| 49 | + <div class="col-xs-12 col-sm-9 col-md-9 main"> |
| 50 | + <div class="page-header"> |
| 51 | + <h2><%= article_title %></h2> |
| 52 | + </div> |
| 53 | + <%= content %> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> |
| 58 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> |
| 59 | + <!-- Latest compiled and minified JavaScript --> |
| 60 | + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> |
| 61 | + <script type="text/javascript"> |
| 62 | + /*<![CDATA[*/ |
| 63 | + $(document).ready(function() { |
| 64 | + $("[id^='topicGroup']").on('show.bs.collapse', function (event) { |
| 65 | + if (!($(event.target).attr('id').match(/^topicSubGroup/))) { |
| 66 | + $(this).parent().find("[id^='tgSpan']").toggleClass("fa-angle-right fa-angle-down"); |
| 67 | + } |
| 68 | + }); |
| 69 | + $("[id^='topicGroup']").on('hide.bs.collapse', function (event) { |
| 70 | + if (!($(event.target).attr('id').match(/^topicSubGroup/))) { |
| 71 | + $(this).parent().find("[id^='tgSpan']").toggleClass("fa-angle-right fa-angle-down"); |
| 72 | + } |
| 73 | + }); |
| 74 | + $("[id^='topicSubGroup']").on('show.bs.collapse', function () { |
| 75 | + $(this).parent().find("[id^='sgSpan']").toggleClass("fa-caret-right fa-caret-down"); |
| 76 | + }); |
| 77 | + $("[id^='topicSubGroup']").on('hide.bs.collapse', function () { |
| 78 | + $(this).parent().find("[id^='sgSpan']").toggleClass("fa-caret-right fa-caret-down"); |
| 79 | + }); |
| 80 | + }); |
| 81 | + /*]]>*/ |
| 82 | + </script> |
| 83 | +</body> |
| 84 | +</html> |
0 commit comments