summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--non-puppet/qtmetrics2/images/site_map.pngbin0 -> 57594 bytes
-rw-r--r--non-puppet/qtmetrics2/index.php22
-rw-r--r--non-puppet/qtmetrics2/templates/about.html6
-rw-r--r--non-puppet/qtmetrics2/templates/header.html5
-rw-r--r--non-puppet/qtmetrics2/templates/image.html67
5 files changed, 93 insertions, 7 deletions
diff --git a/non-puppet/qtmetrics2/images/site_map.png b/non-puppet/qtmetrics2/images/site_map.png
new file mode 100644
index 0000000..daa3a31
--- /dev/null
+++ b/non-puppet/qtmetrics2/images/site_map.png
Binary files differ
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();
diff --git a/non-puppet/qtmetrics2/templates/about.html b/non-puppet/qtmetrics2/templates/about.html
index ba94613..c61406d 100644
--- a/non-puppet/qtmetrics2/templates/about.html
+++ b/non-puppet/qtmetrics2/templates/about.html
@@ -34,8 +34,8 @@
/**
* About window content
- * @version 0.14
- * @since 22-07-2015
+ * @version 0.15
+ * @since 23-07-2015
* @author Juha Sippola
*/
@@ -44,4 +44,4 @@
<p>This is Qt Metrics revision 2 with redesigned UI and database.</p>
<p>These pages are still <strong>under construction</strong> and therefore the views and functionality is limited.</p>
<p>See the <a href="https://wiki.qt.io/Qt_Metrics_2_Backlog" target="_blank">backlog</a> for development items currently identified or in progress.</p>
-<p><small>Version 0.14 (22-Jul-2015)</small></p>
+<p><small>Version 0.15 (23-Jul-2015)</small></p>
diff --git a/non-puppet/qtmetrics2/templates/header.html b/non-puppet/qtmetrics2/templates/header.html
index 61a52b0..a280992 100644
--- a/non-puppet/qtmetrics2/templates/header.html
+++ b/non-puppet/qtmetrics2/templates/header.html
@@ -34,8 +34,8 @@
/**
* Header section of html page including the meta data and style sheets
- * @version 0.5
- * @since 10-07-2015
+ * @version 0.6
+ * @since 23-07-2015
* @author Juha Sippola
*/
@@ -109,6 +109,7 @@ Documentation
<span class="caret"></span>
</a>
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="doc-drop">
+<li role="presentation"><a role="menuitem" tabindex="-1" href="sitemap">Site map</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="doc/db_design.png" target="_blank">Database design</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="doc/apigen" target="_blank">Class definitions</a></li>
</ul>
diff --git a/non-puppet/qtmetrics2/templates/image.html b/non-puppet/qtmetrics2/templates/image.html
new file mode 100644
index 0000000..b8920cd
--- /dev/null
+++ b/non-puppet/qtmetrics2/templates/image.html
@@ -0,0 +1,67 @@
+{#
+#############################################################################
+##
+## Copyright (C) 2015 The Qt Company Ltd.
+## Contact: http://www.qt.io/licensing/
+##
+## This file is part of the Quality Assurance module of the Qt Toolkit.
+##
+## $QT_BEGIN_LICENSE:LGPL21$
+## Commercial License Usage
+## Licensees holding valid commercial Qt licenses may use this file in
+## accordance with the commercial license agreement provided with the
+## Software or, alternatively, in accordance with the terms contained in
+## a written agreement between you and The Qt Company. For licensing terms
+## and conditions see http://www.qt.io/terms-conditions. For further
+## information use the contact form at http://www.qt.io/contact-us.
+##
+## GNU Lesser General Public License Usage
+## Alternatively, this file may be used under the terms of the GNU Lesser
+## General Public License version 2.1 or version 3 as published by the Free
+## Software Foundation and appearing in the file LICENSE.LGPLv21 and
+## LICENSE.LGPLv3 included in the packaging of this file. Please review the
+## following information to ensure the GNU Lesser General Public License
+## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+##
+## As a special exception, The Qt Company gives you certain additional
+## rights. These rights are described in The Qt Company LGPL Exception
+## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+##
+## $QT_END_LICENSE$
+##
+#############################################################################
+
+/**
+ * Page with an image
+ * @version 0.1
+ * @since 23-07-2015
+ * @author Juha Sippola
+ */
+
+#}
+
+{% include "header.html" %}
+
+<ol class="breadcrumb">
+{% for link in breadcrumb %}
+<li><a href="{{ link.link }}">{{ link.name }}</a></li>
+{% endfor %}
+<li class="active">{{navi_title}}</li>
+</ol>
+
+<div class="container">
+<div class="row">
+<div class="col-sm-12 col-md-12 main">
+<h1 class="page-header">{{ title }}</h1>
+<img src="{{ image }}" alt="{{ navi_title }}" class="img-responsive">
+</div>
+</div>
+</div>
+
+{% include "footer.html" %}
+
+{# Local scripts for this page #}
+{# (none) #}
+
+{% include "close.html" %}