-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #15612: Public stats didn't have any theme part, graphic …
…is broken (#1717)
- Loading branch information
1 parent
952582a
commit d755f2b
Showing
9 changed files
with
132 additions
and
2 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
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,33 @@ | ||
{# | ||
LimeSurvey | ||
Copyright (C) 2007-2020 The LimeSurvey Project Team / Louis Gac | ||
All rights reserved. | ||
License: GNU/GPL License v2 or later, see LICENSE.php | ||
LimeSurvey is free software. This version may have been modified pursuant | ||
to the GNU General Public License, and as distributed it includes or | ||
is derivative of works licensed under the GNU General Public License or | ||
other free or open source software licenses. | ||
See COPYRIGHT.php for copyright notices and details. | ||
(¯`·._.·(¯`·._.· Public Statistics Layout ·._.·´¯)·._.·´¯) | ||
This is the layout that will be used to show the public statistics. | ||
#} | ||
{% extends 'layout_global.twig' %} | ||
{% block ajaxindicator %}{% endblock %} | ||
{% block pjaxbegin %}{% endblock %} | ||
{% block body %} | ||
{% block nav_bar %} | ||
{{ parent() }} | ||
{% endblock %} | ||
{{ registerScript("StatisticsUserBaseScripts", "var graphUrl = " ~ graphUrl ~ ";", "POS_BEGIN") }} | ||
{% block content %} | ||
{% set sViewContent = './subviews/content/' ~ aSurveyInfo.include_content ~ '.twig' %} | ||
{% include './subviews/content/outerframe.twig' with {'include_content': sViewContent } %} | ||
{% endblock %} | ||
{% endblock %} | ||
{% block footer %} | ||
{{ parent() }} | ||
{% endblock %} | ||
{% block pjaxend %}{% endblock %} |
21 changes: 21 additions & 0 deletions
21
themes/survey/vanilla/views/subviews/content/statistics_user.twig
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,21 @@ | ||
{# | ||
LimeSurvey | ||
Copyright (C) 2007-2020 The LimeSurvey Project Team / Louis Gac | ||
All rights reserved. | ||
License: GNU/GPL License v2 or later, see LICENSE.php | ||
LimeSurvey is free software. This version may have been modified pursuant | ||
to the GNU General Public License, and as distributed it includes or | ||
is derivative of works licensed under the GNU General Public License or | ||
other free or open source software licenses. | ||
See COPYRIGHT.php for copyright notices and details. | ||
(¯`·._.·(¯`·._.· Public Statistics Layout ·._.·´¯)·._.·´¯) | ||
This file displays the page shown to user when viewing the statistics after taking a survey. | ||
NOTE: see layout_main.twig for more infos | ||
#}<section> | ||
{{ include('./subviews/statistics_user/statistics_user_head.twig') }} | ||
{{ include('./subviews/statistics_user/statistics_user_content.twig') }} | ||
{{ include('./subviews/statistics_user/statistics_user_foot.twig') }} | ||
</section> |
12 changes: 12 additions & 0 deletions
12
themes/survey/vanilla/views/subviews/statistics_user/index.html
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,12 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>LimeSurvey</title> | ||
</head> | ||
<body> | ||
</body> | ||
</html> | ||
|
||
|
||
|
5 changes: 5 additions & 0 deletions
5
themes/survey/vanilla/views/subviews/statistics_user/statistics_user_content.twig
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,5 @@ | ||
<div class="public-stats__content"> | ||
{% if statisticsoutput %} | ||
{{ statisticsoutput }} | ||
{% endif %} | ||
</div> |
5 changes: 5 additions & 0 deletions
5
themes/survey/vanilla/views/subviews/statistics_user/statistics_user_foot.twig
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,5 @@ | ||
</div> | ||
<input type='hidden' class='hidemenubutton'/> | ||
</div> | ||
</div> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
themes/survey/vanilla/views/subviews/statistics_user/statistics_user_head.twig
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 @@ | ||
|
||
{# | ||
LimeSurvey | ||
Copyright (C) 2007-2020 The LimeSurvey Project Team / Louis Gac | ||
All rights reserved. | ||
License: GNU/GPL License v2 or later, see LICENSE.php | ||
LimeSurvey is free software. This version may have been modified pursuant | ||
to the GNU General Public License, and as distributed it includes or | ||
is derivative of works licensed under the GNU General Public License or | ||
other free or open source software licenses. | ||
See COPYRIGHT.php for copyright notices and details. | ||
(¯`·._.·(¯`·._.· Public Statistics Header ._.·´¯)·._.·´¯) | ||
This is the head for the public statistics page. | ||
#} | ||
|
||
<div class="container public-stats"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<div id='statsContainer'> | ||
<div id='statsHeader'> | ||
<h2 class='statsSurveyTitle public-stats__title'>{{ aSurveyInfo.surveyls_title }}</h2> | ||
<div class='statsNumRecords public-stats__num-records'>{{ gT("Total records in survey") }} : {{ totalrecords }}</div> | ||
</div> | ||
|
||
|
||
|