Skip to content

Commit 75b0834

Browse files
committed
Update changelog.cfm
1 parent 84e981f commit 75b0834

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

builders/html/templates/changelog.cfm

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,40 @@
1212
q = QueryNew("type,ref,name,introduced,sort,description");
1313
1414
function addChangeLog(q, page, ref, name, introduced, description){
15-
// systemOutput( "addChangeLog: ref=[#arguments.ref#], name=[#arguments.name#], introduced=[#arguments.introduced#]", true ); // Debug logging
16-
var r = queryAddRow(q);
17-
querySetCell(q,"type", arguments.page.getPageType());
18-
19-
// Format reference based on page type
20-
var formattedRef = arguments.ref;
21-
if (arguments.page.getPageType() == "function") {
22-
if (arguments.ref contains "function-") {
23-
formattedRef = replaceNocase(arguments.ref, "function-", "functions/");
24-
} else {
25-
formattedRef = "functions/" & arguments.ref;
26-
}
27-
} else if (arguments.page.getPageType() == "tag") {
28-
if (arguments.ref contains "tag-") {
29-
formattedRef = replaceNocase(arguments.ref, "tag-", "tags/");
30-
} else {
31-
formattedRef = "tags/" & arguments.ref;
32-
}
33-
}
34-
35-
querySetCell(q,"ref", formattedRef);
36-
querySetCell(q,"name", arguments.name);
37-
querySetCell(q,"introduced", arguments.introduced);
15+
// systemOutput( "addChangeLog: ref=[#arguments.ref#], name=[#arguments.name#], introduced=[#arguments.introduced#]", true ); // Debug logging
16+
var r = queryAddRow(q);
17+
querySetCell(q,"type", arguments.page.getPageType());
18+
19+
// Format reference based on page type
20+
var formattedRef = arguments.ref;
21+
if (arguments.page.getPageType() == "function") {
22+
if (arguments.ref contains "function-") {
23+
formattedRef = replaceNocase(arguments.ref, "function-", "functions/");
24+
} else {
25+
formattedRef = "functions/" & arguments.ref;
26+
}
27+
} else if (arguments.page.getPageType() == "tag") {
28+
if (arguments.ref contains "tag-") {
29+
formattedRef = replaceNocase(arguments.ref, "tag-", "tags/");
30+
} else {
31+
formattedRef = "tags/" & arguments.ref;
32+
}
33+
}
34+
35+
querySetCell(q,"ref", formattedRef);
36+
querySetCell(q,"name", arguments.name);
37+
querySetCell(q,"introduced", arguments.introduced);
3838
39-
var sort=[];
40-
var intro = [];
41-
loop list="#arguments.introduced#" delimiters="." item="local.v" {
42-
if (v eq "000") v = 0;
43-
arrayAppend(sort, numberFormat(v, "0000"));
44-
arrayAppend(intro, v);
45-
}
46-
querySetCell(q,"introduced", intro.toList("."));
47-
querySetCell(q,"sort", sort.toList(""));
48-
querySetCell(q,"description", arguments.description);
39+
var sort=[];
40+
var intro = [];
41+
loop list="#arguments.introduced#" delimiters="." item="local.v" {
42+
if (v eq "000") v = 0;
43+
arrayAppend(sort, numberFormat(v, "0000"));
44+
arrayAppend(intro, v);
45+
}
46+
querySetCell(q,"introduced", intro.toList("."));
47+
querySetCell(q,"sort", sort.toList(""));
48+
querySetCell(q,"description", arguments.description);
4949
}
5050
</cfscript>
5151

@@ -110,21 +110,21 @@
110110

111111
<ul>
112112
<cfoutput query=q group="introduced">
113-
<li>
114-
#q.introduced#
115-
<ul>
116-
<cfoutput>
117-
<li>
118-
<a href="reference/#q.ref#.html">
119-
<cfif len(q.description)>
120-
#q.description#
121-
<cfelse>
122-
#htmlEditFormat(q.name)#
123-
</cfif>
124-
</a>
125-
</li>
126-
</cfoutput>
127-
</ul>
128-
</li>
113+
<li>
114+
#q.introduced#
115+
<ul>
116+
<cfoutput>
117+
<li>
118+
<a href="/reference/#q.ref#.html">
119+
<cfif len(q.description)>
120+
#q.description#
121+
<cfelse>
122+
#htmlEditFormat(q.name)#
123+
</cfif>
124+
</a>
125+
</li>
126+
</cfoutput>
127+
</ul>
128+
</li>
129129
</cfoutput>
130130
</ul>

0 commit comments

Comments
 (0)