diff options
author | Juha Sippola <juhasippola@outlook.com> | 2015-08-05 10:34:23 +0300 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@theqtcompany.com> | 2015-09-16 07:34:07 +0000 |
commit | a3a7949d485b11a94b6b7c03bd5832a6570dfa7c (patch) | |
tree | 3e5a89cdb1c0f4fdf8a1f136b658a914997d04ce /non-puppet/qtmetrics2/index.php | |
parent | 94d0ea3c76841b0f68ccbf9351b7dca3db3352d7 (diff) |
Qt Metrics 2 (v0.15): Site map
Added site map page, linked to the Documentation tab.
Change-Id: I4ba71e665205d0b5376165012ea59ab8ade3841a
Reviewed-by: Juha Sippola <juhasippola@outlook.com>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@theqtcompany.com>
Diffstat (limited to 'non-puppet/qtmetrics2/index.php')
-rw-r--r-- | non-puppet/qtmetrics2/index.php | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/non-puppet/qtmetrics2/index.php b/non-puppet/qtmetrics2/index.php index 411676a..84faf9d 100644 --- a/non-puppet/qtmetrics2/index.php +++ b/non-puppet/qtmetrics2/index.php @@ -34,8 +34,8 @@ /** * Qt Metrics API - * @version 0.10 - * @since 22-07-2015 + * @version 0.11 + * @since 23-07-2015 * @author Juha Sippola */ @@ -422,6 +422,24 @@ $app->get('/testset/:testset/:project', function($testset, $project) use($app) } })->name('testset'); +/** + * UI route: /sitemap (GET) + */ + +$app->get('/sitemap', function() use($app) +{ + $breadcrumb = array( + array('name' => 'home', 'link' => Slim\Slim::getInstance()->urlFor('root')) + ); + $app->render('image.html', array( + 'root' => Slim\Slim::getInstance()->urlFor('root'), + 'breadcrumb' => $breadcrumb, + 'title' => 'Site Map', + 'navi_title' => 'site map', + 'image' => 'images/site_map.png' + )); +})->name('sitemap'); + $app->run(); |