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

WIP #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP #330

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
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ group :development, :test do
gem 'rubocop', '~> 0.51.0', require: false
gem 'test-unit', '~> 3.0'
end

# Security upgrades
gem 'actionview', '>= 5.1.6.2'
gem "nokogiri", ">= 1.10.4"
4 changes: 2 additions & 2 deletions app/views/authorizations/_authorization.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<div class="media-body">
<p><%= link_to authorization.url, authorization.url %></p>
<p>
<%= link_to signin_path(provider), class: ['btn', 'btn-social', "btn-#{provider}"] do %>
<%= link_to signin_path(provider), method: :post, class: ['btn', 'btn-social', "btn-#{provider}"] do %>
<span class="fa fa-<%= provider %>"></span> <%= t("reconnect_with.#{provider}") %>
<% end %>
</p>
</div>
</div>
<% else %>
<%= link_to signin_path(provider), class: ['btn', 'btn-social', "btn-#{provider}"] do %>
<%= link_to signin_path(provider), method: :post, class: ['btn', 'btn-social', "btn-#{provider}"] do %>
<span class="fa fa-<%= provider %>"></span> <%= t("connect_with.#{provider}") %>
<% end %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<li><%= link_to t('sign_out'), signout_path, method: :delete %></li>
<% else %>
<li>
<%= link_to signin_path(Authorization::PROVIDER_GITHUB) do %>
<%= link_to signin_path(Authorization::PROVIDER_GITHUB), method: :post do %>
<%= image_tag('github.png', width: 24) %>
<%= t('signin_with.github') %>
<% end %>
</li>
<li>
<%= link_to signin_path(Authorization::PROVIDER_TWITTER) do %>
<%= link_to signin_path(Authorization::PROVIDER_TWITTER), method: :post do %>
<%= image_tag('twitter.png', width: 24) %>
<%= t('signin_with.twitter') %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/welcome/_tomatoes_timer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
<div id="tomato_signin">
<p><%= t('timer.signin_to_start_tracking') %></p>

<%= link_to signin_path(Authorization::PROVIDER_GITHUB), class: 'btn btn-block btn-social btn-github' do %>
<%= link_to signin_path(Authorization::PROVIDER_GITHUB), method: :post, class: 'btn btn-block btn-social btn-github' do %>
<span class="fa fa-github"></span> <%= t('signin_with.github') %>
<% end %>

<%= link_to signin_path(Authorization::PROVIDER_TWITTER), class: 'btn btn-block btn-social btn-twitter' do %>
<%= link_to signin_path(Authorization::PROVIDER_TWITTER), method: :post, class: 'btn btn-block btn-social btn-twitter' do %>
<span class="fa fa-twitter"></span> <%= t('signin_with.twitter') %>
<% end %>

Expand Down
4 changes: 2 additions & 2 deletions app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<% else %>
<div class="intro">
<p>
<%= link_to signin_path(Authorization::PROVIDER_GITHUB), class: 'btn btn-lg btn-social btn-github' do %>
<%= link_to signin_path(Authorization::PROVIDER_GITHUB), method: :post, class: 'btn btn-lg btn-social btn-github' do %>
<span class="fa fa-github"></span> <%= t('signin_with.github') %>
<% end %>

<%= link_to signin_path(Authorization::PROVIDER_TWITTER), class: 'btn btn-lg btn-social btn-twitter' do %>
<%= link_to signin_path(Authorization::PROVIDER_TWITTER), method: :post, class: 'btn btn-lg btn-social btn-twitter' do %>
<span class="fa fa-twitter"></span> <%= t('signin_with.twitter') %>
<% end %>
</p>
Expand Down