def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) csrf_input = context.get('csrf_input', UNDEFINED) self = context.get('self', UNDEFINED) form = context.get('form', UNDEFINED) __M_writer = context.writer() __M_writer(str(django_mako_plus.links(self))) __M_writer('\n\n<div class="form-container">\n <form id="') __M_writer(str(form.form_id)) __M_writer('" action="') __M_writer(str(form.form_action or '')) __M_writer('" method="') __M_writer(str(form.form_method)) __M_writer('">\n\n') __M_writer(' ') __M_writer(str(csrf_input)) __M_writer('\n\n') __M_writer(' ') __M_writer(str(form.as_p())) __M_writer( '\n\n <!-- ## submit button\n <p class="text-center"><button type="submit" class="btn btn-primary">' ) __M_writer(filters.html_escape(str(form.submit_text))) __M_writer('</button></p> -->\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) self = context.get('self', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>DMP</title>\n\n' ) __M_writer( ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n\n <header>\n <h1>Welcome to the your new app!<h1>\n </header>\n\n <main>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n </main>\n\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) self = context.get('self', UNDEFINED) request = context.get('request', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>DMP</title>\n\n' ) __M_writer( ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>\n\n </head>\n <body>\n\n <header>\n <nav class="navbar navbar-expand-lg navbar-light bg-light">\n <div class="container">\n <a class="navbar-brand" href="#">Group 2-13 Intex</a>\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n \n <div class="collapse navbar-collapse" id="navbarSupportedContent">\n <ul class="navbar-nav ml-auto">\n <li class="nav-item">\n <a class="nav-link" href="#">Contact</a>\n </li>\n <li class="nav-item">\n <a class="nav-link" href="#">About</a>\n </li>\n' ) if request.user.is_superuser: __M_writer( ' <li class="nav-item">\n <a class="nav-link" href="#">Dashboard</a>\n </li>\n' ) if not request.user.is_authenticated: __M_writer( ' <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Account\n </a>\n <!-- Here\'s the magic. Add the .animate and .slide-in classes to your .dropdown-menu and you\'re all set! -->\n <div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account">Login</a>\n <a class="dropdown-item" href="/account/signup">Sign Up</a>\n <div class="dropdown-divider"></div>\n <a class="dropdown-item" href="#">Learn More</a>\n </div>\n </li>\n' ) else: __M_writer( ' <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Welcome ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( request.user.username)) __M_writer( '\n </a>\n <!-- Here\'s the magic. Add the .animate and .slide-in classes to your .dropdown-menu and you\'re all set! -->\n <div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account/logout">Logout</a>\n </li>\n' ) __M_writer( ' </ul>\n </div>\n </div>\n </nav>\n </header>\n\n <main style="width: 100%; padding-left: 0; padding-right: 0;">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n </main>\n\n <footer>\n <div><a href="http://django-mako-plus.readthedocs.io/">Online Documentation</a></div>\n <div><a href="https://github.com/doconix/django-mako-plus/">DMP on GitHub</a></div>\n </footer>\n\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def title(): return render_title(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer( '\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <title>' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer( ' - StudentElect</title>\n <meta name="description" content="">\n <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no, viewport-fit=cover">\n <meta name="robots" content="all,follow">\n <meta name="apple-mobile-web-app-capable" content="yes">\n <meta name="apple-mobile-web-app-status-bar-style" content="default">\n \n <!-- Font Awesome -->\n <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">\n <!-- Bootstrap core CSS -->\n <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">\n <!-- Material Design Bootstrap -->\n <link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.0/css/mdb.min.css" rel="stylesheet">\n <!-- Fontastic Custom icon font-->\n <link rel="stylesheet" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'media/css/fontastic.css">\n <!-- Google fonts - Poppins -->\n <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">\n <!-- theme stylesheet-->\n <link rel="stylesheet" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'media/css/style.default.css" id="theme-stylesheet">\n\n <!-- JQuery -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>\n <!-- Bootstrap tooltips -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>\n <!-- Bootstrap core JavaScript -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>\n <!-- MDB core JavaScript -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.0/js/mdb.min.js"></script>\n \n\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n\n </head>\n <body>\n <div class="page">\n <div class="container content-inner">\n\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( ' \n\n </div>\n </div>\n\n </body>\n</html>' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) request = context.get('request', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>HHS Opioid Analytics</title>\n\n') __M_writer(' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\n\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>\n <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">\n <link\n type="text/css"\n rel="stylesheet"\n href="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.css"\n />\n\n\n </head>\n <body>\n\n <header>\n <nav class="navbar navbar-expand-lg navbar-light bg-light">\n <div class="container">\n <a class="navbar-brand" href="#"><img height="50" src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/logo4.png"/></a>\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n \n <div class="collapse navbar-collapse" id="navbarSupportedContent">\n <ul class="navbar-nav ml-auto">\n <li class="nav-item">\n <a href="/drugs" class="nav-link" href="#">Drugs</a>\n </li>\n <li class="nav-item">\n <a href="/prescribers" class="nav-link" href="#">Prescribers</a>\n </li>\n ') __M_writer('\n') if request.user.has_perm('admin.dashboard'): __M_writer(' <li class="nav-item">\n <a class="nav-link" href="/analytics">Dashboard</a>\n </li>\n') if not request.user.is_authenticated: __M_writer(' <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Account\n </a>\n <!-- Here\'s the magic. Add the .animate and .slide-in classes to your .dropdown-menu and you\'re all set! -->\n <div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account">Login</a>\n <a class="dropdown-item" href="/account/signup">Sign Up</a>\n \n </li>\n') else: __M_writer(' <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Welcome ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( request.user.username)) __M_writer('\n </a>\n <!-- Here\'s the magic. Add the .animate and .slide-in classes to your .dropdown-menu and you\'re all set! -->\n <div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account/logout">Logout</a>\n') if request.user.has_perm('admin.analytics') and not request.user.has_perm('admin.see_names'): __M_writer(' ') p = dmod.Prescribers.objects.filter(doctorid = request.user.username).first() pid = p.id __M_locals_builtin_stored = __M_locals_builtin() __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['pid','p'] if __M_key in __M_locals_builtin_stored])) __M_writer('\n <div class="dropdown-divider"></div>\n <a class="dropdown-item" href="/prescribers#/items/') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(pid)) __M_writer('">My Profile</a>\n </div>\n') __M_writer('\n </div>\n \n </li>\n') __M_writer(' </ul>\n </div>\n </div>\n </nav>\n </header>\n\n <main style="width: 100%; padding-left: 0; padding-right: 0;">\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n </main>\n\n <!-- Footer -->\n <footer class="page-footer font-small cyan darken-3">\n\n <!-- Footer Elements -->\n <div class="container">\n \n <!-- Grid row-->\n <div class="row">\n \n <!-- Grid column -->\n <div class="col-md-12 py-5">\n <div class="mb-5 flex-center">\n \n <a class="fb-ic">\n <i class="fab fa-microsoft white-text mr-md-5 mr-3 fa-2x"></i>\n </a>\n <a class="tw-ic">\n <i class="fab fa-vuejs white-text mr-md-5 mr-3 fa-2x"></i>\n </a>\n <a class="gplus-ic">\n <i class="fab fa-python white-text mr-md-5 mr-3 fa-2x"></i>\n </a>\n <a class="gplus-ic">\n <i class="fas fa-file-medical white-text mr-md-5 mr-3 fa-2x"></i>\n </a>\n <a class="gplus-ic">\n <i class="fas fa-chart-bar white-text mr-md-5 mr-3 fa-2x"></i>\n </a>\n\n \n \n </div>\n </div>\n <!-- Grid column -->\n \n </div>\n <!-- Grid row-->\n \n </div>\n <!-- Footer Elements -->\n \n <!-- Copyright -->\n <div class="footer-copyright text-center py-3">© 2019 Copyright:\n <a href="https://www.is-celebrities-consulting.com">is-celebrities-consulting.com</a>\n </div>\n <!-- Copyright -->\n \n </footer>\n <!-- Footer -->\n\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>Golden Spike Submissions</title>\n\n' ) __M_writer( ' <!-- <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css"> -->\n <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">\n <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>\n\n <!-- <link type="text/css" rel="stylesheet" href="//cloud.typography.com/75214/6517752/css/fonts.css" media="all" /> -->\n <link rel="stylesheet" href="https://cdn.byu.edu/byu-theme-components/latest/byu-theme-components.min.css" />\n <script async src="https://cdn.byu.edu/byu-theme-components/latest/byu-theme-components.min.js"></script>\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n' ) __M_writer( ' <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> -->\n\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/js/bootstrap.min.js"></script>\n <!-- Customized colors included in bootstrap -->\n <link type="text/css" rel="stylesheet" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/css/bootstrap-theme.min.css">\n <link type="text/css" rel="stylesheet" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/css/bootstrap.min.css">\n\n <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n\n <byu-header>\n <h1 slot="Golden Spikes Registration">Golden Spikes Registration</h1>\n </byu-header>\n <main>\n <div class="container-fluid center">\n\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n\n </div>\n </div>\n </main>\n\n <footer>\n <div><a href="http://goldenspikeawards.com/">Golden Spikes Site</a></div>\n <div><a href="http://goldenspikeawards.com/entries/categories/">Golden Spikes Awards Categories</a></div>\n </footer>\n\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('\n') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) self = context.get('self', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>Dashboard</title>\n\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\n <link rel="stylesheet" href="/path/to/material-icons/iconfont/material-icons.css">\n <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">\n <link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">\n <link href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">\n\n\n </head>\n <body>\n\n\n <main>\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n </main>\n\n <footer>\n </footer>\n\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) request = context.get('request', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <title>') if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer(' - StudentElect</title>\n <meta name="description" content="">\n <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no, viewport-fit=cover">\n <meta name="robots" content="all,follow">\n <meta name="apple-mobile-web-app-capable" content="yes">\n <meta name="apple-mobile-web-app-status-bar-style" content="default">\n \n <!-- Font Awesome -->\n <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">\n <!-- Bootstrap core CSS -->\n <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">\n <!-- Material Design Bootstrap -->\n <link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.0/css/mdb.min.css" rel="stylesheet">\n <!-- Fontastic Custom icon font-->\n <link rel="stylesheet" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/css/fontastic.css">\n <!-- Google fonts - Poppins -->\n <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">\n <!-- theme stylesheet-->\n <link rel="stylesheet" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/css/style.default.css" id="theme-stylesheet">\n\n <!-- Favicon-->\n <link rel="shortcut icon" href="img/favicon.ico">\n\n <!-- JQuery -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>\n <!-- Bootstrap tooltips -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>\n <!-- Bootstrap core JavaScript -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>\n <!-- MDB core JavaScript -->\n <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.7.0/js/mdb.min.js"></script>\n \n\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\n\n\n </head>\n <body>\n <div class="page">\n\n <!-- Main Navbar-->\n <header class="header">\n <nav class="fixed-top" id="navigation">\n\n <div class="container-fluid">\n <div class="row justify-content-center">\n\n <nav class="navbar navbar-expand-lg navbar-light col-lg-9">\n <button class="navbar-toggler collapsed" id="hamburger-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n \n <a class="navbar-brand" href="#"><img id="site-logo" src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/python.png"></a>\n \n <button class="navbar-settings">\n <span class="navbar-toggler-icon" id="settings-icon"></span>\n </button>\n \n <div class="collapse navbar-collapse" id="navbarSupportedContent">\n <ul class="navbar-nav mr-auto">\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)('active' if request.dmp.page == 'polls' else '')) __M_writer('">\n <a class="nav-link" href="#" id="polls"><strong>Polls</strong></a>\n </li>\n <li class="nav-item">\n <a class="nav-link" href="#" id="submissions"><strong>Submissions</strong></a>\n </li>\n </ul>\n <ul class="navbar-nav">\n') if request.user.is_authenticated: __M_writer(' <li class="nav-item">\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Account\n </a>\n <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="#">Settings</a>\n <div class="dropdown-divider"></div>\n <a class="dropdown-item" href="/account/logout">Sign out</a>\n </div>\n </li>\n') else: __M_writer(' <li class="nav-item">\n <a class="nav-link-right nav-link text-dark" href="/account/login">Sign in</a>\n </li>\n <li class="nav-item">\n <a class="nav-link-right nav-link text-dark" href="/account/register">Register</a>\n </li>\n') __M_writer('\n </ul>\n </div>\n </nav>\n\n </div>\n </div>\n </nav>\n </header>\n\n <div class="page-content d-flex align-items-stretch"> \n <div class="content-inner">\n\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer(' \n\n </div>\n </div>\n\n </div>\n\n </body>\n</html>') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>DMP</title>\n\n' ) __M_writer( ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n\n <header>\n <img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png" alt="python" />\n <div class="title">Welcome to <br/> DMP!</div>\n </header>\n\n <main>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n </main>\n\n <footer>\n <div><a href="http://doconix.github.io/django-mako-plus/">Online Documentation</a></div>\n <div><a href="https://github.com/doconix/django-mako-plus/">DMP on GitHub</a></div>\n </footer>\n\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def meta(): return render_meta(context._locals(__M_locals)) def content(): return render_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'meta'): context['self'].meta(**pageargs) __M_writer('\n <head>\n\n <title>DMP</title>\n\n') __M_writer( ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n <!-- Latest compiled and minified CSS -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">\n\n <!-- Optional theme -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n\n <header>\n <h1><h1>\n </header>\n\n <main>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n </main>\n\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>Testing_App</title>\n\n' ) __M_writer(' ') __M_writer(str(django_mako_plus.links(self))) __M_writer('\n\n </head>\n <body>\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) csrf_input = context.get('csrf_input', UNDEFINED) self = context.get('self', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def main_content(): return render_main_content(context._locals(__M_locals)) request = context.get('request', UNDEFINED) def page_title(): return render_page_title(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n\n<html lang="en">\n <head>\n\n <meta charset="utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">\n\n \t\t<title>' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'page_title'): context['self'].page_title(**pageargs) __M_writer('</title>\n\n <link rel="shortcut icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png">\n\n <!-- REQ: Bootstrap 4.x -->\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">\n\n\n <!-- Font Awesome -->\n <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">\n\n <!-- REQ: Jquery 3.3.x -->\n <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>\n\n <!-- REQ: Bootstrap 4.x -->\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>\n <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>\n\n <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">\n\n <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>\n <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>\n\n\n\n <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n\n\n\n\n\t</head>\n\n\t<body class="h-dark h-solid h-sticky h-nav-content-bottom h-show-icon-group">\n\n <header>\n <!-- header -->\n <div class="container header-container">\n\n <div class="header-search row">\n <form action="/perscriptions/search" method="post">\n ' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(csrf_input)) __M_writer( '\n <div class="row justify-content-center">\n\n <div class="col-5">\n <input type="text" name="search_term" class="form-control" value="" placeholder="Type and press enter">\n </div>\n <div class="col-2">\n <a href="#" class="submit-header-search"><span class="fas fa-chevron-circle-right"></span></a>\n <a href="#" class="toggle-header-search text-danger"><span class="fas fa-window-close"></span></a>\n </div>\n\n </div>\n </form>\n </div>\n\n <div class="logo"><a href="/"><img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png" /></a></div>\n <div class="mobile-logo"><a href="/"><img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png" /></a></div>\n\n <div class="mobile-icon-group">\n <a href=""><span class="fas fa-search"></span></a>\n <a class="on-open-only" href="/"><span class="fas fa-home"></span></a>\n </div>\n <div class="mobile-nav-trigger"><span class="close-icon fas fa-window-close"></span><span class="open-icon fas fa-bars"></span></div>\n\n <div class="icon-group">\n' ) if request.user.is_authenticated: __M_writer( ' <a class="toggle-header-search" href="" data-toggle="tooltip" title="Search"><span class="fas fa-search"></span></a>\n <a class="text-secondary" target="_blank" href="/account/logout" data-toggle="tooltip" title="Logout"><span class="fas fa-sign-out-alt"></span></a>\n' ) else: __M_writer( ' <a class="text-secondary" target="_blank" href="/account/" data-toggle="tooltip" title="Login"><span class="fas fa-sign-in-alt"></span></a>\n' ) __M_writer( ' </div>\n\n <nav role="navigation">\n' ) if request.user.is_authenticated: __M_writer( ' <ul class="level-1 " style="">\n <li><a href="/perscriptions/drugs">Drugs</a></li>\n <li class="flyout">\n <a href="/perscriptions/prescribers" class="parent">Prescribers\n' ) if request.user.has_perm('perscriptions.can_see_names'): __M_writer( ' <i class="carrot fas fa-angle-down"></i>\n' ) __M_writer(' </a>\n') if request.user.has_perm('perscriptions.can_see_names'): __M_writer( ' <ul class="level-2 row no-gutters list-unstyled" style="z-index: 100; display: none;">\n <li class=""><a href="/perscriptions/prescribers.add" class="">Add New Prescriber</a></li>\n </ul>\n' ) __M_writer( ' </li>\n </ul>\n') __M_writer( '\n </nav>\n\n </div>\n\n <div class="clearfix"></div>\n </header>\n\n <main>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'main_content'): context['self'].main_content(**pageargs) __M_writer( '\n <!-- END: CONTENT -->\n </main>\n\n <footer>\n <section class="bg-dark-2">\n <div class="container">\n <div class="row">\n <div class="col-12 text-center" style="color: #fff; opacity: .5; font-size: 80%;">© Copyright 2019 Wells Institute. ALL RIGHTS RESERVED.</div>\n </div>\n </div>\n </section>\n </footer>\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) request = context.get('request', UNDEFINED) def navbar_items(): return render_navbar_items(context._locals(__M_locals)) def center_column(): return render_center_column(context._locals(__M_locals)) def left_column(): return render_left_column(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def right_column(): return render_right_column(context._locals(__M_locals)) user = context.get('user', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n\r\n <title>USOS — ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('</title>\r\n\r\n') __M_writer(' <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/jquery-3.3.1.js"></script>\r\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>\r\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>\r\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.0.0-dist/css/bootstrap.min.css">\r\n\r\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer('\r\n\r\n') __M_writer(' <link rel="icon" type="image/png" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/byu.png">\r\n\r\n </head>\r\n <body>\r\n<!-- \r\n <div id="maintenance_container">\r\n <div id="maintenance_message" class="alert alert-danger center-block">The server is going offline tonight for two hours.</div>\r\n </div> -->\r\n\r\n <header id="header">\r\n\r\n <img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/byu.png" alt="byu logo" id="image"/>\r\n <br>\r\n <ul class="nav nav-tabs justify-content-end">\r\n <nav class="navbar">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'navbar_items'): context['self'].navbar_items(**pageargs) __M_writer( '\r\n <li class="nav-item"><a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'index' else '')) __M_writer( '" href="/">Home</a></li>\r\n <li class="nav-item"><a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'contact' else '')) __M_writer( '" href="/contact/">Contact</a></li>\r\n <li class="nav-item"><a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else '')) __M_writer( '" href="/about/">About</a></li>\r\n <!-- <li class="nav-item">\r\n' ) if user.is_authenticated: __M_writer( ' <div class="dropdown">\r\n <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n Account\r\n </button>\r\n <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">\r\n <a class="dropdown-item" href="/account/logout/">Logout</a>\r\n </div>\r\n </div>\r\n' ) else: __M_writer( ' <a class="nav-link" href="/account/login/">Login</a></li>\r\n' ) __M_writer( ' </li> -->\r\n </nav>\r\n </ul>\r\n </header>\r\n\r\n <main>\r\n <div id="left_block">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'left_column'): context['self'].left_column(**pageargs) __M_writer( '\r\n </div> \r\n\r\n <div id="center_block">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'center_column'): context['self'].center_column(**pageargs) __M_writer( '\r\n </div> \r\n \r\n <div id="right_block">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'right_column'): context['self'].right_column(**pageargs) __M_writer( '\r\n </div> \r\n\r\n \r\n \r\n </main>\r\n\r\n <footer>\r\n ' ) __M_writer('\r\n <p>© Copyright ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.now().strftime("%Y"))) __M_writer( '. All rights reserved</p>\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) form = context.get('form', UNDEFINED) enumerate = context.get('enumerate', UNDEFINED) color_tiles = context.get('color_tiles', UNDEFINED) color_tiles2 = context.get('color_tiles2', UNDEFINED) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>homepage</title>\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/jquery-3.2.1.min.js"></script>\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/popper.js"></script>\n <script src="') __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/tooltip.js"></script>\n <script src="') __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap.min.js"></script>\n <link rel="stylesheet" href="' ) __M_writer(str(STATIC_URL)) __M_writer('homepage/media/bootstrap.min.css">\n\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n <header>\n <h1>Color Shift<h1>\n </header>\n <main>\n <div>\n <form id="form" method="POST" class="form-inline">\n ' ) __M_writer(str(form)) __M_writer( '\n <button id="submit_button" type="submit" class="btn btn-primary">Submit</button>\n </form>\n </div>\n \n <h2>Unsorted</h2>\n <div id="color_tile_container">\n' ) for i, tile in enumerate(color_tiles): if i % 7 == 0: __M_writer(' <br/>\n') __M_writer(' ') __M_writer(str(tile.render())) __M_writer('\n') __M_writer( ' </div>\n\n <h2>Sorted</h2>\n <div id="color_tile_container">\n' ) for i, tile in enumerate(color_tiles2): if i % 7 == 0: __M_writer(' <br/>\n') __M_writer(' ') __M_writer(str(tile.render())) __M_writer('\n') __M_writer( ' </div>\n\n </main>\n </body>\n</html>\n\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def site_left(): return render_site_left(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def login_navbar(): return render_login_navbar(context._locals(__M_locals)) request = context.get('request', UNDEFINED) def site_center(): return render_site_center(context._locals(__M_locals)) def navbar_items(): return render_navbar_items(context._locals(__M_locals)) def page_title(): return render_page_title(context._locals(__M_locals)) def header_maintenance(): return render_header_maintenance(context._locals(__M_locals)) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n\r\n <title>') if 'parent' not in context._data or not hasattr(context._data['parent'], 'page_title'): context['self'].page_title(**pageargs) __M_writer('</title>\r\n \r\n\r\n') __M_writer(' <script href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage\\media\\jquery-3.3.1.min.js"></script>\r\n <script href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage\\media\\bootstrap-3.3.7-dist\\js\\bootstrap.min.js"></script>\r\n <link rel="stylesheet" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage\\media\\bootstrap-3.3.7-dist\\css\\bootstrap.min.css">\r\n <link rel="icon" src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/mountain.png">\r\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\r\n\r\n </head>\r\n <body>\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'header_maintenance'): context['self'].header_maintenance(**pageargs) __M_writer('\r\n \r\n\r\n <header>\r\n <nav class="navbar">\r\n <div class="container-fluid" id="site_navbar_top">\r\n <div class="navbar-header">\r\n <a href="/" title="OpiAnalytics"><img src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/mountain.png" id="site_img"/></a>\r\n </div>\r\n <ul class="nav navbar-nav">\r\n <li class="nav-item"><a class="nav-link-') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'index' else '' )) __M_writer('" href="/">Home</a></li>\r\n <li class="nav-item"><a class="nav-link-') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'catalog' else '' )) __M_writer('" href="/catalog/index/">Catalog</a></li>\r\n <li class="nav-item"><a class="nav-link-') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else '' )) __M_writer('" href="/about/">About</a></li>\r\n') if request.user.is_authenticated: __M_writer(' ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'navbar_items'): context['self'].navbar_items(**pageargs) __M_writer('\r\n') else: __M_writer(' ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'login_navbar'): context['self'].login_navbar(**pageargs) __M_writer('\r\n') __M_writer(' </ul>\r\n </nav>\r\n \r\n </div>\r\n \r\n </header>\r\n\r\n <main>\r\n <div id="site_left">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'site_left'): context['self'].site_left(**pageargs) __M_writer('\r\n </div>\r\n <div id="site_center">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'site_center'): context['self'].site_center(**pageargs) __M_writer('\r\n </div>\r\n \r\n </main>\r\n\r\n <footer class="page-footer">\r\n ©Copyright 2019. All rights reserved.\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) self = context.get('self', UNDEFINED) user = context.get('user', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) def header(): return render_header(context._locals(__M_locals)) def content(): return render_content(context._locals(__M_locals)) request = context.get('request', UNDEFINED) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n <title>\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('\r\n </title>\r\n\r\n <link rel="shortcut icon" type="image/png" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/drugs.png"/>\n\n') __M_writer(' <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">\n <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>\n <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>\n <link id="theme" rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/darkly/bootstrap.min.css">\n <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">\n <script src="https://public.tableau.com/javascripts/api/tableau-2.min.js"></script>\n <script>\n\n function lights(sheet, button, showButton) {\n document.getElementById("theme").setAttribute("href", sheet);\n button.style.display = \'none\';\n showButton.style.display = \'block\';\n }\n\n function initiate() {\n var darkMode = document.getElementById("darkModeButton");\n var lightMode = document.getElementById("lightModeButton");\n\n darkMode.onclick = function () { lights("https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/darkly/bootstrap.min.css", darkMode, lightMode) };\n lightMode.onclick = function () { lights("https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/flatly/bootstrap.min.css", lightMode, darkMode) };\n\n darkMode.style.display = \'none\';\n lightMode.style.display = \'block\';\n }\n \n function showAlert(){\n console.log("run function");\n console.log(document.getElementById("searchAlert"));\n document.getElementById("searchAlert").style.display = \'block\';\n }\n\n window.onload = initiate;\n\n </script>\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\r\n\r\n </head>\r\n <body>\r\n\r\n <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">\r\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">\r\n <span class="navbar-toggler-icon"></span>\r\n </button>\r\n <a class="navbar-brand" href="/">\r\n <img src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/drugs.png" width="50" height="50" alt="">\r\n Opioid Tracker\r\n </a>\r\n\r\n <div class="collapse navbar-collapse" id="navbarColor01">\r\n <ul class="navbar-nav mr-auto">\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.app == 'homepage' and request.dmp.page == 'index' else '')) __M_writer('">\r\n <a class="nav-link" href="/">Home</a>\r\n </li>\r\n <li class="nav-item dropdown ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.app == 'prescribers' else '')) __M_writer('">\r\n <a class="nav-link dropdown-toggle" href="/search" id="searchDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Search</a>\r\n <div class="dropdown-menu" aria-labelledby="searchDropdown">\r\n <a class="dropdown-item" href="/search/prescribers">Prescriber</a>\r\n <a class="dropdown-item" href="/search/drugs">Drugs</a>\r\n <a class="dropdown-item" href="/search/prescribersAndDrugs">Prescribers & Drugs</a>\r\n </div>\r\n </li>\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.app == 'drugs' else '')) __M_writer('">\r\n <a class="nav-link" href="/analytics">Analytics</a>\r\n </li>\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else '')) __M_writer('">\r\n <a class="nav-link" href="/about">About</a>\r\n </li>\r\n </ul> \r\n <p class="userWelcome">') __M_writer(django_mako_plus.ExpressionPostProcessor(self)("Welcome, " + user.username + "!" if user.is_authenticated else "")) __M_writer('</p>\r\n <button id="darkModeButton" class="btn btn-secondary" style="margin-left: 10px; display: none;">Lights Off</button>\r\n <button id="lightModeButton" class="btn btn-secondary" style="margin-left: 10px;">Lights On</button>\r\n <a class="btn ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'btn-danger' if user.is_authenticated else 'btn-success')) __M_writer(' my-2 my-sm-0" style="margin-left: 10px;" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( '/account/logout' if user.is_authenticated else '/account' )) __M_writer('" >') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'Logout' if user.is_authenticated else 'Login')) __M_writer('</a>\r\n <a href="/account/signup" class="btn btn-info" role="button" style="margin-left: 10px; display: ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'none' if user.is_authenticated else 'block' )) __M_writer('">Sign Up</a>\r\n <a class="btn btn-info my-2 my-sm-0" style="margin-left: 10px; display: ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'block' if user.is_authenticated and (user.user_type == 4 or user.user_type == 1) else 'none' )) __M_writer('" href="/admin">Admin Tools</a>\r\n </div>\r\n </nav>\r\n\r\n <header>\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'header'): context['self'].header(**pageargs) __M_writer('\r\n </header>\r\n\r\n <main>\r\n <div id = content>\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\r\n </div>\r\n </main>\r\n\r\n <footer>\r\n <div class="footer text-primary">\r\n <p>Powered by SCRM Consulting</p>\r\n <p>Copyright © 2019</p>\r\n </div>\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def content_left(): return render_content_left(context._locals(__M_locals)) def content_right(): return render_content_right(context._locals(__M_locals)) def bottom(): return render_bottom(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def content_center(): return render_content_center(context._locals(__M_locals)) request = context.get('request', UNDEFINED) def skip(): return render_skip(context._locals(__M_locals)) def top_center(): return render_top_center(context._locals(__M_locals)) def nav_main(): return render_nav_main(context._locals(__M_locals)) def header_maintenance(): return render_header_maintenance(context._locals(__M_locals)) def footer(): return render_footer(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '\r\n\r\n<!DOCTYPE html>\r\n\r\n\r\n<html>\r\n<meta charset="UTF-8">\r\n<head>\r\n\r\n <title>FOMO</title>\r\n\r\n' ) __M_writer(' <!--<script src="') __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/jquery-3.3.1.js"></script>-->\r\n <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\r\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap3/js/bootstrap.min.js"></script>\r\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap3/css/bootstrap.min.css"/>\r\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap3/css/bootstrap-theme.min.css"/>\r\n <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">\r\n\r\n\r\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer('\r\n\r\n') __M_writer( ' <link id = "icon" rel="shortcut icon" type="image/png" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/Images/icon.png"/>\r\n\r\n\r\n</head>\r\n<body>\r\n<a href="#content" class="skip">Skip to content</a>\r\n\r\n<header>\r\n <!--Maintenance Message-->\r\n <div id="maintenance">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'header_maintenance'): context['self'].header_maintenance(**pageargs) __M_writer('\r\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'skip'): context['self'].skip(**pageargs) __M_writer( '\r\n </div>\r\n\r\n\r\n <!--Make a navbar-->\r\n <nav class="navbar navbar-inverse">\r\n <div class="container-fluid">\r\n <div class="navbar-header">\r\n <a class="navbar-brand" href="index"><img id="icon" src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/Images/icon.png"/></a>\r\n </div>\r\n <ul class="nav navbar-nav">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'nav_main'): context['self'].nav_main(**pageargs) __M_writer( '\r\n </ul>\r\n <ul class="nav navbar-nav navbar-right">\r\n' ) if request.user.is_authenticated: __M_writer(' <li class=" ') __M_writer(str('active' if request.dmp.page == 'cart' else '')) __M_writer( '">\r\n <a href="/catalog/cart">\r\n\r\n' ) if cmod.Order.objects.filter(user=request.user, status='cart').first() is not None: __M_writer(' ') __M_writer( str( cmod.Order.objects.filter( user=request.user, status='cart').first().num_items())) __M_writer( '\r\n <span class="glyphicon glyphicon-shopping-cart"></span></a>\r\n' ) __M_writer( '\r\n </li>\r\n <li class="dropdown">\r\n <a class="dropdown-toggle" data-toggle="dropdown" href="#">\r\n Welcome ' ) __M_writer(str(request.user.first_name)) __M_writer(' ') __M_writer(str(request.user.last_name)) __M_writer( '\r\n <span class="caret"></span></a>\r\n <ul class="dropdown-menu">\r\n <li><a href="#">My Account</a></li>\r\n <li><a href="/account/logout">Log Out</a></li>\r\n </ul>\r\n </li>\r\n' ) else: __M_writer( ' <li><a href="/account/signup">Sign Up</a></li>\r\n <li><a href="/account/login">Login</a></li>\r\n </ul>\r\n' ) __M_writer( '\r\n </div>\r\n </nav>\r\n\r\n\r\n</header>\r\n\r\n<main>\r\n\r\n <div id="top">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'top_center'): context['self'].top_center(**pageargs) __M_writer( '\r\n </div>\r\n\r\n <div id="middle">\r\n <div id="left">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_left'): context['self'].content_left(**pageargs) __M_writer( '\r\n </div>\r\n\r\n <div id="center">\r\n <div id="content">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_center'): context['self'].content_center(**pageargs) __M_writer( '\r\n </div>\r\n </div>\r\n\r\n <div id="right">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_right'): context['self'].content_right(**pageargs) __M_writer( '\r\n </div>\r\n </div>\r\n\r\n <div id="bottom">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'bottom'): context['self'].bottom(**pageargs) __M_writer( '\r\n </div>\r\n\r\n</main>\r\n\r\n<div class="text-center">\r\n <footer>\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'footer'): context['self'].footer(**pageargs) __M_writer( '\r\n</footer>\r\n</div>\r\n\r\n\r\n</body>\r\n\r\n\r\n</html>\r\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) self = context.get('self', UNDEFINED) user = context.get('user', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) request = context.get('request', UNDEFINED) def site_right(): return render_site_right(context._locals(__M_locals)) def site_left(): return render_site_left(context._locals(__M_locals)) def site_center(): return render_site_center(context._locals(__M_locals)) def site_menu(): return render_site_menu(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\r\n<html>\r\n \r\n <head>\r\n <meta charset="UTF-8">\r\n <meta name="viewport" content="width=device-width, initial-scale=1">\r\n\r\n <title>Colby Nelson — ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('</title>\r\n\r\n') __M_writer(' <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/jquery-3.3.1.js"></script>\r\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/scripts/tether.js"></script>\r\n <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.0.0-alpha.6-dist/bootstrap-4.0.0-alpha.6-dist/js/bootstrap.js"></script>\r\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.0.0-alpha.6-dist/bootstrap-4.0.0-alpha.6-dist/css/bootstrap.css">\r\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/styles/tether.css">\r\n \r\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer('\r\n\r\n\r\n') __M_writer(' <link rel="icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png">\r\n </head>\r\n <body>\r\n <div id="maintenance_message" class="alert alert-danger">\r\n <div id="maintenance_text">\r\n Hey there, the server is going to be down tomorrow.\r\n </div>\r\n </div>\r\n \r\n <header>\r\n <div>\r\n <nav class="navbar">\r\n <ul class="nav nav-pills">\r\n <li class="nav-item" >\r\n <a class="nav-link" href="/" style="padding-top: 0; padding-bottom: 0;">\r\n <img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/python.png" alt="Site Logo" style="height: 40px; margin: 0;"/>\r\n </a>\r\n </li>\r\n <li class="nav-item ">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)('active' if ( request.dmp.app == 'homepage' and request.dmp.page == 'index' ) else '')) __M_writer( '" href="/">Home</a>\r\n </li>\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_menu'): context['self'].site_menu(**pageargs) __M_writer('\r\n \r\n') if user.is_authenticated: __M_writer( ' <li class="nav-item dropdown account">\r\n ' ) u = user.first_name __M_locals_builtin_stored = __M_locals_builtin() __M_locals.update( __M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['u'] if __M_key in __M_locals_builtin_stored])) __M_writer( '\r\n <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Hello ' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(u)) __M_writer( '!</a>\r\n <div class="dropdown-menu">\r\n <a class="dropdown-item" href="/catalog/cart/">View Cart</a>\r\n <a class="dropdown-item" href="/catalog/orders/">View Orders</a>\r\n <a class="dropdown-item" href="/account/logout/">Logout</a>\r\n </div>\r\n </li>\r\n \r\n' ) else: __M_writer( ' <li class="nav-item account">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'login' else '')) __M_writer( '" href="/account/login/">Login</a>\r\n </li>\r\n' ) __M_writer( ' </ul>\r\n </nav>\r\n </div>\r\n </header>\r\n\r\n <main>\r\n <div id="site_left">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_left'): context['self'].site_left(**pageargs) __M_writer( '\r\n </div>\r\n <div id="site_center">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_center'): context['self'].site_center(**pageargs) __M_writer( '\r\n </div>\r\n <div id="site_right">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_right'): context['self'].site_right(**pageargs) __M_writer( '\r\n </div>\r\n </main>\r\n\r\n <footer>\r\n ' ) __M_writer('\r\n © Copyright ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.now().strftime('%Y'))) __M_writer( '. All Rights Reserved.\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def left(): return render_left(context._locals(__M_locals)) def maintain(): return render_maintain(context._locals(__M_locals)) def menu(): return render_menu(context._locals(__M_locals)) def center(): return render_center(context._locals(__M_locals)) def content(): return render_content(context._locals(__M_locals)) def top(): return render_top(context._locals(__M_locals)) def right(): return render_right(context._locals(__M_locals)) request = context.get('request', UNDEFINED) self = context.get('self', UNDEFINED) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\n') __M_writer( '\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>FOMO</title>\n\n' ) __M_writer( ' <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/js/bootstrap.min.js"></script>\n <link rel="stylesheet" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/css/bootstrap-theme.min.css" />\n <link rel="stylesheet" href="' ) __M_writer(str(STATIC_URL)) __M_writer('homepage/media/bootstrap/css/bootstrap.min.css" />\n\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer('\n <link rel="icon" type="image/x-icon" href="') __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/images/musicNote.png" />\n </head>\n <body>\n <div class="content">\n\n\n <a id="skip_to_content" href="#mid">Skip to Main Content</a>\n <maintenance>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'maintain'): context['self'].maintain(**pageargs) __M_writer( '\n </maintenance>\n <header>\n <nav class="navbar navbar-default navbar-inverse">\n <div class="container-fluid">\n <div class="navbar-header">\n <a class="navbar-brand" id="navimg" href="/homepage/index"><img src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/images/greyNote.png" alt="Music Note" height="35" width="35"></a>\n </div>\n <ul class="nav navbar-nav">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'menu'): context['self'].menu(**pageargs) __M_writer( '\n </ul>\n <ul class="nav navbar-nav navbar-right">\n' ) if request.user.is_authenticated: __M_writer('\n') if cmod.Order.objects.filter(user=request.user, status="cart").first() is not None: if cmod.Order.objects.filter( user=request.user, status="cart").first().num_items() > 0: __M_writer( ' <li>\n <a id="home" href="/catalog/cart">\n\n ' ) __M_writer( str( cmod.Order.objects.filter( user=request.user, status="cart").first().num_items())) __M_writer( '\n <span class=" gly glyphicon glyphicon-shopping-cart"></span>\n </a>\n </li>\n' ) __M_writer( '\n <li class="dropdown">\n <a class="dropdown-toggle" data-toggle="dropdown" href="#">' ) __M_writer(str(request.user.email)) __M_writer( '\n <span class="caret"></span></a>\n <ul class="dropdown-menu">\n' ) if request.user.has_perm('auth.manager_view'): __M_writer( '\t\t\t\t\t\t\t<li><a href="/manager/ProductList">Manager Portal</a></li>\n' ) __M_writer( ' <li><a href="/account/user_orders">Your Orders</a></li>\n <li><a href="/account/logout/">Logout</a></li>\n\t\t\t\t\t\t\n </ul>\n </li>\n' ) else: __M_writer( ' <li><a href="/account/signup"><span class="glyphicon glyphicon-user"></span>Register</a></li>\n <li><a href="/account/login/"><span class="glyphicon glyphicon-user"></span>Login</a></li>\n\n' ) __M_writer( '\n </ul>\n </div>\n </nav>\n\n </header>\n <div class="row">\n <top class="col-md-12">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'top'): context['self'].top(**pageargs) __M_writer( '\n </top>\n </div>\n <div class="row">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n </div>\n </div>\n <br />\n <br />\n <br />\n <br />\n <footer class="footer foot col-md-12">\n <a href="/homepage/index">Home</a> |\n <a href="/catalog/index">Catalog</a> |\n <a href="/homepage/about">About</a> |\n <a href="/homepage/contact">Contact Us</a> |\n <a href="/homepage/terms">Terms and Conditions</a> |\n <a href="/homepage/faq">FAQ</a>\n <br /><br />\n\n ' ) __M_writer('\n FOMO - ') __M_writer(str(datetime.datetime.now().year)) __M_writer(' ©\n\n </footer>\n\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) user = context.get('user', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) request = context.get('request', UNDEFINED) def right_content(): return render_right_content(context._locals(__M_locals)) def middleclass(): return render_middleclass(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def site_content(): return render_site_content(context._locals(__M_locals)) def left_content(): return render_left_content(context._locals(__M_locals)) def navbar_items(): return render_navbar_items(context._locals(__M_locals)) def logo(): return render_logo(context._locals(__M_locals)) def page_header_title(): return render_page_header_title(context._locals(__M_locals)) def bodyclass(): return render_bodyclass(context._locals(__M_locals)) def page_title(): return render_page_title(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\r\n<html>\r\n<meta charset="UTF-8">\r\n\r\n<head>\r\n\r\n <title>\r\n STOP.GOV\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'page_title'): context['self'].page_title(**pageargs) __M_writer('\r\n </title>\r\n\r\n \r\n') __M_writer(' <!-- <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage\\media\\jquery.js"></script> -->\r\n <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\r\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/js/bootstrap.min.js"></script>\r\n <link rel="stylesheet" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/css/bootstrap.min.css" rel="stylesheet" type="text/css">\r\n <!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>\r\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>\r\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script> -->\r\n \r\n <link rel="stylesheet" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/styles/base.scss">\r\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer('\r\n <link rel="icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/favicon.ico">\r\n\r\n </head>\r\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'bodyclass'): context['self'].bodyclass(**pageargs) __M_writer( '\r\n <header>\r\n <a href="/">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'logo'): context['self'].logo(**pageargs) __M_writer( '\r\n </a>\r\n <nav class="mynav navbar">\r\n <ul class="nav nav-tabs">\r\n <li class="mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == '' else ' ')) __M_writer( '" href="/">Home</a>\r\n </li>\r\n <li class="mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else ' ')) __M_writer( '" href="/about/">About</a>\r\n </li> \r\n <li class="mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'contact' else ' ')) __M_writer( '" href="/contact/">Contact</a>\r\n </li> \r\n' ) if request.user.is_authenticated: if user.groups.filter(name='Prescribers').exists(): __M_writer( ' <li class="mynav-item">\r\n <a class="navtitle prestext">Prescriber Tools:</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'search' else ' ')) __M_writer( ' presnav" href="/portal/search/">Search</a>\r\n </li> \r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'analytics' else ' ')) __M_writer( ' presnav" href="/portal/analytics/">Analytics</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'account' else ' ')) __M_writer( ' presnav" href="/account//">My Account</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'logout' else ' ')) __M_writer( ' presnav" href="/account/logout/">Log Out</a> \r\n') if user.groups.filter( name='HealthOfficials').exists() or user.groups.filter( name='Officials').exists(): __M_writer( ' <li class="mynav-item">\r\n <a class="navtitle offtext">Health Official Tools:</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'search' else ' ')) __M_writer( ' offnav" href="/portal/search/">Search</a>\r\n </li> \r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'analytics' else ' ')) __M_writer( ' offnav" href="/portal/analytics/">Analytics</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'account' else ' ')) __M_writer( ' offnav" href="/account/index/">My Account</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'logout' else ' ')) __M_writer( ' offnav" href="/account/logout/">Log Out</a>\r\n </li>\r\n' ) if user.groups.filter(name='HHS').exists(): __M_writer( ' <li class="mynav-item">\r\n <a class="navtitle hhatext">Data Clerk Tools:</a>\r\n </li>\r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'search' else ' ')) __M_writer( ' hhanav" href="/portal/search/">Search</a>\r\n </li> \r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'listings' else ' ')) __M_writer( ' hhanav" href="/portal/listings/">Edit Listings</a>\r\n </li> \r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'account' else ' ')) __M_writer( ' hhanav" href="/account/index/">My Account</a>\r\n </li> \r\n <li class="nav-item mynav-item">\r\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'logout' else ' ')) __M_writer( ' hhanav" href="/account/logout/">Logout</a>\r\n </li> \r\n' ) if request.user.is_authenticated: __M_writer( ' \r\n <p style="position:absolute;right:0;top:40;font-family: \'Trebuchet MS\';font-size: 20px;padding: 10px;color:rgba(128, 128, 128, 0.486);"><img src="/static/homepage/media/UserImages/' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( request.user.username)) __M_writer( '.png" style="width:30px;height: 30px; margin-right:200px;"> Hello ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( request.user.username)) __M_writer('!</p>\r\n \r\n') else: __M_writer( ' <li class="nav-item mynav-item" style="float:right; position: absolute; right: 0;"><a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'login' else ' ')) __M_writer( '"" href="/account/login/4/" style="color:#085c49">Log In</a></li>\r\n \r\n' ) __M_writer(' ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'navbar_items'): context['self'].navbar_items(**pageargs) __M_writer( '\r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n </ul>\r\n \r\n </nav>\r\n <div class="title">' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'page_header_title'): context['self'].page_header_title(**pageargs) __M_writer( '</div>\r\n </header>\r\n <main>\r\n<div id="site_left" class="">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'left_content'): context['self'].left_content(**pageargs) __M_writer('\r\n</div>\r\n') if 'parent' not in context._data or not hasattr( context._data['parent'], 'middleclass'): context['self'].middleclass(**pageargs) __M_writer('\r\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_content'): context['self'].site_content(**pageargs) __M_writer('\r\n</div>\r\n\r\n<div id="site_right">\r\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'right_content'): context['self'].right_content(**pageargs) __M_writer( '\r\n</div>\r\n </main>\r\n\r\n <footer>\r\n ' ) __M_writer('\r\n \r\n <p class="copy"> © ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.now().strftime("%Y"))) __M_writer( ' Group 2-9</p>\r\n\r\n </footer>\r\n\r\n </body>\r\n\r\n</html>' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) def content_top(): return render_content_top(context._locals(__M_locals)) def error_message(): return render_error_message(context._locals(__M_locals)) def content_right(): return render_content_right(context._locals(__M_locals)) def navbar(): return render_navbar(context._locals(__M_locals)) self = context.get('self', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) request = context.get('request', UNDEFINED) def content_left(): return render_content_left(context._locals(__M_locals)) def body_footer(): return render_body_footer(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n\n <div class="text-center">\n <div class="header & error_message">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'error_message'): context['self'].error_message(**pageargs) __M_writer( '\n </div>\n </div>\n\n\n <head>\n\n\n\n <title>FOMO</title>\n\n' ) __M_writer( ' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n <script src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/js/bootstrap.min.js"></script>\n\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/css/bootstrap.min.css">\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(str(STATIC_URL)) __M_writer( 'homepage/media/bootstrap/css/bootstrap-theme.min.css">\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(str(STATIC_URL)) __M_writer('homepage/styles/custom.css"\n\n\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">\n\n\n\n <!-- Static navbar -->\n <nav class="navbar navbar-default navbar-static-top">\n <div class="container-fluid">\n <div class="navbar-header">\n <a class="navbar-brand" href="index"><i class="fa fa-ravelry" aria-hidden="true"></i></a>\n </div>\n <ul id="navbar" class="navbar-collapse collapse">\n\n\n <ul class="nav navbar-nav">\n\n\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'navbar'): context['self'].navbar(**pageargs) __M_writer( '\n </ul>\n\n <ul class="nav navbar-nav navbar-right">\n' ) if request.user.is_authenticated: __M_writer( ' <li><a href="/account/logout/">Logout</a></li>\n' ) if request.user.is_authenticated == False: __M_writer(' <li class="') __M_writer( str('active' if request.dmp.page == 'account/login' else '')) __M_writer( '"><a href="/account/login/">Login</a></li>\n <li class="' ) __M_writer( str('active' if request.dmp.page == 'account/signup' else '')) __M_writer('"><a href="/account/signup/">Signup</a></li>\n') __M_writer( ' </ul>\n </div><!--/.nav-collapse -->\n </div><!--/.container-fluid -->\n </nav>\n\n </head>\n <body>\n <main>\n\n <div class="text-center & content_top">\n <div content = "header">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_top'): context['self'].content_top(**pageargs) __M_writer( '\n </div>\n </div>\n\n\n <div class="col-md-2 & content_left">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_left'): context['self'].content_left(**pageargs) __M_writer( '\n </div>\n\n <div class="col-md-8 & content">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n </div>\n\n <div class="col-md-2 & content_right">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content_right'): context['self'].content_right(**pageargs) __M_writer( '\n </div>\n\n\n\n </main>\n\n<div>\n </br>\n </br>\n </br>\n </br>\n </br>\n</div>\n <!--<footer>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'body_footer'): context['self'].body_footer(**pageargs) __M_writer( '\n </footer>-->\n\n </body>\n\n</html>\n\n\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) self = context.get('self', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) def title(): return render_title(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <meta charset="utf-8" />\n <link rel="apple-touch-icon" sizes="76x76" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/media/theme/apple-icon.png">\n <link rel="icon" type="image/png" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/media/theme/favicon.png">\n <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />\n <title>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer( ' - StudentElect\n </title>\n <meta content=\'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no\' name=\'viewport\' />\n <!-- Fonts and icons -->\n <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">\n <!-- CSS Files -->\n <link href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/styles/material-dashboard.css" rel="stylesheet" />\n\n') __M_writer( '\n </head>\n <body class="">\n <div class="wrapper">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer( '\n </div>\n <!-- Core JS Files -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/core/jquery.min.js"></script>\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/core/popper.min.js"></script>\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/core/bootstrap-material-design.min.js"></script>\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/perfect-scrollbar.jquery.min.js"></script>\n <!-- Plugin for the momentJs -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/moment.min.js"></script>\n <!-- Plugin for Sweet Alert -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/sweetalert2.js"></script>\n <!-- Forms Validations Plugin -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/jquery.validate.min.js"></script>\n <!-- Plugin for the Wizard, full documentation here: https://github.com/VinceG/twitter-bootstrap-wizard -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/jquery.bootstrap-wizard.js"></script>\n <!--\tPlugin for Select, full documentation here: http://silviomoreto.github.io/bootstrap-select -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/bootstrap-selectpicker.js"></script>\n <!-- Plugin for the DateTimePicker, full documentation here: https://eonasdan.github.io/bootstrap-datetimepicker/ -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/bootstrap-datetimepicker.min.js"></script>\n <!-- DataTables.net Plugin, full documentation here: https://datatables.net/ -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/jquery.dataTables.min.js"></script>\n <!--\tPlugin for Tags, full documentation here: https://github.com/bootstrap-tagsinput/bootstrap-tagsinputs -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/bootstrap-tagsinput.js"></script>\n <!-- Plugin for Fileupload, full documentation here: http://www.jasny.net/bootstrap/javascript/#fileinput -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/jasny-bootstrap.min.js"></script>\n <!-- Full Calendar Plugin, full documentation here: https://github.com/fullcalendar/fullcalendar -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/fullcalendar.min.js"></script>\n <!-- Vector Map plugin, full documentation here: http://jvectormap.com/documentation/ -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/jquery-jvectormap.js"></script>\n <!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/nouislider.min.js"></script>\n <!-- Include a polyfill for ES6 Promises (optional) for IE11, UC Browser and Android browser support SweetAlert -->\n <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.js"></script>\n <!-- Library for adding dinamically elements -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/arrive.min.js"></script>\n <!-- Google Maps Plugin -->\n <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>\n <!-- Chartist JS -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/chartist.min.js"></script>\n <!-- Notifications Plugin -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/plugins/bootstrap-notify.js"></script>\n <!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'dashboard/scripts/material-dashboard.js?v=2.1.1" type="text/javascript"></script>\n\n\n <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n <script>\n $(document).ready(function() {\n $().ready(function() {\n $sidebar = $(\'.sidebar\');\n \n $sidebar_img_container = $sidebar.find(\'.sidebar-background\');\n \n $full_page = $(\'.full-page\');\n \n $sidebar_responsive = $(\'body > .navbar-collapse\');\n \n window_width = $(window).width();\n \n fixed_plugin_open = $(\'.sidebar .sidebar-wrapper .nav li.active a p\').html();\n \n if (window_width > 767 && fixed_plugin_open == \'Dashboard\') {\n if ($(\'.fixed-plugin .dropdown\').hasClass(\'show-dropdown\')) {\n $(\'.fixed-plugin .dropdown\').addClass(\'open\');\n }\n \n }\n \n $(\'.fixed-plugin a\').click(function(event) {\n // Alex if we click on switch, stop propagation of the event, so the dropdown will not be hide, otherwise we set the section active\n if ($(this).hasClass(\'switch-trigger\')) {\n if (event.stopPropagation) {\n event.stopPropagation();\n } else if (window.event) {\n window.event.cancelBubble = true;\n }\n }\n });\n \n $(\'.fixed-plugin .active-color span\').click(function() {\n $full_page_background = $(\'.full-page-background\');\n \n $(this).siblings().removeClass(\'active\');\n $(this).addClass(\'active\');\n \n var new_color = $(this).data(\'color\');\n \n if ($sidebar.length != 0) {\n $sidebar.attr(\'data-color\', new_color);\n }\n \n if ($full_page.length != 0) {\n $full_page.attr(\'filter-color\', new_color);\n }\n \n if ($sidebar_responsive.length != 0) {\n $sidebar_responsive.attr(\'data-color\', new_color);\n }\n });\n \n $(\'.fixed-plugin .background-color .badge\').click(function() {\n $(this).siblings().removeClass(\'active\');\n $(this).addClass(\'active\');\n \n var new_color = $(this).data(\'background-color\');\n \n if ($sidebar.length != 0) {\n $sidebar.attr(\'data-background-color\', new_color);\n }\n });\n \n $(\'.fixed-plugin .img-holder\').click(function() {\n $full_page_background = $(\'.full-page-background\');\n \n $(this).parent(\'li\').siblings().removeClass(\'active\');\n $(this).parent(\'li\').addClass(\'active\');\n \n \n var new_image = $(this).find("img").attr(\'src\');\n \n if ($sidebar_img_container.length != 0 && $(\'.switch-sidebar-image input:checked\').length != 0) {\n $sidebar_img_container.fadeOut(\'fast\', function() {\n $sidebar_img_container.css(\'background-image\', \'url("\' + new_image + \'")\');\n $sidebar_img_container.fadeIn(\'fast\');\n });\n }\n \n if ($full_page_background.length != 0 && $(\'.switch-sidebar-image input:checked\').length != 0) {\n var new_image_full_page = $(\'.fixed-plugin li.active .img-holder\').find(\'img\').data(\'src\');\n \n $full_page_background.fadeOut(\'fast\', function() {\n $full_page_background.css(\'background-image\', \'url("\' + new_image_full_page + \'")\');\n $full_page_background.fadeIn(\'fast\');\n });\n }\n \n if ($(\'.switch-sidebar-image input:checked\').length == 0) {\n var new_image = $(\'.fixed-plugin li.active .img-holder\').find("img").attr(\'src\');\n var new_image_full_page = $(\'.fixed-plugin li.active .img-holder\').find(\'img\').data(\'src\');\n \n $sidebar_img_container.css(\'background-image\', \'url("\' + new_image + \'")\');\n $full_page_background.css(\'background-image\', \'url("\' + new_image_full_page + \'")\');\n }\n \n if ($sidebar_responsive.length != 0) {\n $sidebar_responsive.css(\'background-image\', \'url("\' + new_image + \'")\');\n }\n });\n \n $(\'.switch-sidebar-image input\').change(function() {\n $full_page_background = $(\'.full-page-background\');\n \n $input = $(this);\n \n if ($input.is(\':checked\')) {\n if ($sidebar_img_container.length != 0) {\n $sidebar_img_container.fadeIn(\'fast\');\n $sidebar.attr(\'data-image\', \'#\');\n }\n \n if ($full_page_background.length != 0) {\n $full_page_background.fadeIn(\'fast\');\n $full_page.attr(\'data-image\', \'#\');\n }\n \n background_image = true;\n } else {\n if ($sidebar_img_container.length != 0) {\n $sidebar.removeAttr(\'data-image\');\n $sidebar_img_container.fadeOut(\'fast\');\n }\n \n if ($full_page_background.length != 0) {\n $full_page.removeAttr(\'data-image\', \'#\');\n $full_page_background.fadeOut(\'fast\');\n }\n \n background_image = false;\n }\n });\n \n $(\'.switch-sidebar-mini input\').change(function() {\n $body = $(\'body\');\n \n $input = $(this);\n \n if (md.misc.sidebar_mini_active == true) {\n $(\'body\').removeClass(\'sidebar-mini\');\n md.misc.sidebar_mini_active = false;\n \n $(\'.sidebar .sidebar-wrapper, .main-panel\').perfectScrollbar();\n \n } else {\n \n $(\'.sidebar .sidebar-wrapper, .main-panel\').perfectScrollbar(\'destroy\');\n \n setTimeout(function() {\n $(\'body\').addClass(\'sidebar-mini\');\n \n md.misc.sidebar_mini_active = true;\n }, 300);\n }\n \n // we simulate the window Resize so the charts will get updated in realtime.\n var simulateWindowResize = setInterval(function() {\n window.dispatchEvent(new Event(\'resize\'));\n }, 180);\n \n // we stop the simulation of Window Resize after the animations are completed\n setTimeout(function() {\n clearInterval(simulateWindowResize);\n }, 1000);\n \n });\n });\n });\n </script>\n <script>\n $(document).ready(function() {\n // Javascript method\'s body can be found in assets/js/demos.js\n md.initDashboardPageCharts();\n \n });\n </script>\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) request = context.get('request', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) def site_center(): return render_site_center(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def menu(): return render_menu(context._locals(__M_locals)) def site_right(): return render_site_right(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def site_left(): return render_site_left(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n \r\n <title>Sprint 2 — ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('</title>\r\n') __M_writer( ' <script src="/homepage/media/jquery-3.3.1.js"></script>\r\n <link href="/homepage/media/css/bootstrap.min.css" rel="Stylesheet" type="text/css">\r\n <script src="/homepage/media/js/bootstrap.min.js"></script>\r\n <link rel="icon" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/python.png">\r\n \r\n') __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\r\n </head>\r\n <body>\r\n <div class="alert alert-danger" role="alert" id="alertMessage">\r\n Site will be down tonight due to maintenance \r\n </div>\r\n <header id="header"> \r\n' ) __M_writer( ' </header>\r\n <nav class="navbar navbar-expand-lg navbar-dark bg-dark">\r\n \r\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\r\n <span class="navbar-toggler-icon"></span>\r\n </button>\r\n <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">\r\n <div class="nav-item navbar-left"><img style="padding-left: 10px; padding-right: 10px;"src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/thumbnail.png"/></div>\r\n <ul class="navbar-nav mr-4">\r\n \r\n \r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'menu'): context['self'].menu(**pageargs) __M_writer('\r\n \r\n') if request.user.is_authenticated: __M_writer( ' <li class="nav-item dropdown">\r\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n Welcome, ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( request.user.username)) __M_writer( '\r\n </a>\r\n <div class="dropdown-menu" aria-labelledby="navbarDropdown">\r\n <a class="dropdown-item" href="/account/index">Account</a>\r\n <div class="dropdown-divider"></div>\r\n <a class="dropdown-item" href="/account/logout">Logout</a>\r\n </div>\r\n </li>\r\n' ) else: __M_writer( ' <li class="nav-item"><a class="nav-link" href="/account/login">Log In</a></li>\r\n' ) __M_writer( ' \r\n \r\n </ul>\r\n \r\n </div>\r\n </nav>\r\n \r\n \r\n <main>\r\n <div id="site_center">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_center'): context['self'].site_center(**pageargs) __M_writer( '\r\n </div>\r\n \r\n <div id="site_left">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_left'): context['self'].site_left(**pageargs) __M_writer( '\r\n </div>\r\n <div id="site_right">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_right'): context['self'].site_right(**pageargs) __M_writer( '\r\n </div>\r\n </main>\r\n <footer>\r\n \r\n ' ) __M_writer( '\r\n <div class="center">\r\n © ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.today().year)) __M_writer( '\r\n </div>\r\n </footer>\r\n </body>\r\n</html>' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def navbar(): return render_navbar(context._locals(__M_locals)) def footer_content(): return render_footer_content(context._locals(__M_locals)) def top_content(): return render_top_content(context._locals(__M_locals)) def right_content(): return render_right_content(context._locals(__M_locals)) def global_content(): return render_global_content(context._locals(__M_locals)) def left_content(): return render_left_content(context._locals(__M_locals)) def middle_content(): return render_middle_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def js_link(): return render_js_link(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n ') __M_writer('\n <title>Honest Student</title>\n\n <!-- jQuery -->\n <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>\n\n <!-- Google fonts -->\n <link href="https://fonts.googleapis.com/css?family=Nanum+Pen+Script" rel="stylesheet">\n\n <!-- SVG cdn import -->\n <script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>\n\n <!-- Bootstrap CSS link -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">\n\n') __M_writer(' <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>\n\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ') __M_writer(str( django_mako_plus.links(self) )) __M_writer('\n\n </head>\n <body>\n <!-- Importing the js for facebook share button -->\n <div id="fb-root"></div>\n <script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12\';\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \'script\', \'facebook-jssdk\'));</script>\n\n\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'navbar'): context['self'].navbar(**pageargs) __M_writer('\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'global_content'): context['self'].global_content(**pageargs) __M_writer('\n\n\n <main>\n <div class="row">\n <div class="col-md-12" id="top-section">\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'top_content'): context['self'].top_content(**pageargs) __M_writer('\n </div>\n </div>\n <div class="row">\n <div class="col-md-2" id="left-section">\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'left_content'): context['self'].left_content(**pageargs) __M_writer('\n </div>\n <div class="col-md-8" id="middle-section">\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'middle_content'): context['self'].middle_content(**pageargs) __M_writer('\n </div>\n <div class="col-md-2" id="right-section">\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'right_content'): context['self'].right_content(**pageargs) __M_writer('\n </div>\n </div>\n </main>\n <footer>\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'footer_content'): context['self'].footer_content(**pageargs) __M_writer('\n </footer>\n\n <!-- Bootstrap JS files -->\n <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'js_link'): context['self'].js_link(**pageargs) __M_writer('\n </body>\n</html>\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) request = context.get('request', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) def site_title(): return render_site_title(context._locals(__M_locals)) def left_column(): return render_left_column(context._locals(__M_locals)) def navbar_login(): return render_navbar_login(context._locals(__M_locals)) def navbar_main(): return render_navbar_main(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def right_column(): return render_right_column(context._locals(__M_locals)) def center_content(): return render_center_content(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n\r\n' ) __M_writer(' <title>Sprint 1 - ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('</title>\r\n <link rel="icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/django.png"> \r\n\r\n') __M_writer(' <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer('homepage/media/jquery-3.3.1.js"></script>\r\n\r\n') __M_writer(' <link rel="stylesheet" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.0.0-dist/css/bootstrap.min.css"/>\r\n <script src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.0.0-dist/js/bootstrap.min.js"></script>\r\n \r\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer('\r\n\r\n </head>\r\n <body>\r\n') __M_writer( ' <div id="maintenance_message" class="alert alert-danger">\r\n This page is under construction...\r\n </div>\r\n\r\n <br /><br /><br />\r\n <header>\r\n' ) __M_writer( ' <div id="navbar_main">\r\n <nav class="navbar navbar-expand-lg navbar-light bg-light">\r\n' ) __M_writer( ' <div class="collapse navbar-collapse" id="navbarSupportedContent">\r\n <ul class="navbar-nav mr-auto ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'AutoGrader' else '')) __M_writer( '">\r\n <li class="nav-item"><img class="site_icon" src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/django.png"></a></li>\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'navbar_main'): context['self'].navbar_main(**pageargs) __M_writer( '\r\n </ul>\r\n <div class="dropdown">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'navbar_login'): context['self'].navbar_login(**pageargs) __M_writer( '\r\n </div> \r\n </div>\r\n </nav>\r\n </div>\r\n </header>\r\n\r\n <main>\r\n' ) __M_writer(' <div id="site_title">\r\n <h1>') if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_title'): context['self'].site_title(**pageargs) __M_writer('</h1>\r\n </div>\r\n\r\n') __M_writer(' <div id="left_column">\r\n') __M_writer(' ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'left_column'): context['self'].left_column(**pageargs) __M_writer( '\r\n </div>\r\n <div id="center_content">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'center_content'): context['self'].center_content(**pageargs) __M_writer( '\r\n </div>\r\n <div id="right_column">\r\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'right_column'): context['self'].right_column(**pageargs) __M_writer( '\r\n </div>\r\n </main>\r\n\r\n\r\n\r\n <footer>\r\n <div id="footer_main">\r\n ' ) __M_writer('\r\n <p>Copyright © ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.now().strftime('%Y'))) __M_writer( ' Sprint 1</p><br/>\r\n </div>\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def site_right(): return render_site_right(context._locals(__M_locals)) def title(): return render_title(context._locals(__M_locals)) def menu_items(): return render_menu_items(context._locals(__M_locals)) self = context.get('self', UNDEFINED) request = context.get('request', UNDEFINED) def site_center(): return render_site_center(context._locals(__M_locals)) def site_left(): return render_site_left(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) __M_writer = context.writer() __M_writer( '\n<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n\n <title>Sprint 1 — ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer(' </title>\n\n') __M_writer(' <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/jquery-3.3.1.js"></script>\n <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.2.1-dist/js/bootstrap.min.js"></script>\n <link rel="stylesheet" type="text/css" href="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bootstrap-4.2.1-dist/css/bootstrap.min.css">\n\n\n' ) __M_writer('\n <link rel="icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/favicon.ico" alt="python" />\n \n <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> -->\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self))) __M_writer( '\n\n </head>\n\n <body>\n <div id="maintenance_message" class="alert alert-danger" > Hey there. The server is going down tonight. Boo Hoo </div>\n <header id="header" >\n \n \n' ) __M_writer( ' <div>\n \n\n\n\n<nav class="navbar navbar-expand-lg navbar-light bg-light">\n <a class="navbar-brand" href="#">\n <img src="' ) __M_writer(django_mako_plus.ExpressionPostProcessor(self)(STATIC_URL)) __M_writer( 'homepage/media/bird.png" alt="bird"> \n </a>\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n <div class="collapse navbar-collapse" id="navbarNav">\n\n <ul class="navbar-nav mr-auto">\n <li class="nav-item ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'index' else '')) __M_writer( ' ">\n <a class="nav-link" href="/index/">Home <span class="sr-only">(current)</span></a>\n </li>\n <li class="nav-item ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'contact' else '')) __M_writer( ' ">\n <a class="nav-link" href="/contact/">Contact</a>\n </li>\n <li class="nav-item">\n <a class="nav-link ' ) __M_writer( django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else '')) __M_writer( ' " href="/catalog/index/">Products</a>\n </li>\n</ul>\n\n<ul class="navbar-nav ml-auto">\n <li class="nav-item dropdown" >\n \n \n' ) if request.user.is_authenticated: __M_writer( ' <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Welcome, Homer\n </a>\n <div class="dropdown-menu" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account/logout/">Logout</a>\n <a class="dropdown-item" href="/catalog/cart/">Cart</a>\n' ) else: __M_writer( ' <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n Welcome!\n </a>\n <div class="dropdown-menu" aria-labelledby="navbarDropdown">\n <a class="dropdown-item" href="/account/login/">Login</a>\n' ) __M_writer( ' <div class="dropdown-divider"></div>\n <a class="dropdown-item" href="#">Settings</a>\n </div>\n </li>\n</ul>\n\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'menu_items'): context['self'].menu_items(**pageargs) __M_writer( '\n </div>\n</nav>\n\n\n\n\n\n\n\n\n \n \n </header>\n\n <main>\n\n\n\n <div id="site_left">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_left'): context['self'].site_left(**pageargs) __M_writer( '\n </div>\n\n\n <div id="site_center">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_center'): context['self'].site_center(**pageargs) __M_writer( '\n </div>\n\n <div id="site_right">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'site_right'): context['self'].site_right(**pageargs) __M_writer( '\n </div>\n \n </main>\n\n <footer>\n ' ) __M_writer('\n © ') __M_writer( django_mako_plus.ExpressionPostProcessor(self)( datetime.now().strftime('%Y'))) __M_writer( ' \n \n \n </footer>\n \n </body>\n \n</html>\n' ) return '' finally: context.caller_stack._pop_frame()
def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) request = context.get('request', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) self = context.get('self', UNDEFINED) def menu(): return render_menu(context._locals(__M_locals)) def site_right(): return render_site_right(context._locals(__M_locals)) def site_left(): return render_site_left(context._locals(__M_locals)) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def site_center(): return render_site_center(context._locals(__M_locals)) def header_maintenance(): return render_header_maintenance(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('\r\n<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n <head>\r\n\r\n <title>Sprint 1 – ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer('</title>\r\n\r\n') __M_writer(' <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/jquery-3.3.1.js"></script>\r\n <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/bootstrap.bundle.js"></script>\r\n <script src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/popper.min.js"></script>\r\n <link rel="stylesheet" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/bootstrap.css">\r\n\r\n') __M_writer(' <script src="/django_mako_plus/dmp-common.min.js"></script>\r\n <!--this command put everything back together: base.css, base.js which are in a different folder, just to keep the code clean -->\r\n ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( django_mako_plus.links(self) )) __M_writer('\r\n <link rel="icon" href="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/python.png">\r\n\r\n </head>\r\n <body>\r\n <div id="maintenance_message" class="alert alert-danger hidden">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'header_maintenance'): context['self'].header_maintenance(**pageargs) __M_writer('\r\n </div>\r\n <header id="header"> \r\n <nav class="navbar navbar-expand-lg navbar-dark">\r\n <img src="') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( STATIC_URL )) __M_writer('homepage/media/python.png" alt="python" width="40" height="40"/>\r\n <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">\r\n <span class="navbar-toggler-icon"></span>\r\n </button>\r\n <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">\r\n <ul class="navbar-nav mr-4">\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'index' else '' )) __M_writer('"><a class="nav-link" href="/">Home</a></li>\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'contact' else '' )) __M_writer('"><a class="nav-link" href="/contact">Contact</a></li>\r\n <li class="nav-item ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( 'active' if request.dmp.page == 'about' else '' )) __M_writer('"><a class="nav-link" href="#">About</a></li>\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'menu'): context['self'].menu(**pageargs) __M_writer('\r\n') if request.user.is_authenticated: __M_writer(' <li class="nav-item dropdown">\r\n <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n Welcome. User\r\n </a>\r\n <div class="dropdown-menu" aria-labelledby="navbarDropdown">\r\n <a class="dropdown-item" href="#">Account</a>\r\n <a class="dropdown-item" href="#">Porfile</a>\r\n <div class="dropdown-divider"></div>\r\n <a class="dropdown-item" href="/account/logout">LogOut</a>\r\n </div>\r\n </li>\r\n') else: __M_writer(' <li class="nav-item"><a class="nav-link" href="/account/login/">Login</a></li>\r\n') __M_writer(' </ul>\r\n </div>\r\n </nav>\r\n </header>\r\n\r\n <main>\r\n <div id="site_left">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'site_left'): context['self'].site_left(**pageargs) __M_writer('\r\n </div>\r\n <div id="site_center">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'site_center'): context['self'].site_center(**pageargs) __M_writer('\r\n </div>\r\n <div id="site_right">\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'site_right'): context['self'].site_right(**pageargs) __M_writer('\r\n </div>\r\n </main>\r\n\r\n <footer>\r\n <br>\r\n <div class="center_text">©Copyright ') __M_writer(django_mako_plus.ExpressionPostProcessor(self)( datetime.datetime.today().year)) __M_writer('. All rights reserved</div>\r\n </footer>\r\n\r\n </body>\r\n</html>\r\n') __M_writer('\r\n') return '' finally: context.caller_stack._pop_frame()
def render_body(context, **pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def middle_content(): return render_middle_content(context._locals(__M_locals)) self = context.get('self', UNDEFINED) STATIC_URL = context.get('STATIC_URL', UNDEFINED) def title(): return render_title(context._locals(__M_locals)) def left_content(): return render_left_content(context._locals(__M_locals)) def footer_content(): return render_footer_content(context._locals(__M_locals)) def right_content(): return render_right_content(context._locals(__M_locals)) def meta_description(): return render_meta_description(context._locals(__M_locals)) def top_content(): return render_top_content(context._locals(__M_locals)) __M_writer = context.writer() __M_writer( '<!DOCTYPE html>\n<html>\n <meta charset="UTF-8">\n <head>\n <!-- Global site tag (gtag.js) - Google Analytics -->\n <script async src="https://www.googletagmanager.com/gtag/js?id=UA-100806632-3"></script>\n <script>\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag(\'js\', new Date());\n\n gtag(\'config\', \'UA-100806632-3\');\n </script>\n ' ) __M_writer('\n ') __M_writer('\n ') catagories = hmod.Category.objects.all().order_by('name') __M_locals_builtin_stored = __M_locals_builtin() __M_locals.update( __M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['catagories'] if __M_key in __M_locals_builtin_stored])) __M_writer('\n <title>\n ') if 'parent' not in context._data or not hasattr( context._data['parent'], 'title'): context['self'].title(**pageargs) __M_writer( ' - Duck Code\n </title>\n <meta name="description" content="' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'meta_description'): context['self'].meta_description(**pageargs) __M_writer( '">\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width,initial-scale=1.0">\n <!-- Bootstrap CSS link -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">\n\n' ) __M_writer( ' <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" ></script>\n\n' ) __M_writer( ' <script src="/django_mako_plus/dmp-common.min.js"></script>\n ' ) __M_writer(str(django_mako_plus.links(self))) __M_writer( '\n\n </head>\n <body>\n<nav id=\'nav\' class="navbar navbar-toggleable-sm navbar-light">\n <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n <a class="navbar-brand" href="/">\n <img id=\'duck_logo\' src="' ) __M_writer(str(STATIC_URL)) __M_writer( 'home/media/img/duck_logo.svg" />\n </a>\n <div class="collapse navbar-collapse" id="navbarsExampleDefault">\n <ul class="navbar-nav mr-auto">\n <li class="nav-item">\n <a class="nav-link" href="/category/recent">All Posts</a>\n </li>\n <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Blog Categories</a>\n <div class="dropdown-menu">\n' ) for c in catagories: __M_writer(' <a class="dropdown-item" href="/category/') __M_writer(str(c.url)) __M_writer('">') __M_writer(str(c.name)) __M_writer('</a>\n') __M_writer( ' </div>\n </li>\n <li class="nav-item">\n <a class="nav-link" href="/about">About Me</a>\n </li>\n </ul>\n </div>\n</nav>\n\n\n\n <main>\n <div class="row">\n <div class="col-md-12" id="top-section">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'top_content'): context['self'].top_content(**pageargs) __M_writer( '\n </div>\n </div>\n <div class="row">\n <div class="col-md-2" id="left-section">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'left_content'): context['self'].left_content(**pageargs) __M_writer( '\n </div>\n <div class="col-md-8" id="middle-section">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'middle_content'): context['self'].middle_content(**pageargs) __M_writer( '\n </div>\n <div class="col-md-2" id="right-section">\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'right_content'): context['self'].right_content(**pageargs) __M_writer( '\n </div>\n </div>\n </main>\n <footer>\n ' ) if 'parent' not in context._data or not hasattr( context._data['parent'], 'footer_content'): context['self'].footer_content(**pageargs) __M_writer( '\n <p> </p>\n </footer>\n\n <!-- Bootstrap JS files -->\n <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>\n <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>\n </body>\n</html>\n' ) return '' finally: context.caller_stack._pop_frame()