Skip to content

Commit

Permalink
Merge pull request #689 from unepwcmc/fix/261-styling
Browse files Browse the repository at this point in the history
feat: moved download link to same line as latest update
  • Loading branch information
lucacug authored and sergiomarrocoli committed Jun 17, 2022
2 parents f7530db + 19b0ef3 commit caf8af7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 4.8.15
- Styled download global statistics link on homepage

### 4.8.14
- Added global statistics download
- Fixed PAME file downloads
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ gem 'comfortable_mexican_sofa', '~> 2.0.0'
gem 'nokogiri', '~> 1.10.4'
gem 'tinymce-rails', '~> 4.3.2'
gem 'phantompdf', '~> 1.2.2'
gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0'
gem 'ed25519', '>= 1.2', '< 2.0'
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ GEM
aws-sigv4 (1.1.0)
aws-eventstream (~> 1.0, >= 1.0.2)
bcrypt (3.1.13)
bcrypt_pbkdf (1.1.0)
best_in_place (3.0.3)
actionpack (>= 3.2)
railties (>= 3.2)
Expand Down Expand Up @@ -1042,6 +1043,7 @@ GEM
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
ed25519 (1.3.0)
ejs (1.1.1)
elasticsearch (7.2.1)
elasticsearch-api (= 7.2.1)
Expand Down Expand Up @@ -1317,6 +1319,7 @@ DEPENDENCIES
autoprefixer-rails
awesome_print
aws-sdk (= 3.0.1)
bcrypt_pbkdf (>= 1.0, < 2.0)
best_in_place (~> 3.0.1)
bourbon
byebug (~> 9.0, >= 9.0.5)
Expand All @@ -1339,6 +1342,7 @@ DEPENDENCIES
devise (~> 4.7.1)
dotenv (~> 0.11.1)
dotenv-deployment
ed25519 (>= 1.2, < 2.0)
ejs
elasticsearch (~> 7.2.0)
exception_notification (~> 4.3.0)
Expand Down
6 changes: 4 additions & 2 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

<section class="container spacer-small--top">
<%= render partial: "partials/cards/facts", locals: { cards: @site_facts } %>
<p class="p-larger no-margin--top"><span class="bold">Statistics updated: </span><%= @update_date %></p>
<%= link_to('Download latest global statistics', global_statistics_download_path) %>
<p class="p-larger no-margin--top">
<span class="bold">Statistics updated: </span><%= @update_date %>
<%= link_to('Download latest global statistics', global_statistics_download_path, { class: "margin-space--left" }) %>
</p>
</section>

<%= render partial: "partials/search/protected-areas", locals: { config: @config_search_areas } %>
Expand Down

0 comments on commit caf8af7

Please sign in to comment.