File tree 2 files changed +10
-2
lines changed
templates/scanpipe/tabset
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 6
6
{% if tab_data.icon_class %}
7
7
< span class ="icon is-small "> < i class ="{{ tab_data.icon_class }} "> </ i > </ span >
8
8
{% endif %}
9
- < span > {{ label|capfirst }}</ span >
9
+ < span >
10
+ {% if tab_data.verbose_name %}
11
+ {{ tab_data.verbose_name }}
12
+ {% else %}
13
+ {{ label|capfirst }}
14
+ {% endif %}
15
+ </ span >
10
16
</ a >
11
17
</ li >
12
18
{% endfor %}
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ def get_tabset_data(self):
199
199
200
200
for label , tab_definition in self .tabset .items ():
201
201
tab_data = {
202
+ "verbose_name" : tab_definition .get ("verbose_name" ),
202
203
"icon_class" : tab_definition .get ("icon_class" ),
203
204
"template" : tab_definition .get ("template" ),
204
205
"fields" : self .get_fields_data (tab_definition .get ("fields" )),
@@ -1093,10 +1094,11 @@ class DiscoveredPackageDetailsView(
1093
1094
],
1094
1095
"icon_class" : "fas fa-plus-square" ,
1095
1096
},
1096
- "extra data " : {
1097
+ "extra_data " : {
1097
1098
"fields" : [
1098
1099
{"field_name" : "extra_data" , "render_func" : render_as_yaml },
1099
1100
],
1101
+ "verbose_name" : "Extra data" ,
1100
1102
"icon_class" : "fas fa-database" ,
1101
1103
},
1102
1104
}
You can’t perform that action at this time.
0 commit comments