diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-24 11:37:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-24 11:37:29 -0600 |
| commit | f91590cbd2f62f5a71a854617f6f2b769956418e (patch) | |
| tree | d60ec643f3cfc6650358216eac246c7648c511cd /templates | |
| parent | 594dbca64f7327b0210ae98bf97c4ffe86faac40 (diff) | |
Embed the profile pdf
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/community.md.erb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/community.md.erb b/templates/community.md.erb index d8fc74e..c2f6bab 100644 --- a/templates/community.md.erb +++ b/templates/community.md.erb @@ -13,6 +13,14 @@ | 45-54 | <%= self[:male_45_54] %> | <%= self[:fem_45_54] %> | <%= self[:other_45_54] %> | | | <%= self[:male_cnt] %> | <%= self[:female_cnt] %> | <%= self[:other_cnt] %> | -[homepage]: https://www.calgary.ca/communities/profiles/<%= name.parameterize %>.html -[profile]: https://www.calgary.ca/content/dam/www/csps/cns/documents/community_social_statistics/community-profiles/<%= name.parameterize %>.pdf -[projection]: https://www.calgary.ca/content/dam/www/csps/cns/documents/community_social_statistics/<%= name.parameterize %>-pp.pdf + +<object data="<%= profile_url %>" type="application/pdf" width="700px" height="700px"> + <embed src="<%= profile_url %>"> + <p><a href="<%= profile_url %>">Download PDF</a>.</p> + </embed> +</object> + + +[homepage]: <%= homepage_url %> +[profile]: <%= profile_url %> +[projection]: <%= projection_url %> |
