Skip to content

Commit

Permalink
Removed raw record date and count from main entity page
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesnottabs committed Aug 17, 2023
1 parent 40d4ad9 commit 0b230a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions app/controllers/entities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,8 @@ def show
@similar_people = entity.natural_person? ? similar_people(entity) : nil
end

# raw_records = RAW_DATA_RECORD_REPOSITORY.all_for_entity(entity)
@data_source_names = DATA_SOURCE_REPOSITORY.data_source_names_for_entity(entity)

unless @data_source_names.empty?
@newest_raw_record = Date.current # RAW_DATA_RECORD_REPOSITORY.newest_for_entity_date(entity)
@raw_record_count = 1 # raw_records.size
end

# Conversion
@oc_data = get_opencorporates_company_hash(entity, sparse: true) || {}

Expand Down
4 changes: 1 addition & 3 deletions app/views/entities/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@
%ul
%li
%p= @data_source_names.to_sentence
%p.meta-secondary
= t('entities.provenance.latest_data', date: @newest_raw_record.to_date)
%li
= link_to(t('entities.provenance.detail', count: @raw_record_count), raw_entity_path(@sentity.id))
= link_to(t('entities.provenance.detail'), raw_entity_path(@sentity.id))


- if @oc_data[:restricted_for_marketing]
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ en:
latest_data: 'Latest data: %{date}'
detail:
one: 'See the original source record'
other: 'See the %{count} original source records'
other: 'See the original source records'
data_sources:
show:
data_availability_title: Data availability and license
Expand Down

0 comments on commit 0b230a0

Please sign in to comment.