yet another fix
This commit is contained in:
parent
34c983b87f
commit
3be5f66223
3 changed files with 19 additions and 14 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
"colour": "#6C3082",
|
"colour": "#6C3082",
|
||||||
|
|
||||||
"builds": [
|
"revisions": [
|
||||||
|
|
||||||
"20150508",
|
"20150508",
|
||||||
"20150509",
|
"20150509",
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
"colour": "#DF73FF",
|
"colour": "#DF73FF",
|
||||||
|
|
||||||
"builds": [
|
"revisions": [
|
||||||
|
|
||||||
"20150427",
|
"20150427",
|
||||||
"20150427.1",
|
"20150427.1",
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
"colour": "#4EC9B0",
|
"colour": "#4EC9B0",
|
||||||
|
|
||||||
"builds": [
|
"revisions": [
|
||||||
|
|
||||||
"20150221",
|
"20150221",
|
||||||
"20150222",
|
"20150222",
|
||||||
|
@ -1687,6 +1687,10 @@
|
||||||
{
|
{
|
||||||
"type": "REM",
|
"type": "REM",
|
||||||
"change": "Removed legacy password hash support, if your account still uses this method request a password reset email."
|
"change": "Removed legacy password hash support, if your account still uses this method request a password reset email."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "FIX",
|
||||||
|
"change": "Use \"Revision\" instead of \"Build\" on the changelog."
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -105,8 +105,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<a href="http://flash.moe">Flashwave</a> /
|
<a href="http://flash.moe">Flashwave</a> /
|
||||||
|
<a href="http://circlestorm.net">Circlestorm</a> /
|
||||||
<a href="http://sakura.flashii.net">Sakura</a> /
|
<a href="http://sakura.flashii.net">Sakura</a> /
|
||||||
<a href="http://github.com/circlestorm/Sakura">GitHub</a>
|
<a href="https://bitbucket.org/circlestorm/sakura">BitBucket</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -20,13 +20,13 @@ $changelog = array();
|
||||||
foreach($changelogFile['versions'] as $name => $data) {
|
foreach($changelogFile['versions'] as $name => $data) {
|
||||||
|
|
||||||
// Reverse the array
|
// Reverse the array
|
||||||
$data['builds'] = array_reverse($data['builds'], true);
|
$data['revisions'] = array_reverse($data['revisions'], true);
|
||||||
|
|
||||||
foreach($data['builds'] as $build) {
|
foreach($data['revisions'] as $rev) {
|
||||||
|
|
||||||
$changelog[$build]['name'] = $name;
|
$changelog[$rev]['name'] = $name;
|
||||||
$changelog[$build]['colour'] = $data['colour'];
|
$changelog[$rev]['colour'] = $data['colour'];
|
||||||
$changelog[$build]['changes'] = array();
|
$changelog[$rev]['changes'] = array();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,15 +57,15 @@ if(isset($_REQUEST['getjson'])) {
|
||||||
$changelogHTML = null;
|
$changelogHTML = null;
|
||||||
|
|
||||||
// Format HTML
|
// Format HTML
|
||||||
foreach($changelog as $build => $buildData) {
|
foreach($changelog as $revisionId => $revisionData) {
|
||||||
|
|
||||||
$changelogHTML .= '<div class="release" id="b'. $build .'">';
|
$changelogHTML .= '<div class="release" id="r'. $revisionId .'">';
|
||||||
|
|
||||||
$changelogHTML .= '<a href="#b'. $build .'" class="title" style="color: '. $buildData['colour'] .';">Build '. $build .' ('. $buildData['name'] .')</a>';
|
$changelogHTML .= '<a href="#r'. $revisionId .'" class="title" style="color: '. $revisionData['colour'] .';">Revision '. $revisionId .' ('. $revisionData['name'] .')</a>';
|
||||||
|
|
||||||
foreach($buildData['changes'] as $id => $changeData) {
|
foreach($revisionData['changes'] as $id => $changeData) {
|
||||||
|
|
||||||
$changelogHTML .= '<div id="b'. $build .'c'. $id .'">';
|
$changelogHTML .= '<div id="r'. $revisionId .'c'. $id .'">';
|
||||||
|
|
||||||
switch($changeData['type']) {
|
switch($changeData['type']) {
|
||||||
|
|
||||||
|
|
Reference in a new issue