Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thanks donors on twitter from hoc.com #23561

Merged
merged 2 commits into from Jul 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions pegasus/sites.v3/hourofcode.com/i18n/en.yml
Expand Up @@ -317,6 +317,7 @@
meta_tag_twitter_description: 'The Hour of Code is a global movement reaching tens of millions of students of all ages in 180+ countries and over 45 languages.'

twitter_default_text: "I'm participating in this year's #HourOfCode, are you? @codeorg"
twitter_donor_text: "I'm participating in this year's #HourOfCode, are you? (Thanks %{random_donor} for supporting @codeorg)"

hoc_faq_title: 'FAQs'
hoc_faq_what_is_hoc_q: 'What is the Hour of Code?'
Expand Down
4 changes: 2 additions & 2 deletions pegasus/sites.v3/hourofcode.com/public/promote/index.md
Expand Up @@ -9,8 +9,8 @@ nav: promote_nav
<%
facebook = {:u=>"http://#{request.host}/us"}

twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_default_text)}
twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_default_text).include? '#HourOfCode'
twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_donor_text).gsub(/%{random_donor}/, get_random_donor_twitter)}
twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_donor_text).include? '#HourOfCode'
%>

# Get your community involved in the Hour of Code
Expand Down
4 changes: 2 additions & 2 deletions pegasus/sites.v3/hourofcode.com/public/thanks.md
Expand Up @@ -21,8 +21,8 @@ social:
<%
facebook = {:u=>"http://#{request.host}/us"}

twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_default_text)}
twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_default_text).include? '#HourOfCode'
twitter = {:url=>"http://hourofcode.com", :related=>'codeorg', :hashtags=>'', :text=>hoc_s(:twitter_donor_text).gsub(/%{random_donor}/, get_random_donor_twitter)}
twitter[:hashtags] = 'HourOfCode' unless hoc_s(:twitter_donor_text).include? '#HourOfCode'
%>

# Thanks for signing up to host an Hour of Code!
Expand Down