Current section
Files
Jump to
Current section
Files
lib/phoenix/views/provider_view.ex
defmodule HubIdentityElixir.Phoenix.ProviderView do
# @moduledoc false
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
use Phoenix.View,
root: "lib/phoenix/templates",
namespace: HubIdentityElixir
# Import basic rendering functionality (render, render_layout, etc)
import Phoenix.View
import HubIdentityElixir.Phoenix.ErrorHelpers
def link_helper(provider) do
provider["logo_url"]
|> img_tag(alt: "#{provider["name"]} authentication link")
|> link(to: provider["url"])
end
end