mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-19 01:59:48 -05:00
add websub concern to models
This commit is contained in:
3 files changed
+6
No files matched your search
@@ -15,6 +15,7 @@ class Model < ApplicationRecord
|
||||
include FaspClient::DataSharing::Lifecycle
|
||||
include Likeable
|
||||
include Relatable
|
||||
include WebSubbable
|
||||
|
||||
broadcasts_refreshes
|
||||
|
||||
|
||||
@@ -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" %>
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user