master_anonymous.mak 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <%namespace name="TIM" file="tracim.templates.pod"/>
  2. <!DOCTYPE html>
  3. <html style="height: 100%;">
  4. <head>
  5. ${self.meta()}
  6. <meta charset="utf-8">
  7. <title>${self.title()}</title>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <meta name="description" content="">
  11. <meta name="author" content="">
  12. <link rel="icon" href="/favicon.ico">
  13. <link href="${tg.url('/assets/css/bootstrap.css')}" rel="stylesheet">
  14. <link href="${tg.url('/assets/dist/all.css')}" rel="stylesheet">
  15. <script>
  16. globalTracimLang = '${h.get_lang()}'
  17. </script>
  18. </head>
  19. <body class="${self.body_class()}" style="
  20. height: 100%;
  21. background: url(${CFG.WEBSITE_HOME_BACKGROUND_IMAGE_URL}) no-repeat center bottom scroll;
  22. -webkit-background-size: cover;
  23. -moz-background-size: cover;
  24. background-size: cover;
  25. -o-background-size: cover;">
  26. <script src="${tg.url('/assets/js/jquery.min.js')}"></script>
  27. <div class="container-fluid">
  28. ${self.main_menu()}
  29. ${self.content_wrapper()}
  30. <div id="tracim-footer-separator hidden-xs"></div>
  31. </div>
  32. ${self.footer()}
  33. <script src="${tg.url('/assets/dist/all.js')}"></script>
  34. ## HACK - D.A. - 2014-10-21
  35. ##
  36. ## The following JS "hack" is intended to make TG2 flash messages compatible with bootstrap alert classes
  37. ## This should disappear as soon as LESS is implemented in the application
  38. ## meaning we'll define a alert-ok style inheriting from alert-info, etc
  39. <script>
  40. $( document ).ready(function() {
  41. $('.alert-ok').removeClass('alert-ok').addClass('alert-info');
  42. $('.alert-error').removeClass('alert-error').addClass('alert-danger');
  43. });
  44. </script>
  45. ${CFG.TRACKER_JS_CONTENT|n}
  46. </body>
  47. <%def name="content_wrapper()">
  48. ${TIM.FLASH_MSG('')}
  49. ${self.body()}
  50. </%def>
  51. <%def name="body_class()"></%def>
  52. <%def name="meta()">
  53. <meta charset="${response.charset}" />
  54. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  55. </%def>
  56. <%def name="title()"></%def>
  57. <%def name="footer()">
  58. <div class="pod-footer footer hidden-tablet hidden-phone text-center hidden-xs">
  59. <p>
  60. <a href="http://trac.im">${_('Create your own collaborative workspace on trac.im')}</a> &mdash;
  61. copyright &copy; 2013 - ${h.current_year()} tracim project.
  62. </p>
  63. </div>
  64. </%def>
  65. <%def name="main_menu()">
  66. <div class="navbar navbar-fixed-top navbar-fixed-top-transparent" role="navigation">
  67. <div class="container-fluid">
  68. <div class="navbar-header">
  69. <!--button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
  70. <i class="fa fa-bars"></i>
  71. </button-->
  72. <a class="navbar-brand" href="${tg.url('/')}">
  73. <img src="${tg.url('/assets/img/logo.png')}" class="pull-left" />
  74. </a>
  75. </div>
  76. </div>
  77. </div>
  78. </%def>
  79. </html>