index.mak.py 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # -*- coding:utf-8 -*-
  2. from mako import runtime, filters, cache
  3. UNDEFINED = runtime.UNDEFINED
  4. __M_dict_builtin = dict
  5. __M_locals_builtin = locals
  6. _magic_number = 10
  7. _modified_time = 1413984367.807793
  8. _enable_loop = True
  9. _template_filename = '/home/damien/proj/tracim-app/pod/tracim/tracim/templates/index.mak'
  10. _template_uri = '/home/damien/proj/tracim-app/pod/tracim/tracim/templates/index.mak'
  11. _source_encoding = 'utf-8'
  12. from markupsafe import escape_silent as escape
  13. _exports = ['title']
  14. def _mako_get_namespace(context, name):
  15. try:
  16. return context.namespaces[(__name__, name)]
  17. except KeyError:
  18. _mako_generate_namespaces(context)
  19. return context.namespaces[(__name__, name)]
  20. def _mako_generate_namespaces(context):
  21. ns = runtime.TemplateNamespace('TIM', context._clean_inheritance_tokens(), templateuri='tracim.templates.pod', callables=None, calling_uri=_template_uri)
  22. context.namespaces[(__name__, 'TIM')] = ns
  23. def _mako_inherit(template, context):
  24. _mako_generate_namespaces(context)
  25. return runtime._inherit_from(context, 'local:templates.master_anonymous', _template_uri)
  26. def render_body(context,**pageargs):
  27. __M_caller = context.caller_stack._push_frame()
  28. try:
  29. __M_locals = __M_dict_builtin(pageargs=pageargs)
  30. TIM = _mako_get_namespace(context, 'TIM')
  31. dict = context.get('dict', UNDEFINED)
  32. tg = context.get('tg', UNDEFINED)
  33. h = context.get('h', UNDEFINED)
  34. came_from = context.get('came_from', UNDEFINED)
  35. _ = context.get('_', UNDEFINED)
  36. login_counter = context.get('login_counter', UNDEFINED)
  37. __M_writer = context.writer()
  38. __M_writer('\n')
  39. __M_writer('\n\n')
  40. __M_writer('\n\n\n<div class="container-fluid">\n <div class="row-fluid">\n <div>\n <div class="row">\n <div class="col-sm-offset-3 col-sm-5">\n <h1 class="text-center" style="color: ')
  41. __M_writer(escape(h.WEBSITE_HOME_TITLE_COLOR))
  42. __M_writer(';"><b>')
  43. __M_writer(escape(h.WEBSITE_TITLE))
  44. __M_writer('</b></h1>\n </div>\n </div>\n <div class="row">\n <div class="col-sm-offset-3 col-sm-2">\n <a class="thumbnail">\n <img src="')
  45. __M_writer(escape(h.WEBSITE_HOME_IMAGE_URL))
  46. __M_writer('" alt="">\n </a>\n </div>\n <div class="col-sm-3">\n <div class="well">\n \n <h2 style="margin-top: 0;">')
  47. __M_writer(escape(TIM.ICO(32, 'status/status-locked')))
  48. __M_writer(' ')
  49. __M_writer(escape(_('Login')))
  50. __M_writer('</h2>\n <form role="form" method="POST" action="')
  51. __M_writer(escape(tg.url('/login_handler', params=dict(came_from=came_from, __logins=login_counter))))
  52. __M_writer('">\n <div class="form-group">\n <div class="input-group">\n <div class="input-group-addon"><i class="fa fa-envelope-o"></i></div>\n <input type="email" name="login" class="form-control" placeholder="')
  53. __M_writer(escape(_('Enter email')))
  54. __M_writer('">\n </div>\n </div>\n <div class="form-group">\n <div class="input-group">\n <div class="input-group-addon"><i class="fa fa-key"></i></div>\n <input type="password" name="password" class="form-control" placeholder="')
  55. __M_writer(escape(_('Enter password')))
  56. __M_writer('">\n </div>\n </div>\n <div class="checkbox">\n <label>\n <input type="checkbox" id="loginremember" name="remember" value="2252000"/> ')
  57. __M_writer(escape(_('Remember me')))
  58. __M_writer('\n </label>\n </div>\n <div class="text-right">\n <button type="submit" class="btn btn-small btn-success">\n <i class="fa fa-check"></i> ')
  59. __M_writer(escape(_('Login')))
  60. __M_writer('\n </button>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n\n')
  61. return ''
  62. finally:
  63. context.caller_stack._pop_frame()
  64. def render_title(context):
  65. __M_caller = context.caller_stack._push_frame()
  66. try:
  67. h = context.get('h', UNDEFINED)
  68. __M_writer = context.writer()
  69. __M_writer('\n ')
  70. __M_writer(h.WEBSITE_TITLE)
  71. __M_writer('\n')
  72. return ''
  73. finally:
  74. context.caller_stack._pop_frame()
  75. """
  76. __M_BEGIN_METADATA
  77. {"source_encoding": "utf-8", "line_map": {"23": 2, "29": 0, "41": 1, "42": 2, "43": 6, "44": 14, "45": 14, "46": 14, "47": 14, "48": 20, "49": 20, "50": 26, "51": 26, "52": 26, "53": 26, "54": 27, "55": 27, "56": 31, "57": 31, "58": 37, "59": 37, "60": 42, "61": 42, "62": 47, "63": 47, "69": 4, "74": 4, "75": 5, "76": 5, "82": 76}, "uri": "/home/damien/proj/tracim-app/pod/tracim/tracim/templates/index.mak", "filename": "/home/damien/proj/tracim-app/pod/tracim/tracim/templates/index.mak"}
  78. __M_END_METADATA
  79. """