You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added a custom dashboard as per this documentation. However, as shown in the attached image of my dashboard, the icon is missing.
Visiting font awesome, as mentioned in the documentation example's comments, I notice icon 'area-chart' has been renamed 'chart-area'. I updated to 'chart-area' as shown below in a snippet of my implementation, but the icon remains empty.
importrequestsimporttimefromflaskimportFlaskfromflaskimportrender_templatefrombuildbot.process.resultsimportstatusToString`
app_buildMetrics=Flask('test', root_path=os.path.dirname(__file__))
# this allows to work on the template without having to restart Buildbotapp_buildMetrics.config['TEMPLATES_AUTO_RELOAD'] =True@app_buildMetrics.route("/index.html")defmain():
builders=app_buildMetrics.buildbot_api.dataGet("/builders")
builds=app_buildMetrics.buildbot_api.dataGet("/builds", limit=20)
# Generate some filler datagraph_data= []
fromrandomimportrandintforiinrange(500,600):
graph_data.append(dict(x=i,
y=randint(i-500,100)))
# Render the updated html and pass in the optional variables to be rendered withreturnrender_template('app_buildMetrics.html',
builders=builders,
builds=builds,
graph_data=graph_data)
defgetAppDict(url_suffix, menu_title, flask_app, menu_spot, menu_icon):
returndict({
'name' : url_suffix,
'caption' : menu_title,
'app' : flask_app,
'order' : menu_spot,
'icon' : menu_icon
})
# Add to BB instancec['www']['plugins']['wsgi_dashboards'] = []
c['www']['plugins']['wsgi_dashboards'].append(getAppDict('build-metrics',
'Build Metrics',
app_buildMetrics,
3,
u'chart-area'))`
I've added a custom dashboard as per this documentation. However, as shown in the attached image of my dashboard, the icon is missing.
Visiting font awesome, as mentioned in the documentation example's comments, I notice icon 'area-chart' has been renamed 'chart-area'. I updated to 'chart-area' as shown below in a snippet of my implementation, but the icon remains empty.
And a corresponding http.log snippet
The text was updated successfully, but these errors were encountered: