Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas ZILLIOX <thomas@zilliox.me>2013-05-30 23:42:25 +0400
committerThomas ZILLIOX <thomas@zilliox.me>2013-05-30 23:42:25 +0400
commit5e39f1cebcf7453047cb7b7712342f0dd4ae7be2 (patch)
treed6af25da76d681a14a2f51d367bd89df203dc7e5 /plugins/Annotations
parent4d3b77ed8e2498c5fd4eb6eb35a6dd1a08d6f7d1 (diff)
Rename template file names
Diffstat (limited to 'plugins/Annotations')
-rwxr-xr-xplugins/Annotations/Controller.php6
-rwxr-xr-xplugins/Annotations/templates/_annotation.twig (renamed from plugins/Annotations/templates/annotation.twig)0
-rwxr-xr-xplugins/Annotations/templates/_annotationList.twig (renamed from plugins/Annotations/templates/annotations.twig)2
-rwxr-xr-xplugins/Annotations/templates/getAnnotationManager.twig (renamed from plugins/Annotations/templates/annotationManager.twig)2
-rwxr-xr-xplugins/Annotations/templates/getEvolutionIcons.twig (renamed from plugins/Annotations/templates/evolutionAnnotations.twig)0
-rw-r--r--plugins/Annotations/templates/saveAnnotation.twig1
6 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Annotations/Controller.php b/plugins/Annotations/Controller.php
index 295f2fb949..3b88fadb9d 100755
--- a/plugins/Annotations/Controller.php
+++ b/plugins/Annotations/Controller.php
@@ -55,7 +55,7 @@ class Piwik_Annotations_Controller extends Piwik_Controller
}
// create & render the view
- $view = new Piwik_View('@Annotations/annotationManager');
+ $view = new Piwik_View('@Annotations/getAnnotationManager');
$allAnnotations = Piwik_API_Request::processRequest(
'Annotations.getAll', array('date' => $date, 'period' => $period, 'lastN' => $lastN));
@@ -103,7 +103,7 @@ class Piwik_Annotations_Controller extends Piwik_Controller
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$this->checkTokenInUrl();
- $view = new Piwik_View('@Annotations//annotation');
+ $view = new Piwik_View('@Annotations/saveAnnotation');
// NOTE: permissions checked in API method
// save the annotation
@@ -208,7 +208,7 @@ class Piwik_Annotations_Controller extends Piwik_Controller
"Annotations.getAnnotationCountForDates", array('getAnnotationText' => 1));
// create & render the view
- $view = new Piwik_View('@Annotations/evolutionAnnotations');
+ $view = new Piwik_View('@Annotations/getEvolutionIcons');
$view->annotationCounts = reset($annotationCounts); // only one idSite allowed for this action
echo $view->render();
diff --git a/plugins/Annotations/templates/annotation.twig b/plugins/Annotations/templates/_annotation.twig
index e3e879c403..e3e879c403 100755
--- a/plugins/Annotations/templates/annotation.twig
+++ b/plugins/Annotations/templates/_annotation.twig
diff --git a/plugins/Annotations/templates/annotations.twig b/plugins/Annotations/templates/_annotationList.twig
index 72f5c93ca5..f3820ab833 100755
--- a/plugins/Annotations/templates/annotations.twig
+++ b/plugins/Annotations/templates/_annotationList.twig
@@ -6,7 +6,7 @@
<table>
{% for annotation in annotations %}
- {% include "@Annotations/annotation.twig" %}
+ {% include "@Annotations/_annotation.twig" %}
{% endfor %}
<tr class="new-annotation-row" style="display:none" data-date="{{ startDate }}">
<td class="annotation-meta">
diff --git a/plugins/Annotations/templates/annotationManager.twig b/plugins/Annotations/templates/getAnnotationManager.twig
index 8cd93e2b10..cea1d7e2ac 100755
--- a/plugins/Annotations/templates/annotationManager.twig
+++ b/plugins/Annotations/templates/getAnnotationManager.twig
@@ -10,7 +10,7 @@
<div class="annotation-list-range">{{ startDatePretty }}{% if startDate != endDate %} &mdash; {{ endDatePretty }}{% endif %}</div>
<div class="annotation-list">
- {% include "@Annotations/annotations.twig" %}
+ {% include "@Annotations/_annotationList.twig" %}
<span class="loadingPiwik" style="display:none"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_Loading_js'|translate }}</span>
diff --git a/plugins/Annotations/templates/evolutionAnnotations.twig b/plugins/Annotations/templates/getEvolutionIcons.twig
index f2475c2416..f2475c2416 100755
--- a/plugins/Annotations/templates/evolutionAnnotations.twig
+++ b/plugins/Annotations/templates/getEvolutionIcons.twig
diff --git a/plugins/Annotations/templates/saveAnnotation.twig b/plugins/Annotations/templates/saveAnnotation.twig
new file mode 100644
index 0000000000..e5cd120205
--- /dev/null
+++ b/plugins/Annotations/templates/saveAnnotation.twig
@@ -0,0 +1 @@
+{% include "@Annotations/_annotation.twig" %} \ No newline at end of file