maz
Scrivener HTML 1.8 Displaying as Unordered List
Using Scriviener HTML with Phoenix 1.5 and the pagination component is appearing as an unordered list. Not sure why.
my code:
config.exs:
config :scrivener_html,
routes_helper: Elijah.Routers.Helpers
view:
defmodule ElijahWeb.UserView do
use ElijahWeb, :view
import Scrivener.HTML
end
controller:
def index(conn, params) do
page =
users()
|> Repo.paginate(params)
conn |> render("index.html", users: page.entries, page: page)
end
index.html.eex:
<%= pagination_links @page %>
html output:
<nav><ul class="pagination"><li class="active"><a class="">1</a></li><li class=""><a class="" href="?page=2" rel="next">2</a></li><li class=""><a class="" href="?page=3" rel="canonical">3</a></li><li class=""><a class="" href="?page=4" rel="canonical">4</a></li><li class=""><a class="" href="?page=5" rel="canonical">5</a></li><li class=""><a class="" href="?page=6" rel="canonical">6</a></li><li class=""><span class="">…</span></li><li class=""><a class="" href="?page=12" rel="canonical">12</a></li><li class=""><a class="" href="?page=2" rel="next">>></a></li></ul></nav>
Any suggestions?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









