Commit 438c1029 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Improve formatting of index.html.

Moved HTML surrounding footer text to app.rb
parent ee9cf91d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ module JsDuck
      Logger.instance.log("Creating #{dir}/index.html...")
      html = IO.read(template_dir+"/index.html")
      html.gsub!("{title}", @title)
      html.gsub!("{footer}", @footer)
      html.gsub!("{footer}", "<div id='footer-content' style='display: none'>#{@footer}</div>")
      html.gsub!("{extjs_path}", @extjs_path)
      html.gsub!("{guides}", @guides.to_html)
      html.gsub!("{categories}", @categories.to_html)
+14 −10
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
  <link rel="stylesheet" href="resources/css/scrollbars.css" type="text/css" />
  <link rel="stylesheet" href="resources/css/viewport.css" type="text/css" />
  <link rel="stylesheet" href="prettify/prettify.css" type="text/css" />

  <!--[if IE]>
    <link rel="stylesheet" href="resources/css/ie.css" type="text/css" />
  <![endif]-->
@@ -30,14 +29,19 @@

</head>
<body id="ext-body" class="iScroll">

  <div id="loading"><span class="title"></span><span class="logo"></span></div>

  <form id="history-form" class="x-hide-display">
      <input type="hidden" id="x-history-field" />
      <iframe id="x-history-frame"></iframe>
  </form>

  {guides}
  {categories}
    <div id="footer-content" style="display: none">{footer}</div>
  {footer}

  {body_html}

</body>
</html>