Skip to content

Commit caad391

Browse files
committed
separated layout for privacy page
1 parent 316fa1a commit caad391

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

lib/coliving_web/controllers/page_controller.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ defmodule ColivingWeb.PageController do
1515
ios_source_code_url = Application.get_env(:coliving, :ios_source_code_url)
1616

1717
render(conn, "privacy.html",
18+
layout: {ColivingWeb.LayoutView, "clean.html"},
1819
log_usage_enabled: log_usage_enabled,
19-
page_title: "Privacy",
20+
page_title: "Privacy Policy",
2021
url: url,
2122
server_source_code_url: server_source_code_url,
2223
ios_source_code_url: ios_source_code_url
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
7+
<title><%= assigns[:page_title] || Application.get_env(:coliving, :app_title) %></title>
8+
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
9+
</head>
10+
<body>
11+
<header>
12+
<section class="container">
13+
<a href="#" class="phx-logo">
14+
<h2><%= assigns[:page_title] || Application.get_env(:coliving, :app_title) %></h2>
15+
</a>
16+
</section>
17+
</header>
18+
<main role="main" class="container">
19+
<%= @inner_content %>
20+
</main>
21+
</body>
22+
</html>

lib/coliving_web/templates/page/privacy.html.eex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Like AGPL-3.0, GPL-3.0 also forces the distributor to share the source with you.
5050
So, this policy is valid only if you have downloaded iOS application from <a href="https://apps.apple.com/app/CoThings/id1511173372">here.</a></p>
5151

5252
<p>You can always download the latest version from App Store.</p>
53-
<p><img src="/images/appstore.svg" alt="Download CoThings iOS application" /></p>
53+
<p><a href="https://apps.apple.com/app/CoThings/id1511173372"><img src="/images/appstore.svg" alt="Download CoThings iOS application" /></a></p>
5454

5555
<h2> Required Device Permissions </h2>
5656

@@ -94,4 +94,4 @@ In that case you have to do it manually.
9494
<% end %>
9595
<p>
9696

97-
Last Updated: 2020/06/13
97+
Last Updated: 2020/06/15

0 commit comments

Comments
 (0)