X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7c55a5cb3b07f40ab1897a7d746de27317255c42..bfc021edf3566982671bd2bd09db3c8667fc756a:/app/views/old_relations/show.html.erb diff --git a/app/views/old_relations/show.html.erb b/app/views/old_relations/show.html.erb index cfa27c1ad..dd52b3833 100644 --- a/app/views/old_relations/show.html.erb +++ b/app/views/old_relations/show.html.erb @@ -9,3 +9,15 @@ <%= link_to t("browse.download_xml"), relation_version_path(*@feature.id) %> <% end %> + +
+ <% if @feature.version > 1 %> + <%= link_to "<< #{t('browse.version')} ##{@feature.version - 1}", old_relation_path(@feature.relation_id, @feature.version - 1) %> + · + <% end %> + <%= link_to t("browse.view_history"), relation_history_path(@feature.relation_id) %> + <% if @feature.version < @feature.current_relation.version %> + · + <%= link_to "#{t('browse.version')} ##{@feature.version + 1} >>", old_relation_path(@feature.relation_id, @feature.version + 1) %> + <% end %> +