Commit e1e31e5b authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Arranges plugin to fit into typo3.org

parent 86cda5c0
...@@ -92,7 +92,6 @@ class RoadmapController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll ...@@ -92,7 +92,6 @@ class RoadmapController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
var chart = AmCharts.makeChart("charts", { var chart = AmCharts.makeChart("charts", {
"type": "gantt", "type": "gantt",
"theme": "light", "theme": "light",
// "marginRight": 70,
"period": "YYYY", "period": "YYYY",
"dataDateFormat": "YYYY-MM-DD", "dataDateFormat": "YYYY-MM-DD",
"columnWidth": 0.65, "columnWidth": 0.65,
...@@ -140,10 +139,7 @@ class RoadmapController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll ...@@ -140,10 +139,7 @@ class RoadmapController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
"valueZoomable": true "valueZoomable": true
}, },
"export": { "export": {
"enabled": true, "enabled": false,
"divId": "exportContainer",
"position": "bottom-right",
"fileName": "typo3-support-times",
"menu": [ "menu": [
"PNG","PDF", "SVG" "PNG","PDF", "SVG"
] ]
......
...@@ -4,4 +4,8 @@ plugin.tx_typo3roadmap_roadmap { ...@@ -4,4 +4,8 @@ plugin.tx_typo3roadmap_roadmap {
partialRootPath = EXT:typo3_roadmap/Resources/Private/Partials/ partialRootPath = EXT:typo3_roadmap/Resources/Private/Partials/
layoutRootPath = EXT:typo3_roadmap/Resources/Private/Layouts/ layoutRootPath = EXT:typo3_roadmap/Resources/Private/Layouts/
} }
}
\ No newline at end of file persistence {
storagePid = 185
}
}
...@@ -4,4 +4,7 @@ plugin.tx_typo3roadmap_roadmap { ...@@ -4,4 +4,7 @@ plugin.tx_typo3roadmap_roadmap {
partialRootPath = {$plugin.tx_typo3roadmap_roadmap.view.partialRootPath} partialRootPath = {$plugin.tx_typo3roadmap_roadmap.view.partialRootPath}
layoutRootPath = {$plugin.tx_typo3roadmap_roadmap.view.layoutRootPath} layoutRootPath = {$plugin.tx_typo3roadmap_roadmap.view.layoutRootPath}
} }
} persistence {
\ No newline at end of file storagePid = {$plugin.tx_typo3roadmap_roadmap.persistence.storagePid}
}
}
{namespace roadmap=T3o\Typo3Roadmap\ViewHelpers} {namespace roadmap=T3o\Typo3Roadmap\ViewHelpers}
<div class="b-tabs"> <section class="container">
<ul class="tabs lite-tabs"> <ul class="nav nav-tabs" role="tablist">
<f:for each="{majors}" as="majorsTabs" key="keyTab" iteration="tabIteratorTabs"> <f:for each="{majorVersions}" as="majorsTabs" key="keyTab" iteration="tabIteratorTabs">
<li class="{f:if(condition: tabIteratorTabs.isFirst, then: 'act')}"><a href="#{ceUid}_{keyTab}">{majorsTabs.title}</a></li> <li class="nav-item">
<a class="nav-link{f:if(condition: tabIteratorTabs.isFirst, then: ' active')}" data-toggle="tab" role="tab" href="#major_{majorsTabs.uid}">{majorsTabs.title}</a>
</li>
</f:for> </f:for>
</ul> </ul>
<div class="tab-panes"> <div class="tab-content">
<f:for each="{majors}" as="major" key="key" iteration="tabIterator"> <f:for each="{majorVersions}" as="major" key="key" iteration="tabIterator">
<a id="{ceUid}_{keyTab}"></a> <div id="major_{major.uid}" role="tabpanel" class="card tab-pane{f:if(condition: tabIterator.isFirst, then: ' active')}">
<div class="tab-content {f:if(condition: tabIterator.isFirst, then: ' show-tab', else: 'hide-tab')}">
<h2>{major.title}</h2> <h2>{major.title}</h2>
<f:format.html>{major.bodyText}</f:format.html> <f:format.html>{major.bodyText}</f:format.html>
<h3>Releases</h3> <h3>Releases</h3>
<table class="contenttable-0"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th scope="col">Version</th> <th scope="col">Version</th>
...@@ -37,10 +38,12 @@ ...@@ -37,10 +38,12 @@
<td> <td>
<f:if condition="{minor.released} > 1"> <f:if condition="{minor.released} > 1">
<f:then> <f:then>
Released: <f:format.date format="Y-m-d">@{minor.released}</f:format.date> Released:
<f:format.date format="Y-m-d">@{minor.released}</f:format.date>
</f:then> </f:then>
<f:else> <f:else>
Estimated: <f:format.date format="Y-m-d">@{minor.estimated}</f:format.date> Estimated:
<f:format.date format="Y-m-d">@{minor.estimated}</f:format.date>
</f:else> </f:else>
</f:if> </f:if>
</td> </td>
...@@ -51,50 +54,49 @@ ...@@ -51,50 +54,49 @@
</div> </div>
</f:for> </f:for>
</div> </div>
</div>
<h3>Support Times</h3> <h3>Support Times</h3>
<div id="charts" style="height: 300px;"></div> <div id="charts" style="height: 300px;"></div>
<h3> <h3>
You can find further information about our Extended Support You can find further information about our Extended Support
Plans on <a href="https://typo3.com/our-services/extended-support/" target="_blank">TYPO3.com</a> Plans on <a href="https://typo3.com/our-services/extended-support/" target="_blank">TYPO3.com</a>
</h3> </h3>
<div id="legend"></div> <div id="legend"></div>
<div id="exportContainer">Download Chart as</div>
<h3>PHP Compatibility Chart</h3> <h3>PHP Compatibility Chart</h3>
<table border="1"> <table class="table table-bordered">
<thead> <thead>
<tr>
<th>PHP versions</th>
<f:for each="{majorVersions}" as="majorVersion">
<th>
<strong>TYPO3 {majorVersion.title}</strong><br>
{f:format.date(date:majorVersion.developmentStart,format:'Y')}
- {f:format.date(date:majorVersion.regularSupport,format:'Y')}
</th>
</f:for>
</tr>
</thead>
<tbody>
<f:for each="{phpVersions}" as="phpVersion">
<tr> <tr>
<td> <th>PHP versions</th>
PHP {phpVersion.version}
</td>
<f:for each="{majorVersions}" as="majorVersion"> <f:for each="{majorVersions}" as="majorVersion">
<td> <th>
<roadmap:condition.inArray needle="{phpVersion.uid}" array="{majorVersion.phpVersions}" arrayPath="uid"> <strong>TYPO3 {majorVersion.title}</strong><br>
<f:then> {f:format.date(date:majorVersion.developmentStart,format:'Y')}
<b>Yes</b> - {f:format.date(date:majorVersion.regularSupport,format:'Y')}
</f:then> </th>
<f:else>
no
</f:else>
</roadmap:condition.inArray>
</td>
</f:for> </f:for>
</tr> </tr>
</f:for> </thead>
</tbody> <tbody>
</table> <f:for each="{phpVersions}" as="phpVersion">
<tr>
<td>
PHP {phpVersion.version}
</td>
<f:for each="{majorVersions}" as="majorVersion">
<td>
<roadmap:condition.inArray needle="{phpVersion.uid}" array="{majorVersion.phpVersions}" arrayPath="uid">
<f:then>
<b>Yes</b>
</f:then>
<f:else>
no
</f:else>
</roadmap:condition.inArray>
</td>
</f:for>
</tr>
</f:for>
</tbody>
</table>
</section>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment