Skip to content

Commit

Permalink
Remove link to clahub.com
Browse files Browse the repository at this point in the history
Contributes to openpolitics#993

Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti committed Jan 23, 2021
1 parent d87cd6c commit 636a794
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/edit_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/edit/commit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<%= t :cla %>
</p>
<p>
<%= 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' %>
</p>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 636a794

Please sign in to comment.