Skip to content

Commit

Permalink
Hotfix/patreon update (#398)
Browse files Browse the repository at this point in the history
* Added patreon link to the _footer.html.haml file for all pages

* Actually added patreon.png to app/assets/images/patreon.png

* Moved google-play image to the same area as the app store image.

* Added the patreon image with link to the index page. The patreon.png was also added to app/assets/images

* Changed code to make images side by side

* fixed syntax issue in haml

* Update to correct haml syntax

* remove second offset
  • Loading branch information
KurtPrice authored and tkwidmer committed Dec 28, 2017
1 parent 7ec48d2 commit 74e2fc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file added app/assets/images/patreon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/views/layouts/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
refuge restrooms is open source.
%a{:href => "https://github.com/RefugeRestrooms/refugerestrooms"} code on github.
%br/
contribute to the project
%a{:href => "https://patreon.com/refugerestrooms"} on patreon.
%br/
= "\© copyleft #{Date.today.year} refuge restrooms.".html_safe
8 changes: 4 additions & 4 deletions app/views/pages/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
= button_to new_restroom_path, method: :get, class: "btn btn-lg btn-purple splash-add-restroom-btn" do
Add A Restroom
%i.fa.fa-plus-square-o.fa-2x

.row.even-more-headroom
.col-xs-12.col-sm-6.col-sm-offset-3
.col-xs-6.col-sm-3.col-sm-offset-3
= link_to image_tag("app-store.svg", role: "img"), "https://itunes.apple.com/us/app/refuge-restrooms/id968531953?mt=8"

.col-xs-6.col-sm-3
= link_to image_tag("play-store.png"), "https://play.google.com/store/apps/details?id=org.refugerestrooms"
.row.more-headroom.splash-bottom-padding
.col-xs-12.col-sm-6.col-sm-offset-3
= link_to image_tag("play-store.png"), "https://play.google.com/store/apps/details?id=org.refugerestrooms"
= link_to image_tag("patreon.png"), "https://patreon.com/refugerestrooms"
= render 'layouts/footer'

0 comments on commit 74e2fc5

Please sign in to comment.