Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nick,
sse_url_prefix,
player_info_pane,
- bundles_info_pane: ig.bundle_list.info_pane()?,
+ bundles_info_pane: ig.bundle_list.info_pane(ig)?,
ptoken: form.ptoken.clone(),
links: (&*ig.links).into(),
fake_rng: config().game_rng.is_fake(),
(id, state.clone())
}).collect();
- let new_info_pane = ig.bundle_list.info_pane().unwrap_or_else(|e|{
+ let new_info_pane = ig.bundle_list.info_pane(ig).unwrap_or_else(|e|{
let m = "error rendering bundle list";
error!("{}: {}", m, e);
Html::from_txt(m)
#[ext(pub)]
impl MgmtBundleList {
#[throws(IE)]
- fn info_pane(&self) -> Html {
+ fn info_pane(&self, ig: &Instance) -> Html {
#[derive(Serialize,Debug)]
struct RenderPane {
bundles: Vec<RenderBundle>,