head.tmpl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head{{if AppRootSubUrl}} data-suburl="{{AppRootSubUrl}}"{{end}}>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta name="author" content="Gogs - Go Git Service" />
  7. <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" />
  8. <meta name="keywords" content="go, git, self-hosted, gogs">
  9. <meta name="_csrf" content="{{.CsrfToken}}" />
  10. {{if .Repository.IsGoget}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
  11. <link rel="shortcut icon" href="{{AppRootSubUrl}}/img/favicon.png" />
  12. {{if CdnMode}}
  13. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
  14. <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
  15. {{else}}
  16. <link rel="stylesheet" href="{{AppRootSubUrl}}/css/font-awesome.min.css">
  17. <script src="{{AppRootSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
  18. {{end}}
  19. <!-- Stylesheet -->
  20. <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/ui.css">
  21. <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/gogs.css">
  22. <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/fonts/octicons.css">
  23. <link rel="stylesheet" href="{{AppRootSubUrl}}/css/github.min.css">
  24. <!-- JavaScript -->
  25. <script src="{{AppRootSubUrl}}/ng/js/lib/tabs.js"></script>
  26. <script src="{{AppRootSubUrl}}/ng/js/lib/lib.js"></script>
  27. <script src="{{AppRootSubUrl}}/ng/js/gogs.js"></script>
  28. <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
  29. </head>
  30. <body>
  31. <div id="wrapper">
  32. <noscript>Please enable JavaScript in your browser!</noscript>