* Adds options + option builder + metadata parsing for media thumbnails * Added release-type options to media profile; built option parser for indexing operations * Added new media_profile options to creation form; made show helper for rendering database items * Added options for downloading/embedding metadata * Adds option on sources to not download media (index only) * reformatted docs
21 lines
451 B
Elixir
21 lines
451 B
Elixir
defmodule PinchflatWeb.MediaProfiles.MediaProfileHTML do
|
|
use PinchflatWeb, :html
|
|
|
|
embed_templates "media_profile_html/*"
|
|
|
|
@doc """
|
|
Renders a media_profile form.
|
|
"""
|
|
attr :changeset, Ecto.Changeset, required: true
|
|
attr :action, :string, required: true
|
|
|
|
def media_profile_form(assigns)
|
|
|
|
def friendly_format_type_options do
|
|
[
|
|
{"Include (default)", :include},
|
|
{"Exclude", :exclude},
|
|
{"Only", :only}
|
|
]
|
|
end
|
|
end
|