Further repo browser/Dolt integration work
[gitorious:mainline.git] / app / views / ui3 / layouts / layout.html.erb
1 <!DOCTYPE html>
2 <html lang="en">
3   <head>
4     <meta charset="utf-8">
5     <title><%= @title %> - Gitorious</title>
6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
7     <link href="/ui3/css/gitorious.css" rel="stylesheet">
8     <link href="/ui3/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
9     <link href="/ui3/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
10   </head>
11   <body>
12     <div class="gts-masthead navbar">
13       <div class="navbar-inner">
14         <div class="container">
15           <a class="gts-logo" href="/"><img src="/ui3/images/gitorious.png" alt="Gitorious" title="Gitorious"></a>
16           <div class="pull-right">
17             <form action="search.html" class="navbar-search pull-left">
18               <input type="search" placeholder="Search" class="search-query span2">
19             </form>
20             <div class="pull-right btn-group">
21               <a href="/login" class="btn btn-inverse"><i class="icon-user icon-white"></i> Log in</a>
22             </div>
23           </div>
24         </div>
25       </div>
26     </div>
27     <% if defined?(repository_meta) %>
28       <%= partial("repositories/repo_header", {
29             :repository => repository_meta,
30             :project => repository_meta.project,
31             :ref => ref,
32             :app => Gitorious
33           }) %>
34     <% end %>
35     <div class="container gts-body">
36       <%= yield %>
37     </div>
38     <div class="footer">
39       <div class="container">
40         <p class="pull-right gts-powered-by">
41           <a href="http://gitorious.org">
42             <img alt="Powered by Gitorious" src="/ui3/images/powered-by.png" title="Powered by Gitorious">
43           </a>
44         </p>
45         <p>
46           Gitorious is free software licensed under
47           the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero
48             General Public License (AGPL)</a> unless noted otherwise.
49         </p>
50         <div class="row">
51           <div class="span2">
52             <ul>
53               <li><a href="/about">About Gitorious</a></li>
54               <li><a href="http://groups.google.com/group/gitorious">Discussion group</a></li>
55             </ul>
56           </div>
57           <div class="span2">
58             <ul>
59               <li><a href="http://blog.gitorious.org">Blog</a></li>
60               <li><a href="http://en.gitorious.org/tos">Terms of Service</a></li>
61             </ul>
62           </div>
63           <div class="span2">
64             <ul>
65               <li><a href="http://en.gitorious.org/privacy_policy">Privacy Policy</a></li>
66             </ul>
67           </div>
68         </div>
69         <p class="gts-com-plug">
70           <a href="http://gitorious.com">Professional Gitorious services</a> - Git
71           hosting at your company, custom features, support and more.
72           <a href="http://gitorious.com">gitorious.com</a>.
73         </p>
74       </div>
75     </div>
76     <% if defined?(repository_meta) %>
77       <script>
78         var gts = {
79             repository: "<%= repository_meta.slug %>",
80             commitUrlTemplate: "<%= project_repository_commit_path(repository_meta.project,
81                                                                    repository_meta,
82                                                                    "%oid%").sub("%oid%", "\#{oid}") %>"
83         };
84     </script>
85     <% end %>
86     <script src="/ui3/dist/gts-ui-deps.js"></script>
87     <script src="/ui3/js/components/abbrev.js"></script>
88     <script src="/ui3/js/components/url.js"></script>
89     <script src="/ui3/js/components/ref-selector.js"></script>
90     <script src="/ui3/js/components/tree-history.js"></script>
91     <script src="/ui3/js/components/commit-linker.js"></script>
92     <script src="/ui3/js/gitorious.js"></script>
93   </body>
94 </html>