when there are no donors yet, draw less attention to that fact :P
This commit is contained in:
parent
be87039cba
commit
75e9fcbe5a
3 changed files with 19 additions and 19 deletions
|
@ -20,12 +20,13 @@ body.static-donate
|
||||||
|
|
||||||
background:
|
background:
|
||||||
image: url(http://images.neopets.com/new_shopkeepers/t_993.gif)
|
image: url(http://images.neopets.com/new_shopkeepers/t_993.gif)
|
||||||
position: ($container-width - 150px - 8px) -8px
|
position: ($container-width - 150px - 8px) -4px
|
||||||
repeat: no-repeat
|
repeat: no-repeat
|
||||||
|
margin-top: 1em
|
||||||
margin-bottom: 1.5em
|
margin-bottom: 1.5em
|
||||||
padding-bottom: 24px
|
padding-bottom: 32px
|
||||||
padding-left: 24px
|
padding-left: 24px
|
||||||
padding-top: 24px
|
padding-top: 32px
|
||||||
|
|
||||||
header, div
|
header, div
|
||||||
+inline-block
|
+inline-block
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class StaticController < ApplicationController
|
class StaticController < ApplicationController
|
||||||
def donate
|
def donate
|
||||||
# TODO: scope by campaign?
|
|
||||||
@campaign = Campaign.current
|
@campaign = Campaign.current
|
||||||
@donations = @campaign.donations.includes(features: :outfit).
|
@donations = @campaign.donations.includes(features: :outfit).
|
||||||
order('created_at DESC')
|
order('created_at DESC')
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
- title "Support Dress to Impress"
|
- title "Support Dress to Impress"
|
||||||
|
|
||||||
= campaign_progress(@campaign) do
|
- if @campaign.progress > 0
|
||||||
We've received #{number_to_currency(@campaign.progress / 100.0)}
|
= campaign_progress(@campaign) do
|
||||||
toward our hosting costs this year.
|
We've received #{number_to_currency(@campaign.progress / 100.0)}
|
||||||
- if @campaign.progress > 0
|
toward our hosting costs this year.
|
||||||
Thanks so much!
|
Thanks so much!
|
||||||
|
|
||||||
= form_tag donations_path, method: 'POST', id: 'donation-form',
|
= form_tag donations_path, method: 'POST', id: 'donation-form',
|
||||||
|
@ -61,18 +61,18 @@
|
||||||
[aws]: http://aws.amazon.com/
|
[aws]: http://aws.amazon.com/
|
||||||
[matts_bat]: http://www.neopets.com/petlookup.phtml?pet=matts_bat
|
[matts_bat]: http://www.neopets.com/petlookup.phtml?pet=matts_bat
|
||||||
|
|
||||||
%h2 Thanks to our lovely donors!
|
- if @donations.present?
|
||||||
|
%h2 Thanks to our lovely donors!
|
||||||
|
%ul#outfits
|
||||||
|
- @donations.each do |donation|
|
||||||
|
- donation.features.each do |feature|
|
||||||
|
%li
|
||||||
|
- if feature.outfit_id? && feature.outfit.image?
|
||||||
|
= link_to image_tag(feature.outfit.image.small.url), feature.outfit
|
||||||
|
- else
|
||||||
|
= image_tag 'default_preview.png'
|
||||||
|
|
||||||
%ul#outfits
|
%header Thanks, #{donation.donor_name.presence || 'Anonymous'}!
|
||||||
- @donations.each do |donation|
|
|
||||||
- donation.features.each do |feature|
|
|
||||||
%li
|
|
||||||
- if feature.outfit_id? && feature.outfit.image?
|
|
||||||
= link_to image_tag(feature.outfit.image.small.url), feature.outfit
|
|
||||||
- else
|
|
||||||
= image_tag 'default_preview.png'
|
|
||||||
|
|
||||||
%header Thanks, #{donation.donor_name.presence || 'Anonymous'}!
|
|
||||||
|
|
||||||
#fine-print
|
#fine-print
|
||||||
%h2 Some notes on featured outfits
|
%h2 Some notes on featured outfits
|
||||||
|
|
Loading…
Reference in a new issue