-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduced a general 'data type' filter for the map
- Loading branch information
1 parent
18c94fb
commit 6148d0b
Showing
5 changed files
with
102 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
<% content_for :title, Dendro.label.humanize.pluralize %> | ||
<% content_for :meta_description do %> | ||
List of <%= @pagy.count %> dendrochronological dates from archaeological sites around the world, including measurement, sample and contextual information, and bibliographic references. | ||
<% end %> | ||
<% content_for :title, C14.label.humanize.pluralize %> | ||
<% content_for :meta_description do %>List of <%= @pagy.count %> radiocarbon dates from archaeological sites around the world, including laboratory measurement, sample and contextual information, and bibliographic references.<% end %> | ||
|
||
<div class="container my-5"> | ||
|
||
<h1><%= Dendro.label.pluralize.humanize %></h1> | ||
<p>Showing <%= @pagy.count %> <%= Dendro.label.pluralize(@pagy.count) %>.</p> | ||
<h1><%= C14.label.pluralize.humanize %></h1> | ||
<p>Showing <%= @pagy.count %> <%= C14.label.pluralize(@pagy.count) %>.</p> | ||
|
||
<turbo-frame id="dendros-table"> | ||
<div id="dendros-toolbar" class="d-flex"> | ||
<turbo-frame id="c14s-table"> | ||
<div id="c14s-toolbar" class="d-flex"> | ||
<div class="ms-auto"> | ||
<%= link_to bs_icon("download"), dendros_path(format: :csv, **request.query_parameters), class: "btn btn-sm btn-outline-primary", title: "Download CSV" %> | ||
<%= link_to bs_icon("download"), c14s_path(format: :csv, **request.query_parameters), class: "btn btn-sm btn-outline-primary", title: "Download CSV" %> | ||
</div> | ||
</div> | ||
<%= render "table", dendros: @dendros %> | ||
<%= render "table", c14s: @c14s %> | ||
<%== pagy_bootstrap_nav(@pagy) %> | ||
</turbo-frame> | ||
|
||
<% if can? :create, Dendro %> | ||
<%= link_to 'New Dendro measurement', new_dendro_path, class: 'btn btn-secondary' %> | ||
<% if can? :create, C14 %> | ||
<%= link_to 'New C14 measurement', new_c14_path, class: 'btn btn-secondary' %> | ||
<% end %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters