We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Scriviener HTML with Phoenix 1.5.3 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?
The text was updated successfully, but these errors were encountered:
did you try to configure a view_style ? For example :
view_style
config :scrivener_html, routes_helper: Elijah.Routers.Helpers, view_style: :bootstrap
Sorry, something went wrong.
@romaintb that didn't seem to help.
No branches or pull requests
Using Scriviener HTML with Phoenix 1.5.3 and the pagination component is appearing as an unordered list. Not sure why.
my code:
config.exs:
view:
controller:
index.html.eex:
html output:
Any suggestions?
The text was updated successfully, but these errors were encountered: