-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
659 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "app/base.html" %} | ||
{% block title %}Setting/Image{% endblock %} | ||
{% block content %} | ||
<h1>Setting/Image</h1> | ||
<div> | ||
{{ form()|safe }} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
from __future__ import division | ||
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound | ||
name = '\\base.html' | ||
|
||
def root(context, environment=environment): | ||
l_request = context.resolve('request') | ||
if 0: yield None | ||
yield u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n\n' | ||
included_template = environment.get_template('auth/macros.html', '\\base.html').make_module(context.parent, True) | ||
l_render_loginbox = getattr(included_template, 'render_loginbox', missing) | ||
if l_render_loginbox is missing: | ||
l_render_loginbox = environment.undefined("the template %r (imported on line 3 in '\\\\base.html') does not export the requested name 'render_loginbox'" % included_template.__name__, name='render_loginbox') | ||
context.vars['render_loginbox'] = l_render_loginbox | ||
context.exported_vars.discard('render_loginbox') | ||
yield u'\n\n<html>\n <head>\n ' | ||
for event in context.blocks['head'][0](context): | ||
yield event | ||
yield u'\n </head>\n <body>\n ' | ||
if context.call(environment.getattr(environment.getattr(l_request, 'user'), 'is_anonymous')): | ||
if 0: yield None | ||
yield u'\n %s\n ' % ( | ||
escape(context.call(l_render_loginbox)), | ||
) | ||
else: | ||
if 0: yield None | ||
yield u'\n <div id="menu">\n ' | ||
for event in context.blocks['menu'][0](context): | ||
yield event | ||
yield u'\n </div>\n <div id="content">\n ' | ||
for event in context.blocks['content'][0](context): | ||
yield event | ||
yield u'\n </div>\n ' | ||
yield u'\n </body>\n</html>' | ||
|
||
def block_content(context, environment=environment): | ||
if 0: yield None | ||
yield u'\n \n ' | ||
|
||
def block_menu(context, environment=environment): | ||
l_create_logout_url = context.resolve('create_logout_url') | ||
l_request = context.resolve('request') | ||
if 0: yield None | ||
yield u'\n <ul>\n <li><a href="/">My Page</a>\n <li><a href="/bbs">BBS</a>\n <li>Blog\n <ul>\n <li><a href="/%s/blog">My Blog</a>\n <li><a href="/blog/manage">Manage Entries</a>\n <li><a href="/blog/create">Create a Entry</a>\n </ul>\n <li><a href="/uploader">Uploader</a>\n <li>Setting\n <ul>\n <li><a href="/manage-profile">Profile</a>\n <li><a href="/setting/image">Image</a>\n </ul>\n <li><a href="%s">logout</a>\n </ul>\n ' % ( | ||
escape(environment.getattr(l_request, 'user')), | ||
escape(context.call(l_create_logout_url)), | ||
) | ||
|
||
def block_head(context, environment=environment): | ||
if 0: yield None | ||
yield u'\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n \t <title>' | ||
for event in context.blocks['title'][0](context): | ||
yield event | ||
yield u'</title>\n ' | ||
|
||
def block_title(context, environment=environment): | ||
if 0: yield None | ||
|
||
blocks = {'content': block_content, 'menu': block_menu, 'head': block_head, 'title': block_title} | ||
debug_info = '1=8&3=9&7=16&10=18&13=19&14=22&15=26&17=27&35=29&38=30&40=32&42=33&38=35&17=39&23=44&33=45&7=48&9=51' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from __future__ import division | ||
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound | ||
name = '\\bbs\\index.html' | ||
|
||
def root(context, environment=environment): | ||
parent_template = None | ||
if 0: yield None | ||
parent_template = environment.get_template('app/base.html', '\\bbs\\index.html') | ||
for name, parent_block in parent_template.blocks.iteritems(): | ||
context.blocks.setdefault(name, []).append(parent_block) | ||
for event in parent_template.root_render_func(context): | ||
yield event | ||
|
||
def block_content(context, environment=environment): | ||
l_paginator = context.resolve('paginator') | ||
l_threads = context.resolve('threads') | ||
l_form = context.resolve('form') | ||
t_1 = environment.filters['safe'] | ||
if 0: yield None | ||
yield u'\n <div>\n %s\n </div>\n <table>\n <tr><th>Auther</th><th>Title</th><th>Reply</th><th>Updated</th><th>Created</th></tr>\n ' % ( | ||
escape(t_1(context.call(l_form))), | ||
) | ||
l_thread = missing | ||
for l_thread in environment.getattr(l_threads, 'object_list'): | ||
if 0: yield None | ||
yield u'\n <tr>\n <td>%s</td>\n <td><a href="/bbs/%s">%s</a></td>\n <td>%s</td>\n <td>%s</td>\n <td>%s</td>\n </tr>\n ' % ( | ||
escape(environment.getattr(environment.getattr(l_thread, 'user'), 'user_name')), | ||
escape(context.call(environment.getattr(context.call(environment.getattr(l_thread, 'key')), 'id'))), | ||
escape(environment.getattr(l_thread, 'title')), | ||
escape(context.call(environment.getattr(environment.getattr(l_thread, 'comments'), 'count'))), | ||
escape(context.call(environment.getattr(l_thread, 'view_datetime'), 'updated')), | ||
escape(context.call(environment.getattr(l_thread, 'view_datetime'), 'created')), | ||
) | ||
l_thread = missing | ||
yield u'\n </table>\n %s\n' % ( | ||
escape(t_1(l_paginator)), | ||
) | ||
|
||
def block_title(context, environment=environment): | ||
if 0: yield None | ||
yield u'BBS Page - app' | ||
|
||
blocks = {'content': block_content, 'title': block_title} | ||
debug_info = '1=8&3=14&5=21&9=24&11=27&12=28&13=30&14=31&15=32&17=35&19=36&2=39' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from __future__ import division | ||
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound | ||
name = '\\bbs\\thread.html' | ||
|
||
def root(context, environment=environment): | ||
parent_template = None | ||
if 0: yield None | ||
parent_template = environment.get_template('app/base.html', '\\bbs\\thread.html') | ||
for name, parent_block in parent_template.blocks.iteritems(): | ||
context.blocks.setdefault(name, []).append(parent_block) | ||
for event in parent_template.root_render_func(context): | ||
yield event | ||
|
||
def block_content(context, environment=environment): | ||
l_form = context.resolve('form') | ||
l_thread = context.resolve('thread') | ||
t_1 = environment.filters['safe'] | ||
if 0: yield None | ||
yield u'\n <h1>%s</h1>\n <div>\n <dl class="info">\n <dt>Auther</dt><dd>%s</dd>\n <dt>Created</dt><dd>%s</dd>\n </dl>\n <div class="text">%s</div>\n </div>\n ' % ( | ||
escape(environment.getattr(l_thread, 'title')), | ||
escape(environment.getattr(environment.getattr(l_thread, 'user'), 'user_name')), | ||
escape(context.call(environment.getattr(l_thread, 'view_datetime'), 'created')), | ||
escape(t_1(context.call(environment.getattr(l_thread, 'view_text')))), | ||
) | ||
l_comment = missing | ||
for l_comment in environment.getattr(l_thread, 'comments'): | ||
if 0: yield None | ||
yield u'\n <div>\n <dl class="info">\n <dt>Auther</dt><dd>%s</dd>\n <dt>Created</dt><dd>%s</dd>\n </dl>\n <div class="text">%s</div>\n ' % ( | ||
escape(environment.getattr(environment.getattr(l_comment, 'user'), 'user_name')), | ||
escape(context.call(environment.getattr(l_comment, 'view_datetime'), 'created')), | ||
escape(t_1(context.call(environment.getattr(l_comment, 'view_text')))), | ||
) | ||
l_comment = missing | ||
yield u'\n <div>\n %s\n </div>\n' % ( | ||
escape(t_1(context.call(l_form))), | ||
) | ||
|
||
def block_title(context, environment=environment): | ||
l_thread = context.resolve('thread') | ||
if 0: yield None | ||
yield escape(environment.getattr(l_thread, 'title')) | ||
yield u' - BBS Thread Page - app' | ||
|
||
blocks = {'content': block_content, 'title': block_title} | ||
debug_info = '1=8&3=14&4=20&7=21&8=22&10=23&12=26&15=29&16=30&18=31&19=34&21=35&2=38' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from __future__ import division | ||
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound | ||
name = '\\blog\\create.html' | ||
|
||
def root(context, environment=environment): | ||
parent_template = None | ||
if 0: yield None | ||
parent_template = environment.get_template('app/base.html', '\\blog\\create.html') | ||
for name, parent_block in parent_template.blocks.iteritems(): | ||
context.blocks.setdefault(name, []).append(parent_block) | ||
for event in parent_template.root_render_func(context): | ||
yield event | ||
|
||
def block_content(context, environment=environment): | ||
l_form = context.resolve('form') | ||
t_1 = environment.filters['safe'] | ||
if 0: yield None | ||
yield u'\n<h1>Create a Blog Entry</h1>\n<div>\n %s\n</div>\n' % ( | ||
escape(t_1(context.call(l_form))), | ||
) | ||
|
||
def block_title(context, environment=environment): | ||
if 0: yield None | ||
yield u'Create a Blog Entry - app' | ||
|
||
blocks = {'content': block_content, 'title': block_title} | ||
debug_info = '1=8&3=14&6=19&2=22' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from __future__ import division | ||
from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, TemplateNotFound | ||
name = '\\blog\\delete.html' | ||
|
||
def root(context, environment=environment): | ||
parent_template = None | ||
if 0: yield None | ||
parent_template = environment.get_template('app/base.html', '\\blog\\delete.html') | ||
for name, parent_block in parent_template.blocks.iteritems(): | ||
context.blocks.setdefault(name, []).append(parent_block) | ||
for event in parent_template.root_render_func(context): | ||
yield event | ||
|
||
def block_content(context, environment=environment): | ||
l_entry = context.resolve('entry') | ||
t_1 = environment.filters['safe'] | ||
if 0: yield None | ||
yield u'\n <h1>Delete a Blog Entry</h1>\n <div id="check-delete">\n <dl>\n <dt>Title\n <dd>%s\n <dt>Text\n <dd>%s\n </dl>\n </div>\n <div>\n <p>Do you delete this Entry ?</p>\n <ul>\n <li><a href="/blog/delete/%s">Yes</a>\n <li><a href="/blog/manage">No</a>\n </ul>\n </div>\n' % ( | ||
escape(environment.getattr(l_entry, 'title')), | ||
escape(t_1(environment.getattr(l_entry, 'text'))), | ||
escape(context.call(environment.getattr(context.call(environment.getattr(l_entry, 'key')), 'id'))), | ||
) | ||
|
||
def block_title(context, environment=environment): | ||
if 0: yield None | ||
yield u'Delete a Blog Entry - app' | ||
|
||
blocks = {'content': block_content, 'title': block_title} | ||
debug_info = '1=8&3=14&8=19&10=20&16=21&2=24' |
Oops, something went wrong.