<div dir="ltr"><div><div><div><div><div><font face="monospace,monospace">Hi Pierre,<br><br></font></div><font face="monospace,monospace">Thanks for the advice and the quick answer. I managed to partly implement what you mentioned. Now my dashboard plugin generates as many pages as I tell it to in the master.cfg file. However, I don't seem to get how to properly name the templates. In the old dashboard I had one dashboard.tpl.jade file. Do I need multiple template files now? My current state points to this:<br><br>templateUrl: "dashboards/#{project}/index.html"<br><br></font></div><span style="font-family:monospace,monospace">And my src/module folder structure is this:<br><br>.<br>├── dashboard.route.coffee<br>├── dashboard.tpl.jade<br>├── main.module.coffee<br></span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">└</span>── main.module.spec.coffee<br></span><br></div><font face="monospace,monospace">Sorry for the seemingly dumb question, but this project has actually been my starting point for learning Angular and I haven't yet managed to get a grip of it :)<br><br></font></div><font face="monospace,monospace">Thanks,<br></font></div><font face="monospace,monospace">Gabe<br></font></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-26 17:10 GMT+03:00 Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gabe,<div><br></div><div>You can have one dashboard plugin generate several pages. </div><div><br></div><div>This is what the wsgi_dashboard is doing, and I would suggest to get inspiration from it:</div><div><a href="https://github.com/buildbot/buildbot/blob/master/www/wsgi_dashboards/src/module/dashboards.route.coffee#L4" target="_blank">https://github.com/buildbot/<wbr>buildbot/blob/master/www/wsgi_<wbr>dashboards/src/module/<wbr>dashboards.route.coffee#L4</a><br></div><div><br></div><div>your config would look like:</div><div><span style="color:rgb(33,33,33);font-family:monospace,monospace"><br></span></div><div><span style="color:rgb(33,33,33);font-family:monospace,monospace">c['www'] = dict(port=8020,</span><br style="color:rgb(33,33,33);font-family:monospace,monospace"><span style="color:rgb(33,33,33);font-family:monospace,monospace">                plugins=dict(waterfall_view={}</span><span style="color:rgb(33,33,33);font-family:monospace,monospace"><wbr>, console_view={}, grid_view={}, my_dashboard={projects: ['proj1', 'proj2'</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">, 'proj3'</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">, 'proj4']</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">}))</span> </div><div><br></div><div><br></div><div>Regards,</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">Le jeu. 26 oct. 2017 à 11:30, Gabriel Nagy <<a href="mailto:gabrielnagy@me.com" target="_blank">gabrielnagy@me.com</a>> a écrit :<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace">Hi guys,<br><br></span></div><span style="font-family:monospace,monospace">I've been developing my own web interface dashboard thingy based on Pierre's tutorial here: <a href="https://medium.com/buildbot/buildbot-ui-plugin-for-python-developer-ef9dcfdedac0" target="_blank">https://medium.com/buildbot/<wbr>buildbot-ui-plugin-for-python-<wbr>developer-ef9dcfdedac0</a><br><br></span></div><span style="font-family:monospace,monospace">My CI setup is as follows:<br></span></div><span style="font-family:monospace,monospace">4 projects with about 6-7 builders each, and 1 dashboard per project that does mostly what Console View does, except it filters by the project parameter of my user try jobs.<br><br></span></div><span style="font-family:monospace,monospace">The master setup is as follows:<br><br>c['www'] = dict(port=8020,<br>                plugins=dict(waterfall_view={}<wbr>, console_view={}, grid_view={}, my_dashboard_1={}, my_dashboard_2={}, my_dashboard_3={}, my_dashboard_4={}))<br><br></span></div><span style="font-family:monospace,monospace">My question is how can I have only one plugin, and pass some parameters to it so I can run something like this:<br><br>c['www'] = dict(port=8020,<br>               
 plugins=dict(waterfall_view={}<wbr>, console_view={}, grid_view={}, 
my_dashboard={project: 'proj1'}, my_dashboard={project: 'proj2'}, my_dashboard={project: 'proj3'}, my_dashboard={project: 'proj4'}))<br><br></span></div><span style="font-family:monospace,monospace">Is something like this even possible? I find it redundant to create 4 separate dashboard plugins where the only difference is one line in the controller file. There isn't much documentation on this side, and I have to admit I'm a bit of a newbie concerning web development. <br><br></span></div><span style="font-family:monospace,monospace">Thanks,<br></span></div><span style="font-family:monospace,monospace">Gabe<br></span></div></div></div>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div>
</blockquote></div><br></div>