@@ -39,28 +39,28 @@ def get_profile(geo, profile_name, request):
39
39
40
40
tabs = []
41
41
if not data ['demographics' ].get ('is_missing' ):
42
- tabs .append ({'name' : 'Demographics' , 'href' : '#demographics' })
42
+ tabs .append ({'name' : 'Demographics' , 'href' : '#demographics' , 'class' : 'fa fa-user' })
43
43
44
44
if not data ['health' ].get ('is_missing' ):
45
- tabs .append ({'name' : 'Health' , 'href' : '#health' })
45
+ tabs .append ({'name' : 'Health' , 'href' : '#health' , 'class' : 'fa fa-medkit' })
46
46
47
47
if not data ['education' ].get ('is_missing' ):
48
- tabs .append ({'name' : 'Education' , 'href' : '#education' })
48
+ tabs .append ({'name' : 'Education' , 'href' : '#education' , 'class' : 'fa fa-graduation-cap' })
49
49
50
50
if not data ['agriculture' ].get ('is_missing' ):
51
- tabs .append ({'name' : 'Agriculture' , 'href' : '#agriculture' })
51
+ tabs .append ({'name' : 'Agriculture' , 'href' : '#agriculture' , 'class' : 'fa fa-tree' })
52
52
53
53
if not data ['crime' ].get ('is_missing' ):
54
- tabs .append ({'name' : 'Corruption & Crime' , 'href' : '#crime' })
54
+ tabs .append ({'name' : 'Corruption & Crime' , 'href' : '#crime' , 'class' : 'fa fa-shield' })
55
55
56
56
if not data ['drugs' ].get ('is_missing' ):
57
- tabs .append ({'name' : 'Drugs' , 'href' : '#drugs' })
57
+ tabs .append ({'name' : 'Drugs' , 'href' : '#drugs' , 'class' : 'fa fa-ban' })
58
58
59
59
if not data ['finance' ].get ('is_missing' ):
60
- tabs .append ({'name' : 'Finances' , 'href' : '#finance' })
60
+ tabs .append ({'name' : 'Finances' , 'href' : '#finance' , 'class' : 'fa fa-money' })
61
61
62
62
if not data ['others' ].get ('is_missing' ):
63
- tabs .append ({'name' : 'Others' , 'href' : '#others' })
63
+ tabs .append ({'name' : 'Others' , 'href' : '#others' , 'class' : 'fa fa-folder' })
64
64
65
65
data ['tabs' ] = tabs
66
66
return data
0 commit comments