[smolder-commits] SF.net SVN: smolder: [321] trunk
Brought to you by:
michael_peters
From: <mic...@us...> - 2006-07-27 21:50:37
|
Revision: 321 Author: michael_peters Date: 2006-07-26 14:04:20 -0700 (Wed, 26 Jul 2006) ViewCVS: http://svn.sourceforge.net/smolder/?rev=321&view=rev Log Message: ----------- adding initial public projects work and minor tweaks to styles, etc Modified Paths: -------------- trunk/htdocs/style/style.css trunk/t/admin_devs.t trunk/t/admin_projs.t trunk/t/dev_projs.t trunk/templates/Admin/Developers/details.tmpl trunk/templates/Admin/Developers/list.tmpl trunk/templates/Admin/Projects/details.tmpl trunk/templates/Admin/Projects/developers.tmpl trunk/templates/Admin/Projects/list.tmpl trunk/templates/Developer/Projects/add_report.tmpl trunk/templates/Developer/Projects/smoke_report_details.tmpl trunk/templates/Developer/Projects/smoke_reports.tmpl trunk/templates/Developer/Projects/smoke_reports_nav.tmpl trunk/templates/wrapper.tmpl Added Paths: ----------- trunk/lib/Smolder/Control/Public/Projects.pm trunk/templates/Public/Projects/ trunk/templates/Public/Projects/details.tmpl trunk/templates/Public/Projects/show_all.tmpl trunk/templates/Public/Projects/smoke_report.tmpl trunk/templates/Public/Projects/smoke_reports.tmpl Property Changed: ---------------- trunk/ Property changes on: trunk ___________________________________________________________________ Name: svk:merge - 6cb60ec2-19fc-4f48-ba02-516b4c84136d:/local/smolder:13247 + 6cb60ec2-19fc-4f48-ba02-516b4c84136d:/local/smolder:14876 Modified: trunk/htdocs/style/style.css =================================================================== --- trunk/htdocs/style/style.css 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/htdocs/style/style.css 2006-07-26 21:04:20 UTC (rev 321) @@ -18,13 +18,18 @@ color: #555555; padding: 0px; margin: 0px; + font-size: 18pt; } h2 { color: #FFFFFF; background-color: #555555; + padding: 0px; + margin: 0px; + margin-bottom: 6px; padding-left: 5px; border: 1px solid #333333; + font-size: 15pt; } h3 { Added: trunk/lib/Smolder/Control/Public/Projects.pm =================================================================== --- trunk/lib/Smolder/Control/Public/Projects.pm (rev 0) +++ trunk/lib/Smolder/Control/Public/Projects.pm 2006-07-26 21:04:20 UTC (rev 321) @@ -0,0 +1,79 @@ +package Smolder::Control::Public::Projects; +use strict; +use base 'Smolder::Control::Developer::Projects'; +use Smolder::DB; +use Smolder::DB::Project; +use HTML::FillInForm; + +=head1 NAME + +Smolder::Control::Public::Projects + +=head1 DESCRIPTION + +Controller module for public projects. Inherits from +L<Smolder::Control::Developer::Projects>, but puts restrictions +on what non-developer public users can do. + +=cut + +sub setup { + my $self = shift; + $self->start_mode('show_all'); + $self->run_modes( + [ + qw( + show_all + details + smoke_reports + smoke_report + report_details + forbidden + ) + ] + ); +} + +=head1 RUN MODES + +=cut + +sub cgiapp_prerun { + my $self = shift; + my $id = $self->param('id'); + if( $id ) { + my $proj = Smolder::DB::Project->retrieve($id); + if( $proj && ! $proj->public ) { + $self->prerun_mode('forbidden'); + } else { + $self->param(project => $proj); + } + } +} + +sub show_all { + my $self = shift; + my @projs = Smolder::DB::Project->search(public => 1); + + return $self->tt_process({ projects => \@projs}); +} + +sub details { + my $self = shift; + my $proj = $self->param('project'); + if( $proj ) { + return $self->tt_process({project => $proj }); + } else { + return $self->error_message('That project does not exist!'); + } +} + +# used by the templates to see if the controller is public +sub public { 1 }; + +sub forbidden { + my $self = shift; + return $self->error_message('This is not a public project'); +} + +1; Modified: trunk/t/admin_devs.t =================================================================== --- trunk/t/admin_devs.t 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/t/admin_devs.t 2006-07-26 21:04:20 UTC (rev 321) @@ -10,7 +10,7 @@ use Smolder::Mech; if (is_apache_running) { - plan( tests => 64 ); + plan( tests => 65 ); } else { plan( skip_all => 'Smolder apache not running' ); } @@ -34,13 +34,14 @@ # 1 use_ok('Smolder::Control::Admin::Developers'); -# 2..4 +# 2..5 $mech->login( username => $admin->username, password => $pw ); ok( $mech->success ); $mech->get_ok($url); -$mech->content_contains('Admin - Developers'); +$mech->content_contains('Admin'); +$mech->content_contains('Developers'); -# 5..26 +# 6..27 # add { # empty form @@ -88,7 +89,7 @@ END { $dev->delete() if ($dev) } } -# 27..30 +# 28..31 # details { $mech->get_ok( $url . "/details/$dev" ); @@ -97,7 +98,7 @@ $mech->content_contains( $dev->email ); } -# 31..51 +# 32..52 # edit { $mech->get_ok("$url/list"); @@ -143,7 +144,7 @@ $mech->content_lacks( $data{fname} ); } -# 52..54 +# 53..55 # reset_pw { $mech->get_ok("$url/list"); @@ -153,7 +154,7 @@ isnt( $dev->password, db_field_value( 'developer', 'password', $dev->id ) ); } -# 55..59 +# 56..60 # list { $mech->get_ok("$url/list"); @@ -163,7 +164,7 @@ $mech->follow_link_ok( { text => '[Edit]', n => -1 } ); } -# 60..64 +# 61..65 # delete { $mech->get_ok("$url/list"); Modified: trunk/t/admin_projs.t =================================================================== --- trunk/t/admin_projs.t 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/t/admin_projs.t 2006-07-26 21:04:20 UTC (rev 321) @@ -13,7 +13,7 @@ use Smolder::Mech; if (is_apache_running) { - plan( tests => 85 ); + plan( tests => 86 ); } else { plan( skip_all => 'Smolder apache not running' ); } @@ -33,13 +33,14 @@ # 1 use_ok('Smolder::Control::Admin::Projects'); -# 2..4 +# 2..5 $mech->login(username => $admin->username, password => $pw); ok( $mech->success ); $mech->get_ok($url); -$mech->content_contains('Admin - Projects'); +$mech->content_contains('Admin'); +$mech->content_contains('Projects'); -# 5..19 +# 6..20 # add { # empty form @@ -87,7 +88,7 @@ END { $proj->delete() if ($proj) }; # make sure it's not left over after the tests } -# 20..23 +# 21..24 # details { $mech->get_ok( "$url/details/$proj" ); @@ -96,7 +97,7 @@ $mech->content_contains( $proj->public ? 'Yes' : 'No' ); } -# 24..39 +# 25..40 # edit { $mech->follow_link_ok( { text => 'Edit' } ); @@ -140,7 +141,7 @@ $mech->content_lacks('No'); } -# 40..44 +# 41..45 # list { $mech->follow_link_ok( { text => 'All Projects' } ); @@ -150,7 +151,7 @@ $mech->follow_link_ok( { text => '[Edit]', n => -1 } ); } -# 45..80 +# 46..81 # add_developer, change_admins and remove_developer { # first 'add_developer' @@ -249,14 +250,14 @@ $mech->content_contains( $dev3->username ); } -# 81..85 +# 82..86 # delete { $mech->follow_link_ok( { text => 'All Projects' } ); ok( $mech->form_name("delete_$proj") ); $mech->submit(); ok( $mech->success ); - $mech->content_contains('Project List'); + $mech->content_contains('Projects'); $mech->content_lacks( $proj->name ); } Modified: trunk/t/dev_projs.t =================================================================== --- trunk/t/dev_projs.t 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/t/dev_projs.t 2006-07-26 21:04:20 UTC (rev 321) @@ -16,7 +16,7 @@ use File::Spec::Functions qw(catfile); if (is_apache_running) { - plan( tests => 83 ); + plan( tests => 85 ); } else { plan( skip_all => 'Smolder apache not running' ); } @@ -59,7 +59,7 @@ $mech->content_contains( $proj2->name ); } -# 10..43 +# 10..44 # add_report and process_add_report { my $proj1 = _get_proj($proj1_id); @@ -108,7 +108,8 @@ ); $mech->submit(); ok( $mech->success ); - $mech->content_contains( $proj1->name . ' - Recent Smoke Reports' ); + $mech->content_contains($proj1->name); + $mech->content_contains('Recent Smoke Reports'); # make sure it's in the db $proj1 = _get_proj($proj1_id); @@ -126,7 +127,7 @@ is( $report->total, 67 ); } -# 44..57 +# 45..59 # smoke_reports { my $proj1 = _get_proj($proj1_id); @@ -139,7 +140,8 @@ END { delete_smoke_reports() } $mech->get_ok("/app/developer_projects/smoke_reports/$proj1"); - $mech->content_contains( $proj1->name . ' - Recent Smoke Reports' ); + $mech->content_contains($proj1->name); + $mech->content_contains('Recent Smoke Reports'); # only 5 per page by default $mech->content_like(qr/(Added .*){5}/s); @@ -178,7 +180,7 @@ $mech->content_unlike(qr/(Added .*){11}/s); } -# 58..66 +# 60..68 # report_details { my $proj1 = _get_proj($proj1_id); @@ -198,7 +200,7 @@ ok( $mech->ct, 'text/plain' ); } -# 67..79 +# 69..81 # smoke_report_validity { my $proj1 = _get_proj($proj1_id); @@ -243,7 +245,7 @@ ok( !$report->invalid ); } -# 79..83 +# 82..85 # single smoke_report { my $proj1 = _get_proj($proj1_id); Modified: trunk/templates/Admin/Developers/details.tmpl =================================================================== --- trunk/templates/Admin/Developers/details.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Admin/Developers/details.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,4 +1,4 @@ -[% SET page_title = "Admin - Developers" %] +[% SET page_title = "Developers" %] <h2>Details of '[% developer.username %]'</h2> Modified: trunk/templates/Admin/Developers/list.tmpl =================================================================== --- trunk/templates/Admin/Developers/list.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Admin/Developers/list.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,4 +1,4 @@ -[% SET page_title = "Admin - Developers" %] +[% SET page_title = "Admin" %] <h2>Developers</h2> Modified: trunk/templates/Admin/Projects/details.tmpl =================================================================== --- trunk/templates/Admin/Projects/details.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Admin/Projects/details.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,4 +1,4 @@ -[% SET page_title = "Admin - Projects" %] +[% SET page_title = "Admin" %] <h2>[% project.name %]</h2> @@ -33,8 +33,13 @@ <tr> <td valign="top"><label>Project Admin(s)</label></td> <td> - [% FOREACH admin IN project.admins %] - <a href="/app/admin_developers/details/[% admin.id %]">[% admin.username | html %]</a>[% UNLESS loop.last %],[% END %] + [% SET admins = project.admins %] + [% IF admins %] + [% FOREACH admin IN admins %] + <a href="/app/admin_developers/details/[% admin.id %]">[% admin.username | html %]</a>[% UNLESS loop.last %],[% END %] + [% END %] + [% ELSE %] + <em>none</em> [% END %] </td> </tr> @@ -42,7 +47,8 @@ <tr class="even"> <td valign="top"><label>Developers</label></td> <td valign="top"> - [% IF project.developers %] + [% SET devs = project.developers %] + [% IF devs %] [% FOREACH developer IN project.developers %] <a href="/app/admin_developers/details/[% developer.id %]">[% developer.username | html %]</a>[% UNLESS loop.last() %],[% END %] [% END %] Modified: trunk/templates/Admin/Projects/developers.tmpl =================================================================== --- trunk/templates/Admin/Projects/developers.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Admin/Projects/developers.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,4 +1,4 @@ -[% SET page_title = 'Admin - Projects' %] +[% SET page_title = 'Admin' %] <link rel="stylesheet" type="text/css" href="/style/project_developers.css" /> Modified: trunk/templates/Admin/Projects/list.tmpl =================================================================== --- trunk/templates/Admin/Projects/list.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Admin/Projects/list.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,6 +1,6 @@ -[% SET page_title = "Admin - Projects" %] +[% SET page_title = "Admin" %] -<h2>Project List</h2> +<h2>Projects</h2> <div class="sub_menu"> <a class="sub_menu" href="/app/admin_projects/developers">Add Developers to Projects</a> Modified: trunk/templates/Developer/Projects/add_report.tmpl =================================================================== --- trunk/templates/Developer/Projects/add_report.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Developer/Projects/add_report.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,9 +1,7 @@ [% SET page_title = 'New Smoke Report' %] -<div id="add_report_[% project.id %]" class="boxed"> +<h2>[% project.name | html %]</h2> -<h2>[% project.name %]</h2> - <div class="sub_menu"> <a class="sub_menu" href="/app/developer_projects/smoke_reports/[% project.id %]">Most Recent Reports</a> <a class="sub_menu" href="/app/developer_graphs/start/[% project.id %]">Progress Graphs</a> @@ -12,6 +10,8 @@ [% END %] </div> +<div "add_report_[% project.id %]" class="boxed"> + [% INCLUDE form_header.tmpl %] <form action="/app/developer_projects/process_add_report/[% project.id %]" method="post" enctype="multipart/form-data" name="add_report"> Modified: trunk/templates/Developer/Projects/smoke_report_details.tmpl =================================================================== --- trunk/templates/Developer/Projects/smoke_report_details.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Developer/Projects/smoke_report_details.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -43,14 +43,14 @@ <a class="dead_button" title="Details have been purged">YAML</a> [% ELSE %] <a class="button smoke_report_window" title="HTML test report" - href="/app/developer_projects/report_details/[% report.id %]/html">HTML</a> + href="/app/[% IF c.public %]public[% ELSE %]developer[% END %]_projects/report_details/[% report.id %]/html">HTML</a> <a class="button smoke_report_window" title="XML test report" - href="/app/developer_projects/report_details/[% report.id %]/xml">XML</a> + href="/app/[% IF c.public %]public[% ELSE %]developer[% END %]_projects/report_details/[% report.id %]/xml">XML</a> <a class="button smoke_report_window" title="YAML test report" - href="/app/developer_projects/report_details/[% report.id %]/yaml">YAML</a> + href="/app/[% IF c.public %]public[% ELSE %]developer[% END %]_projects/report_details/[% report.id %]/yaml">YAML</a> [% END %] <div style="position: absolute; margin-top: 15px;"> - [% IF project.is_admin(c.developer) %] + [% IF ! public && project.is_admin(c.developer) %] [% IF report.invalid %] <a class="button popup_form" href="#" id="valid_form_[% report.id %]_trigger">Mark As Valid</a> <img src="[% c.static_url('/images/indicator.gif') %]" style="display:none" Modified: trunk/templates/Developer/Projects/smoke_reports.tmpl =================================================================== --- trunk/templates/Developer/Projects/smoke_reports.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Developer/Projects/smoke_reports.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,6 +1,12 @@ -[% SET page_title = project.name _ ' - Recent Smoke Reports' %] +[% SET page_title = 'Recent Smoke Reports' %] [% SET reports = project.all_reports('limit', limit, 'offset', offset, 'category', category) %] +<h2>[% project.name | html %]</h2> + +[% IF reports %] + [% PROCESS Developer/Projects/smoke_reports_nav.tmpl %] +[% END %] + <div class="sub_menu"> <a class="sub_menu" href="/app/developer_projects/add_report/[% project.id %]">Add Smoke Report</a> <a class="sub_menu" href="/app/developer_graphs/start/[% project.id %]">Progress Graphs</a> @@ -10,8 +16,7 @@ </div> [% IF reports %] -[% PROCESS Developer/Projects/smoke_reports_nav.tmpl %] -<div class="fake_accordion" id="accordion_reports" style="margin-top: 25px"> +<div class="fake_accordion" id="accordion_reports"> [% FOREACH report IN reports %] <div class="panel" id="smoke_test_[% report.id %]"> [% INCLUDE Developer/Projects/smoke_report_details.tmpl %] Modified: trunk/templates/Developer/Projects/smoke_reports_nav.tmpl =================================================================== --- trunk/templates/Developer/Projects/smoke_reports_nav.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/Developer/Projects/smoke_reports_nav.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -1,5 +1,5 @@ <div style="float:right; padding-right: 30px;" id="smoke_reports_nav"> - <form class="ajaxable show_paging_indicator" name="smoke_reports" id="smoke_reports" action="/app/developer_projects/smoke_reports/[% project.id %]" method="get"> + <form class="ajaxable show_paging_indicator" name="smoke_reports" id="smoke_reports" action="/app/[% IF c.public %]public[% ELSE %]developer[% END %]_projects/smoke_reports/[% project.id %]" method="get"> <img src="[% c.static_url('/images/indicator.gif') %]" style="display:none" class="indicator" id="paging_indicator" alt="loading" /> [% SET cats = project.categories %] [% IF cats %] @@ -13,17 +13,17 @@ </select> </span> [% END %] - [% SET base_url = '/app/developer_projects/smoke_reports/' _ project.id _ '?limit=' _ limit %] + [% SET base_url = '/app/' _ ( c.public ? 'public' : 'developer' ) _ '_projects/smoke_reports/' _ project.id _ '?limit=' _ limit %] [% SET back_url = base_url _ '&offset=' _ (offset - limit) %] [% SET forward_url = base_url _ '&offset=' _ (offset + limit) %] <span> - [% UNLESS offset - limit < 0 %] + [% IF limit && (offset - limit >= 0) %] <a class="ajaxable show_paging_indicator" href="[% back_url %]" style="text-decoration: none">⇐</a> [% ELSE %] ⇐ [% END %] | - [% UNLESS (offset + limit) >= project.report_count %] + [% IF limit && ((offset + limit) < project.report_count) %] <a class="ajaxable show_paging_indicator" href="[% forward_url %]" style="text-decoration: none">⇒</a> [% ELSE %] ⇒ Added: trunk/templates/Public/Projects/details.tmpl =================================================================== --- trunk/templates/Public/Projects/details.tmpl (rev 0) +++ trunk/templates/Public/Projects/details.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -0,0 +1,60 @@ +[% SET page_title = "Project Details" %] + +<h2>[% project.name %]</h2> + +<div class="sub_menu"> + <a class="sub_menu" href="/app/public_projects/smoke_reports/[% project.id %]">Most Recent Reports</a> + <a class="sub_menu" href="/app/public_graphs/start/[% project.id %]">Progress Graphs</a> + <!-- + [% IF project.allow_anon %] + <a class="sub_menu" href="/app/public_projects/add_report/[% project.id %]">Add Smoke Report</a> + [% END %] + --> +</div> + +<table class="boxed"> +<tr> + <td><label>Start Date</label></td> + <td> + [% project.start_date.strftime('%m/%d/%Y') %] + </td> +</tr> +<tr class="even"> + <td valign="top"><label>Project Admin(s)</label></td> + <td> + [% SET admins = project.admins %] + [% IF admins %] + [% FOREACH admin IN project.admins %] + [% admin.username | html %][% UNLESS loop.last %],[% END %] + [% END %] + [% ELSE %] + <em>none</em> + [% END %] + </td> +</tr> +<tr> + <td valign="top"><label>Developers</label></td> + <td valign="top"> + [% SET devs = project.developers %] + [% IF devs %] + [% FOREACH developer IN devs %] + [% developer.username | html %][% UNLESS loop.last() %],[% END %] + [% END %] + [% ELSE %] + <em>none</em> + [% END %] + </td> +</tr> +<tr class="even"> + <td><label># Smoke Tests</label></td> + <td>[% project.report_count %]</td> +</tr> +<tr> + <td><label>Last Smoke Test Added</label></td> + <td> + [% SET latest_smoke_test = project.latest_smoke_test %] + [% latest_smoke_test ? latest_smoke_test.added.strftime('%D %l:%H %p') : 'never' %] + </td> +</tr> +</table> + Added: trunk/templates/Public/Projects/show_all.tmpl =================================================================== --- trunk/templates/Public/Projects/show_all.tmpl (rev 0) +++ trunk/templates/Public/Projects/show_all.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -0,0 +1,28 @@ +[% SET page_title = 'Public Projects' %] + +[% IF projects.size() %] +<div class="accordion at_100" id="accordion_projects"> + [% FOREACH project IN projects %] + <div class="panel"> + <div class="header">[% project.name | html %]<!--[% project.id %]--></div> + <div class="content"> + <ul> + <li><a href="/app/public_projects/details/[% project.id %]">Project Details</a></li> + <li><a href="/app/public_projects/smoke_reports/[% project.id %]">Most Recent Smoke Tests</a></li> + <li><a href="/app/public_graphs/start/[% project.id %]">Progress Graphs</a></li> + <!-- + [% IF project.allow_anon %] + <li><a href="/app/public_projects/add_report/[% project.id %]">Upload Smoke Test</a></li> + [% END %] + --> + </ul> + </div> + </div> + [% END %] +</div> +[% ELSE %] +<span class="warn"> + There are currently no public projects. +</span> +[% END %] + Added: trunk/templates/Public/Projects/smoke_report.tmpl =================================================================== --- trunk/templates/Public/Projects/smoke_report.tmpl (rev 0) +++ trunk/templates/Public/Projects/smoke_report.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -0,0 +1,20 @@ +[% SET page_title = 'Smoke Report #' _ report.id _ ' (' _ project.name _ ')' %] + +<div class="sub_menu"> + <a class="sub_menu" href="/app/public_projects/details/[% project.id %]">Project Details</a> + <a class="sub_menu" href="/app/public_projects/smoke_reports/[% project.id %]">Recent Smoke Reports</a> + <a class="sub_menu" href="/app/public_graphs/start/[% project.id %]">Progress Graphs</a> + <!-- + [% IF project.allow_anon %] + <a class="sub_menu" href="/app/public_projects/add_report/[% project.id %]">Add Smoke Report</a> + [% END %] + --> +</div> + +<div class="fake_accordion" id="accordion_reports" style="margin-top: 25px"> + <div class="panel" id="smoke_test_[% report.id %]"> + [% SET public = 1 %] + [% INCLUDE Developer/Projects/smoke_report_details.tmpl %] + </div> +</div> + Added: trunk/templates/Public/Projects/smoke_reports.tmpl =================================================================== --- trunk/templates/Public/Projects/smoke_reports.tmpl (rev 0) +++ trunk/templates/Public/Projects/smoke_reports.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -0,0 +1,34 @@ +[% SET page_title = 'Recent Smoke Reports' %] +[% SET reports = project.all_reports('limit', limit, 'offset', offset, 'category', category) %] + +<h2>[% project.name | html %]</h2> + +[% IF reports %] + [% PROCESS Developer/Projects/smoke_reports_nav.tmpl %] +[% END %] + +<div class="sub_menu"> + <a class="sub_menu" href="/app/public_projects/details/[% project.id %]">Project Details</a> + <a class="sub_menu" href="/app/public_graphs/start/[% project.id %]">Progress Graphs</a> + <!-- + [% IF project.allow_anon %] + <a class="sub_menu" href="/app/public_projects/add_report/[% project.id %]">Add Smoke Report</a> + [% END %] + --> +</div> + +[% IF reports %] +[% SET public = 1 %] +<div class="fake_accordion" id="accordion_reports"> + [% FOREACH report IN reports %] + <div class="panel" id="smoke_test_[% report.id %]"> + [% INCLUDE Developer/Projects/smoke_report_details.tmpl %] + </div> + [% END %] +</div> +[% ELSE %] +<span class="warn"> + No reports. +</span> +[% END %] + Modified: trunk/templates/wrapper.tmpl =================================================================== --- trunk/templates/wrapper.tmpl 2006-07-26 21:04:09 UTC (rev 320) +++ trunk/templates/wrapper.tmpl 2006-07-26 21:04:20 UTC (rev 321) @@ -45,8 +45,6 @@ [% username %] | <a href="/app/developer_projects">my projects</a> | <a href="/app/developer_prefs">preferences</a> | - [% ELSE %] -<!-- <a href="/app/public_projects">projects</a> | --> [% END %] @@ -59,6 +57,7 @@ [% ELSE %] <a href="/app/public_auth/login">login</a> | [% END %] + <a href="/app/public_projects">public projects</a> | <a href="/docs">docs</a> ] </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |