devdocs/views/app.erb
2014-05-03 11:00:32 -04:00

39 lines
1.5 KiB
Text

<div class="_app">
<header class="_header">
<a class="_home-link"></a>
<a class="_menu-link"></a>
<form class="_search">
<input type="search" class="_search-input" placeholder="Search&hellip;" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="20">
<a class="_search-clear"></a>
<div class="_search-tag"></div>
</form>
<h1 class="_logo">
<a href="/" class="_nav-link">DevDocs</a>
</h1>
<nav class="_nav">
<a href="/about" class="_nav-link">About</a>
<a href="/news" class="_nav-link">News</a>
<a href="/help" class="_nav-link">Help</a>
</nav>
</header>
<section class="_sidebar">
<div class="_list">
<% unless @doc %>
<% App.docs.each do |slug, doc| %>
<a href="/<%= slug %>/" class="_list-item _icon-<%= slug %> _list-dir"><span class="_list-arrow"></span><%= doc['name'] %></a>
<% end %>
<% end %>
</div>
</section>
<section class="_container">
<div class="_content _content-loading"></div>
</section>
</div>
<% if App.production? %><script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5544833-12', 'devdocs.io');
ga('send', 'pageview');
</script><% end %>