add websub concern to models

This commit is contained in:
James Smith committed 2026-10-06 09:17:45 +01:00
1 parent 12afe150df
commit ba1f62ed13
3 files changed
+6

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ class Model < ApplicationRecord
include FaspClient::DataSharing::Lifecycle
include Likeable
include Relatable
include WebSubbable
broadcasts_refreshes
+4
View File
@@ -2,4 +2,8 @@
<%= PageTitle title: Model.model_name.human(count: 100), heading: false %>
<% end %>
<% content_for :head do %>
<%= web_sub_tags collection: true %>
<% end %>
<%= render "list" %>
+1
View File
@@ -7,6 +7,7 @@
<%- if @model.entrypoint %>
<%= tag.link rel: "alternate", as: "spatial-entrypoint", type: @model.entrypoint.mime_type, href: model_model_file_raw_url(@model, @model.entrypoint.filename, anchor: @model.entrypoint_fragment) %>
<%- end %>
<%= web_sub_tags %>
<% end %>
<div itemscope itemtype="https://schema.org/3DModel">