diff --git a/web/views/layout_view.ex b/web/views/layout_view.ex index b77e10c..39aa40c 100644 --- a/web/views/layout_view.ex +++ b/web/views/layout_view.ex @@ -1,5 +1,6 @@ defmodule Asciinema.LayoutView do use Asciinema.Web, :view + import Asciinema.UserView, only: [avatar_url: 1, profile_path: 1] def page_title(conn) do case conn.assigns[:page_title] do diff --git a/web/views/user_view.ex b/web/views/user_view.ex index eea2cc5..c9e4eba 100644 --- a/web/views/user_view.ex +++ b/web/views/user_view.ex @@ -1,4 +1,5 @@ defmodule Asciinema.UserView do + use Asciinema.Web, :view alias Asciinema.{Gravatar, User} def avatar_url(user) do diff --git a/web/web.ex b/web/web.ex index 2999ebb..a63e8c6 100644 --- a/web/web.ex +++ b/web/web.ex @@ -56,7 +56,6 @@ defmodule Asciinema.Web do import Asciinema.Router.Helpers.Extra import Asciinema.ErrorHelpers import Asciinema.Gettext - import Asciinema.UserView end end