Skip to content

Commit 2991ef3

Browse files
committed
Reworks content in donation_platforms partial
1 parent 06d7765 commit 2991ef3

File tree

11 files changed

+63
-17
lines changed

11 files changed

+63
-17
lines changed

app/views/dashboard/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
.py-4.py-lg-5.bg-light
5959
.container
60-
= render partial: 'shared/donation_platforms', locals: { title: t('homepage.donation_platforms.title') }
60+
= render partial: 'shared/donation_platforms', locals: { title: t('homepage.donation_platforms.title'), with_button: true }
6161

6262
.container.py-4.py-lg-5
6363
.row
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
11
- title = local_assigns[:title] ? local_assigns[:title] : t("donation_platforms.title")
22

3-
.row
4-
.col.mb-3
3+
.row.justify-content-center
4+
.col-12.col-md-7.text-center.mb-3
55
%h2.h1= title
6+
%p= t("donation_platforms.description")
67

78
.row.d-flex
89
.d-flex.col-sm-12.col-md-6.col-lg-3
910
.card.mt-3.mt-lg-0.shadow
1011
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
1112
.bg-white.rounded-top.p-3.d-flex.align-items-center
12-
= image_tag("logo.png", alt: "codebar logo", class: "mw-100")
13+
= image_tag("logo.png", alt:t("donation_platforms.donation_form.image_alt"), class: "mw-100")
1314
.card-body
1415
%h3.h6= link_to(t("donation_platforms.donation_form.title"), new_donation_path)
1516
%p.card-text= t("donation_platforms.donation_form.text")
1617
.d-flex.col-sm-12.col-md-6.col-lg-3
1718
.card.mt-3.mt-lg-0.shadow
1819
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
1920
.bg-dark.rounded-top
20-
= image_tag("give-as-you-live.png", alt: "Give as you Live logo", class: "mw-100 rounded-top")
21+
= image_tag("give-as-you-live.png", alt: t("donation_platforms.give_as_you_live.image_alt"), class: "mw-100 rounded-top")
2122
.card-body
2223
%h3.h6= link_to(t("donation_platforms.give_as_you_live.title"), "https://www.giveasyoulive.com/join/codebar?utm_source=charitytoolkit&utm_content=233896&utm_medium=post&utm_campaign=CTGenericCampaign")
2324
%p.card-text= t("donation_platforms.give_as_you_live.text")
2425
.d-flex.col-sm-12.col-md-6.col-lg-3
2526
.card.mt-3.mt-lg-0.shadow
2627
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
2728
.bg-white.rounded-top.p-3.d-flex.align-items-center
28-
= image_tag("open-collective-logo.png", alt: "Open Collective logo", class: "mw-100")
29+
= image_tag("open-collective-logo.png", alt: t("donation_platforms.open_collective.image_alt"), class: "mw-100")
2930
.card-body
3031
%h3.h6= link_to(t("donation_platforms.open_collective.title"), "https://opencollective.com/codebar")
3132
%p.card-text= t("donation_platforms.open_collective.text")
3233
.d-flex.col-sm-12.col-md-6.col-lg-3
3334
.card.mt-3.mt-lg-0.shadow
3435
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
3536
.bg-dark.rounded-top
36-
= image_tag("GitHub_Logo_White.png", alt: "Github Sponsors logo", class: "mw-100")
37+
= image_tag("GitHub_Logo_White.png", alt: t("donation_platforms.github_sponsors.image_alt"), class: "mw-100")
3738
.card-body
3839
%h3.h6= link_to(t("donation_platforms.github_sponsors.title"), "https://github.com/sponsors/codebar")
3940
%p.card-text= t("donation_platforms.github_sponsors.text")
4041

4142
- if local_assigns[:with_button]
4243
.d-flex.justify-content-center.mt-4
43-
= link_to t("donation_platforms.link"), how_to_support_us_path, class: 'btn btn-primary btn-lg'
44+
= link_to t("donation_platforms.link"), how_to_support_us_path, class: "btn btn-primary btn-lg"

config/locales/de.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,16 +559,21 @@ de:
559559
expiry_date: Application closing date
560560
donation_platforms:
561561
title: "Donate"
562+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
562563
link: "Find out how else to support us"
563564
donation_form:
564565
title: "Use the donation page"
565-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
566+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
567+
image_alt: "codebar logo"
566568
github_sponsors:
567569
title: "Github Sponsors"
568570
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
571+
image_alt: "Github Sponsors logo"
569572
open_collective:
570573
title: "Open Collective"
571574
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
575+
image_alt: "Open Collective logo"
572576
give_as_you_live:
573577
title: "Give as you Live"
574578
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
579+
image_alt: "Give as you Live logo"

