Torch.PaginationView.prev_link

You're seeing just the function prev_link, go back to Torch.PaginationView module for more information.
Link to this function

prev_link(conn, current_page, sort_opts \\ nil)

View Source

Generates a "< Prev" link to the previous page of results. The link is only returned if there is a previous page.

Examples

iex> prev_link(%Plug.Conn{params: %{}}, 2) |> safe_to_string()
"<a href=\"?page=1\">&lt; Prev</a>"

If the current page is 1, returns nil:

iex> prev_link(%Plug.Conn{params: %{}}, 1)
nil