From 636a794c12d07907ec310ca777bd47c4b2edaf66 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 23 Jan 2021 19:22:53 +0000 Subject: [PATCH] Remove link to clahub.com Contributes to #993 Signed-off-by: James Taylor --- app/controllers/edit_controller.rb | 2 +- app/views/edit/commit.html.erb | 2 +- config/locales/en.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/edit_controller.rb b/app/controllers/edit_controller.rb index c62a12466..25549966f 100644 --- a/app/controllers/edit_controller.rb +++ b/app/controllers/edit_controller.rb @@ -49,7 +49,7 @@ def commit pull_from = forked ? "#{@current_user.login}:#{new_branch}" : branch_name @pr = open_pr(pull_from, @branch, @summary, @description) # Check for CLA - @cla_url = "https://www.clahub.com/agreements/#{original_repo_path}" + @cla_url = "#{ENV.fetch("SITE_URL")}/cla.html" r = Faraday.get @cla_url @has_cla = (r.status == 200) end diff --git a/app/views/edit/commit.html.erb b/app/views/edit/commit.html.erb index 2f7f70e35..825c6eedb 100644 --- a/app/views/edit/commit.html.erb +++ b/app/views/edit/commit.html.erb @@ -12,7 +12,7 @@ <%= t :cla %>

- <%= link_to "#{fa_icon('check')} #{t(:sign_cla)}".html_safe, @cla_url, class: 'btn btn-primary' %> + <%= link_to "#{t(:view_cla)}".html_safe, @cla_url, class: 'btn btn-primary' %>

<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 15bd23c29..f3d869e9d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -30,7 +30,7 @@ en: signed_out_site_intro: To contribute you need to log in with a free GitHub account. GitHub is a popular code-sharing site which hosts the site content. signed_in_site_intro: There is no way at the moment to explore github content here. Please go to the project you want to edit on GitHub and follow a link to the editor. Thanks! cla: This project has a CLA (Contributor License Agreement). You may need to agree to it before your change can be accepted, if you haven't already. - sign_cla: Accept CLA + view_cla: View CLA help: edit: Make your changes in the editor below, then hit "Submit changes" at the bottom. new: Enter the title of your new document (e.g. "All About Rabbits"), and then write the content in the editor below. Once you're done hit "Submit changes" at the bottom.