There’s a whole lot more you can do in Fizzy. In the video below 37signals founder and CEO, Jason Fried, will walk you through the basics in just 8 minutes.
+
+
+ HTML
+
+ playground.cards.create! creator: creator, title: "Grab the invite link to invite someone else", status: "published", description: <<~HTML
+
Open Fizzy menu, select “+ Add people”, then copy the invite link. You can give this link to someone else so they can make an login for themselves in your account.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Head back home to check out activity", status: "published", description: <<~HTML
+
Hit “1” or pull down the BOXCAR menu and select “Home”.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Check out all cards assigned to you", status: "published", description: <<~HTML
+
Pull down the Fizzy menu at the top of the screen, and select “Assigned to me” or just hit “3” on your keyboard any time.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Open the Fizzy menu", status: "published", description: <<~HTML
+
The Fizzy menu is how you get around the app. Click “Fizzy” at the top of the screen or hit the “J” key on your keyboard to pop it open.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Assign this card to yourself", status: "published", description: <<~HTML
+
Click the little head with the + next to it, pick yourself.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Tag this card “Design” then move it to YES", status: "published", description: <<~HTML
+
Click the little Tag icon, type “design”, then “Create tag”. Then, move the card to the new “YES” column you created in the previous step.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Make two more columns", status: "published", description: <<~HTML
+
+
Make one called "Yes"
+
Make another called "Working on"
+
+
+
Go back to the Board view, click the little “+” to the right of the DONE column, name the column, pick a color, then do it again.
+
+
After that, drag this card to “DONE” or select “DONE” in the sidebar.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Move this card to NOT NOW", status: "published", description: <<~HTML
+
You can either select “NOT NOW” over in the sidebar, or you can go back out to the board view and drag this card into the “NOT NOW” column on the left side.
+ HTML
+
+ playground.cards.create! creator: creator, title: "Rename this card", status: "published", description: <<~HTML
+
+
Click the title and you can rename the card, change the description, or add more information to the card.
+
Then, hit "Mark as Done" at the bottom of the card.
+
Finally, hit “←Playground” in the top left of the screen to go back to the board.
+
+ HTML
+ end
+
+ def delete_everything
+ Current.set session: session do
+ Collection.destroy_all
+ end
+ end
+end
diff --git a/app/models/collection.rb b/app/models/collection.rb
index 1bfc4be2a..ae09d9471 100644
--- a/app/models/collection.rb
+++ b/app/models/collection.rb
@@ -11,11 +11,4 @@ class Collection < ApplicationRecord
scope :alphabetically, -> { order("lower(name)") }
scope :ordered_by_recently_accessed, -> { merge(Access.ordered_by_recently_accessed) }
-
- after_destroy :ensure_default_collection
-
- private
- def ensure_default_collection
- Collection.create!(name: "Cards") if Collection.none?
- end
end
diff --git a/app/models/concerns/attachments.rb b/app/models/concerns/attachments.rb
index f4328600e..1d1c2c4d6 100644
--- a/app/models/concerns/attachments.rb
+++ b/app/models/concerns/attachments.rb
@@ -28,6 +28,22 @@ module Attachments
attachments.any?
end
+ def remote_images
+ @remote_images ||= rich_text_record&.body&.attachables&.grep(ActionText::Attachables::RemoteImage) || []
+ end
+
+ def has_remote_images?
+ remote_images.any?
+ end
+
+ def remote_videos
+ @remote_videos ||= rich_text_record&.body&.attachables&.grep(ActionText::Attachables::RemoteVideo) || []
+ end
+
+ def has_remote_videos?
+ remote_videos.any?
+ end
+
private
def rich_text_record
@rich_text_record ||= begin
diff --git a/app/views/action_text/attachables/_remote_image.html.erb b/app/views/action_text/attachables/_remote_image.html.erb
new file mode 100644
index 000000000..174a95c5e
--- /dev/null
+++ b/app/views/action_text/attachables/_remote_image.html.erb
@@ -0,0 +1,8 @@
+
+ <%= image_tag remote_image.url, width: remote_image.width, height: remote_image.height %>
+ <% if caption = remote_image.try(:caption) %>
+
+ <%= caption %>
+
+ <% end %>
+
diff --git a/app/views/action_text/attachables/_remote_video.html.erb b/app/views/action_text/attachables/_remote_video.html.erb
new file mode 100644
index 000000000..5233d062a
--- /dev/null
+++ b/app/views/action_text/attachables/_remote_video.html.erb
@@ -0,0 +1,10 @@
+
+ <%= tag.video controls: true, width: remote_video.width, height: remote_video.height do %>
+ <%= tag.source src: remote_video.url, type: remote_video.content_type %>
+ <% end %>
+ <% if caption = remote_video.try(:caption) %>
+
+ <%= caption %>
+
+ <% end %>
+
diff --git a/app/views/collections/edit/_delete.html.erb b/app/views/collections/edit/_delete.html.erb
index 7f13e84b1..627bfd1bd 100644
--- a/app/views/collections/edit/_delete.html.erb
+++ b/app/views/collections/edit/_delete.html.erb
@@ -1,8 +1,7 @@
-<% if Current.user.collections.many? %>
- <%= form_with model: collection, class: "txt-align-center margin-block-start-auto", method: :delete do |form| %>
- <%= form.button class: "btn txt-negative borderless txt-small", data: { turbo_confirm: "Are you sure you want to permanently delete this board?" } do %>
- <%= icon_tag "trash" %>
- Delete this board
- <% end %>
+<%= form_with model: collection, class: "txt-align-center margin-block-start-auto", method: :delete do |form| %>
+ <%= form.button class: "btn txt-negative borderless txt-small", data: { turbo_confirm: "Are you sure you want to permanently delete this board?" } do %>
+ <%= icon_tag "trash" %>
+ Delete this board
<% end %>
<% end %>
+
diff --git a/app/views/events/event/_attachments.html.erb b/app/views/events/event/_attachments.html.erb
index 9a255e8cb..faaf73f5a 100644
--- a/app/views/events/event/_attachments.html.erb
+++ b/app/views/events/event/_attachments.html.erb
@@ -1,19 +1,7 @@
-<% if eventable&.has_attachments? %>
+<% if eventable&.has_attachments? || eventable&.has_remote_images? || eventable&.has_remote_videos? %>
- <% eventable.attachments.each do |attachment| %>
- <% variant = Attachments::VARIANTS[:small] %>
- <% width = attachment.metadata["width"] %>
- <% height = attachment.metadata["height"] %>
-
- <% if attachment.previewable? %>
- <%= image_tag url_for(attachment.preview(variant)), class: "attachment attachment--image", width: width, height: height %>
- <% elsif attachment.variable? %>
- <%= image_tag url_for(attachment.variant(variant)), class: "attachment attachment--image", width: width, height: height %>
- <% else %>
-