... | ... |
@@ -238,6 +238,22 @@ |
238 | 238 |
[:span (-> x :quantity parenthesize)])])] |
239 | 239 |
[license-notice pack]]) |
240 | 240 |
|
241 |
+(defn tool-panel [item] |
|
242 |
+ [:article {:class (styles/equipment-panel)} |
|
243 |
+ [heading item] |
|
244 |
+ [:span.kind |
|
245 |
+ (spaced (-> item :equipment_category :name string/lower-case) |
|
246 |
+ (-> item :tool_category string/lower-case parenthesize))] |
|
247 |
+ [property-list |
|
248 |
+ :Weight |
|
249 |
+ (weight item) |
|
250 |
+ :Cost |
|
251 |
+ (spaced |
|
252 |
+ (cost item) |
|
253 |
+ (some->> item :quantity (str "for ") parenthesize))] |
|
254 |
+ [description item] |
|
255 |
+ [license-notice item]]) |
|
256 |
+ |
|
241 | 257 |
[property-list |
242 | 258 |
:Speed |
243 | 259 |
(speed item) |