Skip to content

Commit

Permalink
Merge pull request #880 from unepwcmc/feat/70/priv-policy
Browse files Browse the repository at this point in the history
feat/70/priv policy
  • Loading branch information
sergiomarrocoli authored Sep 22, 2022
2 parents 2a17f4f + af19c65 commit 275e2fb
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 90 deletions.
13 changes: 9 additions & 4 deletions app/controllers/mobile_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
class MobileController < ApplicationController
layout 'mobile'

def terms_and_conditions
@hero = t('mobile.terms.hero')
@body = t('mobile.terms.body')
render 'shared/_mobile'
end

# TODO: uncomment when privacy policy content is updated
# def privacy_policy
# end
def privacy_policy
@hero = t('mobile.privacy.hero')
@body = t('mobile.privacy.body')
render 'shared/_mobile'
end
end
6 changes: 0 additions & 6 deletions app/views/mobile/privacy_policy.html.erb

This file was deleted.

9 changes: 0 additions & 9 deletions app/views/mobile/terms_and_conditions.html.erb

This file was deleted.

12 changes: 12 additions & 0 deletions app/views/shared/_mobile.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<section class="mobile-header">
<div class="mobile-header__hero">
<h3>Species+</h3>
<h2><%= @hero %></h2>
</div>
</section>
<section class="mobile-body">
<% @body.each do |section| %>
<h4><%= section[:title]&.html_safe %></h4>
<%= section[:description]&.html_safe %>
<% end %>
</section>
Loading

0 comments on commit 275e2fb

Please sign in to comment.