... | ... |
@@ -254,6 +254,13 @@ |
254 | 254 |
[description item] |
255 | 255 |
[license-notice item]]) |
256 | 256 |
|
257 |
+(defn vehicle-panel [item] |
|
258 |
+ [:article {:class (styles/equipment-panel)} |
|
259 |
+ [heading item] |
|
260 |
+ [:span.kind |
|
261 |
+ (spaced |
|
262 |
+ (-> item :equipment_category :name string/lower-case) |
|
263 |
+ (-> item :vehicle_category string/lower-case parenthesize))] |
|
257 | 264 |
[property-list |
258 | 265 |
:Speed |
259 | 266 |
(speed item) |
... | ... |
@@ -262,9 +269,7 @@ |
262 | 269 |
:Weight |
263 | 270 |
(weight item) |
264 | 271 |
:Cost |
265 |
- (spaced |
|
266 |
- (cost item) |
|
267 |
- (some->> item :quantity (str "for ") parenthesize))] |
|
272 |
+ (cost item)] |
|
268 | 273 |
[description item] |
269 | 274 |
[license-notice item]]) |
270 | 275 |
|