Added the Danish nationality and vehicles/ordnance.

master
Pacman Ghost 6 years ago
parent 5dc923deb9
commit f5effc4894
  1. 4
      vasl_templates/webapp/data/default-template-pack/nationalities.json
  2. 9
      vasl_templates/webapp/data/ordnance/danish.json
  3. 9
      vasl_templates/webapp/data/vehicles/danish.json
  4. BIN
      vasl_templates/webapp/static/images/flags/danish.png
  5. 11
      vasl_templates/webapp/static/snippets.js
  6. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1940.txt
  7. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1941.txt
  8. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1942.txt
  9. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1943.txt
  10. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1944.txt
  11. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/ordnance/danish/1945.txt
  12. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1940.txt
  13. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1941.txt
  14. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1942.txt
  15. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1943.txt
  16. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1944.txt
  17. 5
      vasl_templates/webapp/tests/fixtures/vo-reports/vehicles/danish/1945.txt
  18. 2
      vasl_templates/webapp/tests/test_vo_reports.py

@ -56,6 +56,10 @@
"yugoslavian": {
"display_name": "Yugoslavian",
"ob_colors": [ "#a3ecd1","#82e3bd", "#61d8a6" ]
},
"danish": {
"display_name": "Danish",
"ob_colors": [ "#a3ecd1","#82e3bd", "#61d8a6" ]
}
}

@ -0,0 +1,9 @@
[
{ "name": "Machinecannon 20mm M-35",
"capabilities": [ "NT", "QSU\u2020<sup>1</sup>", "R2", "IFE=B10" ],
"note_number": "19\u2020",
"notes": [ "De", "T\u2020<sup>1</sup>" ]
}
]

@ -0,0 +1,9 @@
[
{ "name": "Nimbus",
"CS#": [ null, "\u2020" ],
"capabilities": [ "M8\u2020" ],
"note_number": "24\u2020"
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -480,12 +480,19 @@ function has_ref( val )
function make_crew_survival( entry )
{
function make_cs_string( prefix, val ) {
if ( val.length === 2 && val[0] === null && val[1] === "\u2020" )
return "\u2020" ;
else
return prefix + " " + val ;
}
// check if the vehicle has a crew survival field
var crew_survival = null ;
if ( "CS#" in entry )
crew_survival = "CS " + entry["CS#"] ;
crew_survival = make_cs_string( "CS", entry["CS#"] ) ;
else if ( "cs#" in entry )
crew_survival = "cs " + entry["cs#"] ;
crew_survival = make_cs_string( "cs", entry["cs#"] ) ;
if ( crew_survival === null )
return null ;

@ -0,0 +1,5 @@
=== ordnance/danish/1940 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== ordnance/danish/1941 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== ordnance/danish/1942 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== ordnance/danish/1943 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== ordnance/danish/1944 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== ordnance/danish/1945 ===
Name Capabilities (effective) # Notes
----------------------- --------------------- --------------------- --- -----------------
Machinecannon 20mm M-35 NT QSU†[1] R2 IFE=B10 NT QSU†[1] R2 IFE=B10 19† De T†<sup>1</sup>

@ -0,0 +1,5 @@
=== vehicles/danish/1940 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -0,0 +1,5 @@
=== vehicles/danish/1941 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -0,0 +1,5 @@
=== vehicles/danish/1942 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -0,0 +1,5 @@
=== vehicles/danish/1943 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -0,0 +1,5 @@
=== vehicles/danish/1944 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -0,0 +1,5 @@
=== vehicles/danish/1945 ===
Name Radio IF Crew survival Capabilities (effective) # Notes
------ ------- ---- --------------- -------------- ------------- --- -------
Nimbus n/a yes † M8† M8† 24† n/a

@ -38,7 +38,7 @@ def test_vo_reports( webapp, webdriver ):
# check each vehicle/ordnance report
nationalities = [
"german", "russian", "american", "british", "italian", "japanese", "chinese", "french",
"polish", "belgian","yugoslavian"
"polish", "belgian","yugoslavian","danish"
]
for nat in nationalities:
for vo_type in ["vehicles","ordnance"]:

Loading…
Cancel
Save