@@ -459,8 +459,8 @@ defmodule ComponentsGuideWeb.ResearchView do
459459 < ul >
460460 < li > Status: <%= caniuse_status ( @ status ) %> </ li >
461461 < li > < . link href = { @ spec } > Read the spec</ . link > </ li >
462- <%= for % { "title" => title , "url" => url } <- links do %>
463- < li > < . link href = { url } > <%= title %> </ . link > </ li >
462+ <%= for link <- @ links do %>
463+ < li > < . link href = { link [ " url" ] } > <%= link [ " title" ] %> </ . link > </ li >
464464 <% end %>
465465 </ ul >
466466 < dl >
@@ -493,28 +493,28 @@ defmodule ComponentsGuideWeb.ResearchView do
493493 <: title > <%= "#{ @ name } Spec" %> </: title >
494494 <%= Section.description_list([
495495 {"Specs",
496- specs
496+ @ specs
497497 |> Enum.map(fn
498498 "rfc" <> _ = spec -> link(spec, to: "https: //tools.ietf.org /html/" < > spec)
499499 spec - > spec
500500 end )
501501 |> Section . unordered_list ( class: "flex list-disc ml-4 space-x-8" ) } ,
502- { "Media (MIME) Type" , Keyword . get ( metadata , :media_type ) }
502+ { "Media (MIME) Type" , Keyword . get ( @ metadata , :media_type ) }
503503 ] ) %>
504504 </ . card >
505505 """
506506 end
507507
508- def super_tiny_icon ( % { name: name , url: url , urls: urls } = assigns ) do
508+ def super_tiny_icon ( % { name: _ , url: _ , urls: _ } = assigns ) do
509509 ~H"""
510510 < . card source = "Super Tiny Icons " source_url = "https://www.supertinyicons.org/ " >
511- <: title > <%= "#{ name |> String . capitalize ( ) } Icon" %> </: title >
511+ <: title > <%= "#{ @ name |> String . capitalize ( ) } Icon" %> </: title >
512512 < div class = "flex flex-row space-x-4 " >
513513 < img src = { @ url } width = { 80 } height = { 80 } >
514514 < . description_list >
515- <: item title = "URL " data = { for ( url <- urls , do: link ( url , to: url ) ) } />
515+ <: item title = "URL " data = { for ( url <- @ urls , do: link ( url , to: url ) ) } />
516516 <: item title = "Size " >
517- <%= client_include ( "/~/content-length?" <> URI . encode_query ( url: url ) , "loading…" ) %>
517+ <%= client_include ( "/~/content-length?" <> URI . encode_query ( url: @ url ) , "loading…" ) %>
518518 </: item >
519519 </ . description_list >
520520 </ div >
0 commit comments