Date: Thu, 23 Aug 2012 22:26:06 +0000 From: tzabal@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r240782 - in soc2012/tzabal/server-side/akcrs-website: . akcrs/templates Message-ID: <20120823222606.A4B1A1065676@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tzabal Date: Thu Aug 23 22:26:06 2012 New Revision: 240782 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=240782 Log: Add the mako templates: change_bugstate.mako, check_for_user.mako and evaluate_report.mako. Added: soc2012/tzabal/server-side/akcrs-website/akcrs/templates/change_bugstate.mako soc2012/tzabal/server-side/akcrs-website/akcrs/templates/check_for_user.mako Modified: soc2012/tzabal/server-side/akcrs-website/akcrs/templates/base.mako soc2012/tzabal/server-side/akcrs-website/setup.py Modified: soc2012/tzabal/server-side/akcrs-website/akcrs/templates/base.mako ============================================================================== --- soc2012/tzabal/server-side/akcrs-website/akcrs/templates/base.mako Thu Aug 23 22:21:28 2012 (r240781) +++ soc2012/tzabal/server-side/akcrs-website/akcrs/templates/base.mako Thu Aug 23 22:26:06 2012 (r240782) @@ -12,7 +12,7 @@ <h1><%block name="headerleft"/></h1> </div> <div id="header-right"> - <%include file="checkforuser.mako"/> + <%include file="check_for_user.mako"/> </div> </div> <div id="menu"> Added: soc2012/tzabal/server-side/akcrs-website/akcrs/templates/change_bugstate.mako ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2012/tzabal/server-side/akcrs-website/akcrs/templates/change_bugstate.mako Thu Aug 23 22:26:06 2012 (r240782) @@ -0,0 +1,11 @@ +<%inherit file="base.mako"/> + +<%block name="headerleft"> +Change state for the Kernel Bug with ID ${request.matchdict['id']} +</%block> + +% if is_developer and not failed_attempt: +<p>The state of the bug has changed successfully.</p> +% else: +<p>You are not allowed to view this page.</p> +% endif \ No newline at end of file Added: soc2012/tzabal/server-side/akcrs-website/akcrs/templates/check_for_user.mako ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2012/tzabal/server-side/akcrs-website/akcrs/templates/check_for_user.mako Thu Aug 23 22:26:06 2012 (r240782) @@ -0,0 +1,8 @@ +% if not logged_in: +<a href="/login">Login</a> +% else: + <% + userid = logged_in.replace('@', '').replace('.', '') + %> +<a href="/account">My Account</a> | <a href="/logout">Logout</a> +% endif \ No newline at end of file Modified: soc2012/tzabal/server-side/akcrs-website/setup.py ============================================================================== --- soc2012/tzabal/server-side/akcrs-website/setup.py Thu Aug 23 22:21:28 2012 (r240781) +++ soc2012/tzabal/server-side/akcrs-website/setup.py Thu Aug 23 22:26:06 2012 (r240782) @@ -16,19 +16,19 @@ 'waitress', ] -setup(name='akcrs', - version='0.0', - description='akcrs', +setup(name='akcrs-website', + version='0.1', + description='The dynamic website of the Automated Kernel Crash Reporting System', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", - "Framework :: Pylons", + "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], - author='', - author_email='', - url='', + author='Tzanetos Balitsaris', + author_email='tzabal@freebsd.org', + url='http://wiki.freebsd.org/SummerOfCode2012/AutomatedKernelCrashReportingSystem', keywords='web wsgi bfg pylons pyramid', packages=find_packages(), include_package_data=True,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120823222606.A4B1A1065676>