Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #217 from OpenDataPolicingNC/TRH-2624-remove-toggle
Browse files Browse the repository at this point in the history
[TRH-2624] Re-Add Ethnicity Data To NC Agency Page
  • Loading branch information
Dmitriy Chukhin committed Jan 17, 2018
2 parents 2be42e9 + b7e1601 commit 7039e15
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion traffic_stops/static/js/app/states/nc/ContrabandHitRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ContrabandTable = C.ContrabandTableBase.extend({
return Stops.pprint.values();
},

types: [Stops.races]
types: [Stops.races, Stops.ethnicities]
});

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const LikelihoodOfSearch = C.LikelihoodOfSearchBase.extend({
});

const LikelihoodSearchTable = C.LikelihoodSearchTableBase.extend({
types: [Stops.races],
types: [Stops.races, Stops.ethnicities],

Stops: Stops,

Expand Down
2 changes: 1 addition & 1 deletion traffic_stops/static/js/app/states/nc/StopSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const StopSearchHandler = C.StopSearchHandlerBase.extend({

major_type: Stops.races,

types: [Stops.races],
types: [Stops.races, Stops.ethnicities],

_pprint: (d) => Stops.pprint.get(d)
});
Expand Down
2 changes: 1 addition & 1 deletion traffic_stops/static/js/app/states/nc/Stops.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const StopRatioTimeSeries = C.StopRatioTimeSeriesBase.extend({
});

export const StopsTable = C.StopsTableBase.extend({
types: [Stops.races],
types: [Stops.races, Stops.ethnicities],

_get_header_rows: function () {
return Stops.pprint.values();
Expand Down
4 changes: 3 additions & 1 deletion traffic_stops/static/js/app/states/nc/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default {
'black': 'Black',
'native_american': 'Native American',
'asian': 'Asian',
'other': 'Other'
'other': 'Other',
'hispanic': 'Hispanic',
'non-hispanic': 'Non-hispanic'
}),
colors: [
"#1C9647", // dark green
Expand Down
1 change: 1 addition & 0 deletions traffic_stops/templates/agency_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ <h1>{{ object }}</h1>
<li><a href="#stop-percentage">Traffic Stops</a></li>
<li><a href="#search-percentage-dept">{% if officer_id %}Officer{% else %}Departmental{% endif %} Search Rate</a></li>
</ul>
{% block race-selector %}{% endblock race-selector %}
</div>
</nav>

Expand Down

0 comments on commit 7039e15

Please sign in to comment.