2019-09-02 14:29:19 +03:00
< ! DOCTYPE html >
< html lang = " en " class = " h-full " >
< head >
< meta charset = " utf-8 " / >
< meta http - equiv = " X-UA-Compatible " content = " IE=edge " / >
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " / >
2020-03-20 12:41:50 +03:00
< meta name = " description " content = " Plausible is a lightweight and open-source web analytics tool. Your website data is 100% yours and the privacy of your visitors is respected. " / >
2019-09-02 14:29:19 +03:00
< link rel = " icon " type = " image/png " sizes = " 32x32 " href = " <%= PlausibleWeb.Router.Helpers.static_path(@conn, " / images / icon / plausible_favicon . png " ) %> " >
2020-07-01 10:22:26 +03:00
< link rel = " apple-touch-icon " href = " /images/icon/apple-touch-icon.png " >
2020-03-20 12:41:50 +03:00
< title > < % = assigns [ :title ] || " Plausible · Simple, privacy-friendly alternative to Google Analytics " % > < / title >
2019-09-02 14:29:19 +03:00
< link rel = " stylesheet " href = " <%= Routes.static_path(@conn, " / css / app . css " ) %> " / >
< % = render ( " _tracking.html " , assigns ) % >
2021-03-10 15:41:17 +03:00
< script type = " text/javascript " data - pref = " <%= @conn.assigns[:theme] || (@conn.assigns[:current_user] && @conn.assigns[:current_user].theme) %> " src = " <%= Routes.static_path(@conn, " / js / applyTheme . js " ) %> " > < / script >
2019-09-02 14:29:19 +03:00
< / head >
2021-03-16 11:40:25 +03:00
< body class = " flex flex-col bg-gray-50 dark:bg-gray-850 " style = " <%= if !@conn.assigns[:embedded], do: " height : 100 % ; " %> <%= if @conn.assigns[:background], do: " background - color : #{@conn.assigns[:background]}" %>">
2021-03-10 15:41:17 +03:00
< % = if ! @conn . assigns [ :embedded ] do % >
< % = render ( " _header.html " , assigns ) % >
< % = render ( " _notice.html " , assigns ) % >
2020-07-07 16:36:06 +03:00
< % end % >
2019-09-02 14:29:19 +03:00
< main class = " flex-1 " >
2021-03-15 16:56:12 +03:00
< % = Map . get ( assigns , :inner_layout ) || @inner_content % >
2019-09-02 14:29:19 +03:00
< / main >
2021-03-10 15:41:17 +03:00
< % = if @conn . assigns [ :embedded ] do % >
2021-03-15 16:56:12 +03:00
< div data - iframe - height > < / div >
< script type = " text/javascript " src = " <%= Routes.static_path(@conn, " / js / embed . content . js " ) %> " > < / script >
2021-03-10 15:41:17 +03:00
< % else % >
< % = render ( " _footer.html " , assigns ) % >
< % end % >
2019-09-02 14:29:19 +03:00
< script type = " text/javascript " src = " <%= Routes.static_path(@conn, " / js / app . js " ) %> " > < / script >
< / body >
< / html >