master_anonymous.mak 3.2KB

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