config/locales/en.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,19 +757,24 @@ en:
757757
discord_invitation: https://discord.gg/Eru89Rk
758758
donation_platforms:
759759
title: "Donate"
760+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
760761
link: "Find out how else to support us"
761762
donation_form:
762763
title: "Use the donation page"
763-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
764+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
765+
image_alt: "codebar logo"
764766
github_sponsors:
765767
title: "Github Sponsors"
766768
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
769+
image_alt: "Github Sponsors logo"
767770
open_collective:
768771
title: "Open Collective"
769772
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
773+
image_alt: "Open Collective logo"
770774
give_as_you_live:
771775
title: "Give as you Live"
772776
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
777+
image_alt: "Give as you Live logo"
773778
services:
774779
donations: https://codebar.enthuse.com/donate/#!/
775780

config/locales/en_AU.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,21 @@ en-AU:
525525
expiry_date: Application closing date
526526
donation_platforms:
527527
title: "Donate"
528+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
528529
link: "Find out how else to support us"
529530
donation_form:
530531
title: "Use the donation page"
531-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
532+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
533+
image_alt: "codebar logo"
532534
github_sponsors:
533535
title: "Github Sponsors"
534536
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
537+
image_alt: "Github Sponsors logo"
535538
open_collective:
536539
title: "Open Collective"
537540
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
541+
image_alt: "Open Collective logo"
538542
give_as_you_live:
539543
title: "Give as you Live"
540544
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
545+
image_alt: "Give as you Live logo"

config/locales/en_GB.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,21 @@ en-GB:
525525
expiry_date: Application closing date
526526
donation_platforms:
527527
title: "Donate"
528+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
528529
link: "Find out how else to support us"
529530
donation_form:
530531
title: "Use the donation page"
531-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
532+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
533+
image_alt: "codebar logo"
532534
github_sponsors:
533535
title: "Github Sponsors"
534536
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
537+
image_alt: "Github Sponsors logo"
535538
open_collective:
536539
title: "Open Collective"
537540
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
541+
image_alt: "Open Collective logo"
538542
give_as_you_live:
539543
title: "Give as you Live"
540544
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
545+
image_alt: "Give as you Live logo"

config/locales/en_US.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,21 @@ en-US:
523523
expiry_date: Application closing date
524524
donation_platforms:
525525
title: "Donate"
526+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
526527
link: "Find out how else to support us"
527528
donation_form:
528529
title: "Use the donation page"
529-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
530+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
531+
image_alt: "codebar logo"
530532
github_sponsors:
531533
title: "Github Sponsors"
532534
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
535+
image_alt: "Github Sponsors logo"
533536
open_collective:
534537
title: "Open Collective"
535538
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
539+
image_alt: "Open Collective logo"
536540
give_as_you_live:
537541
title: "Give as you Live"
538542
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
543+
image_alt: "Give as you Live logo"

config/locales/es.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,21 @@ es:
608608
expiry_date: Fecha de cierre de la solicitud
609609
donation_platforms:
610610
title: "Donate"
611+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
611612
link: "Find out how else to support us"
612613
donation_form:
613614
title: "Usa la página de donaciones"
614-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
615+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
616+
image_alt: "codebar logo"
615617
github_sponsors:
616618
title: "Github Sponsors"
617619
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
620+
image_alt: "Github Sponsors logo"
618621
open_collective:
619622
title: "Open Collective"
620623
text: "Configure una contribución recurrente o haga una donación única con Open Collective."
624+
image_alt: "Open Collective logo"
621625
give_as_you_live:
622626
title: "Give as you Live"
623627
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
628+
image_alt: "Give as you Live logo"

config/locales/fi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,21 @@ fi:
525525
expiry_date: Application closing date
526526
donation_platforms:
527527
title: "Donate"
528+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
528529
link: "Find out how else to support us"
529530
donation_form:
530531
title: "Use the donation page"
531-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
532+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
533+
image_alt: "codebar logo"
532534
github_sponsors:
533535
title: "Github Sponsors"
534536
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
537+
image_alt: "Github Sponsors logo"
535538
open_collective:
536539
title: "Open Collective"
537540
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
541+
image_alt: "Open Collective logo"
538542
give_as_you_live:
539543
title: "Give as you Live"
540544
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
545+
image_alt: "Give as you Live logo"

config/locales/fr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,16 +524,21 @@ fr:
524524
expiry_date: Application closing date
525525
donation_platforms:
526526
title: "Donate"
527+
description: "Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
527528
link: "Find out how else to support us"
528529
donation_form:
529530
title: "Use the donation page"
530-
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
531+
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution."
532+
image_alt: "codebar logo"
531533
github_sponsors:
532534
title: "Github Sponsors"
533535
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
536+
image_alt: "Github Sponsors logo"
534537
open_collective:
535538
title: "Open Collective"
536539
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
540+
image_alt: "Open Collective logo"
537541
give_as_you_live:
538542
title: "Give as you Live"
539543
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
544+
image_alt: "Give as you Live logo"

0 commit comments

Comments
 (0)