Skip to content

Commit 5aacc82

Browse files
committed
fix: WIP initial work
1 parent 94eee19 commit 5aacc82

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed

controller.xql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,18 @@ else switch($path-parts[1])
550550
"document-id": "hac",
551551
"section-id": $path-parts[3]
552552
})
553+
case "reports" return
554+
if (empty($path-parts[3])) then
555+
local:render-page("about/reports/index.xml", map{
556+
"publication-id": "reports",
557+
"document-id": "reports"
558+
})
559+
else
560+
local:render-page("about/reports/report.xml", map{
561+
"publication-id": "reports",
562+
"document-id": "reports",
563+
"section-id": $path-parts[3]
564+
})
553565
case "contact-us" return local:render-page('about/contact-us.xml', map{ "publication-id": "app" })
554566
case "the-historian" return local:render-page('about/the-historian.xml', map{ "publication-id": "app" })
555567
case "recent-publications" return local:render-page('about/recent-publications.xml', map{ "publication-id": "app" })

pages/about/reports/index.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<div data-template="pages:load">
3+
<div data-template="templates:surround" data-template-at="content"
4+
data-template-with="templates/site.xml">
5+
<div>
6+
<div class="hidden" id="static-title">Reports - About Us</div>
7+
<div class="row">
8+
<div data-template="pages:breadcrumb">
9+
<p id="breadcrumb-title">Reports</p>
10+
</div>
11+
</div>
12+
<div class="row hsg-main">
13+
<div class="hsg-width-two-thirds">
14+
<div data-template="app:fix-links" id="content-inner">
15+
<h1>Reports</h1>
16+
<p>Insert introduction to reports.</p>
17+
<ul>
18+
<li>Report to Congress on
19+
The Foreign Relations of the United States Historical Series for 2025
20+
22 U.S.C. § 4354(e)</li>
21+
</ul>
22+
<!--<div data-template="reports:report-list"/>-->
23+
</div>
24+
</div>
25+
<div class="row" data-template="pages:navigation">
26+
<aside data-template="pages:asides"/>
27+
</div>
28+
</div>
29+
</div>
30+
</div>
31+
</div>

pages/about/reports/report.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<div data-template="pages:load">
3+
<div data-template="templates:surround" data-template-at="content"
4+
data-template-with="templates/site.xml">
5+
<div>
6+
<div class="hidden" id="static-title">
7+
<span data-template="report:document-page-title"/> - Reports - About Us</div>
8+
<div class="row">
9+
<div data-template="pages:breadcrumb"/>
10+
</div>
11+
<div class="row hsg-main">
12+
<div class="hsg-width-two-thirds">
13+
<div data-template="app:fix-links" id="content-inner">
14+
<h1>
15+
<span data-template="report:document-title"/>
16+
</h1>
17+
<p data-template="report:document-pdf"/>
18+
<p data-template="report:document"/>
19+
</div>
20+
</div>
21+
<aside data-template="pages:asides">
22+
<div class="hsg-panel" data-template="app:fix-links" id="sections">
23+
<div class="hsg-panel-heading">
24+
<h2 class="hsg-sidebar-title">
25+
<em>FRUS</em> History Documents</h2>
26+
</div>
27+
<ul data-template="report:document-list-full"/>
28+
</div>
29+
</aside>
30+
</div>
31+
</div>
32+
</div>
33+
</div>

urls.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,25 @@
588588
<hsg:github href="https://github.com/HistoryAtState/hac"/>
589589
</config>
590590
</step>
591+
<step value="reports">
592+
<step key="section">
593+
<page-template href="pages/about/reports/section.xml">
594+
<with-param name="publication-id" value="reports"/>
595+
<with-param name="document-id" value="reports"/>
596+
<with-param keyval="section" name="section-id"/>
597+
</page-template>
598+
<config>
599+
<src collection="/db/apps/reports/data"/>
600+
</config>
601+
</step>
602+
<page-template href="pages/about/reports/index.xml">
603+
<with-param name="publication-id" value="reports"/>
604+
<with-param name="document-id" value="reports"/>
605+
</page-template>
606+
<config>
607+
<hsg:github href="https://github.com/HistoryAtState/other-publications"/>
608+
</config>
609+
</step>
591610
<step value="recent-publications">
592611
<page-template href="pages/about/recent-publications.xml"/>
593612
</step>

0 commit comments

Comments
 (0)