Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Merge pull request #50 from ednapiranha/bug847554
Browse files Browse the repository at this point in the history
added privacy policy stub (bug 847554)
  • Loading branch information
mattbasta committed Mar 5, 2013
2 parents 76e13a3 + 0c76cbb commit 243479c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hearth/media/js/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ define(
'app': '/app/{0}',
'ratings': '/app/{0}/ratings',
'abuse': '/app/{0}/report',
'privacy': '/app/{0}/privacy',
'settings': '/user/settings',
'search': '/search',
'feedback': '/feedback',
'feedback': '/feedback'
};

var urlparams = utils.urlparams;
Expand Down
7 changes: 7 additions & 0 deletions hearth/media/js/views/app/privacy.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
define('views/app/privacy', [], function() {

return function(builder, args) {
builder.start('detail/privacy.html', {slug: args[0]});

builder.z('type', 'leaf');
builder.z('title', 'Privacy Policy'); // No L10n for you!
};
});
11 changes: 11 additions & 0 deletions hearth/templates/detail/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="main privacy-policy infobox c">
<div>
<h3>{{ _('Privacy Policy') }}</h3>
{% defer (url=api('app', [slug])) %}
<p>{{ this.privacy_policy }}</p>

{% placeholder %}
<p>{{ _('Loading privacy policy...') }}</p>
{% end %}
</div>
</div>

0 comments on commit 243479c

Please sign in to comment.