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

Remove link to clahub.com #994

Merged
merged 1 commit into from
Jan 24, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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