Skip to content
New issue

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

Scrivener HTML 1.8 Displaying as Unordered List #100

Open
mazz opened this issue Aug 4, 2020 · 2 comments
Open

Scrivener HTML 1.8 Displaying as Unordered List #100

mazz opened this issue Aug 4, 2020 · 2 comments

Comments

@mazz
Copy link

mazz commented Aug 4, 2020

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="">&hellip;</span></li><li class=""><a class="" href="?page=12" rel="canonical">12</a></li><li class=""><a class="" href="?page=2" rel="next">&gt;&gt;</a></li></ul></nav>

Any suggestions?

@romaintb
Copy link

did you try to configure a view_style ?
For example :

config :scrivener_html,
  routes_helper: Elijah.Routers.Helpers,
  view_style: :bootstrap

@mazz
Copy link
Author

mazz commented Sep 5, 2020

@romaintb that didn't seem to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants