scrivener_html icon indicating copy to clipboard operation
scrivener_html copied to clipboard

Scrivener HTML 1.8 Displaying as Unordered List

Open mazz opened this issue 5 years ago • 2 comments

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?

mazz avatar Aug 04 '20 23:08 mazz

did you try to configure a view_style ? For example :

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

romaintb avatar Aug 24 '20 19:08 romaintb

@romaintb that didn't seem to help.

mazz avatar Sep 05 '20 17:09 mazz