Fix icons after downgrade of FA

This commit is contained in:
Ari Timonen 2020-03-17 02:13:57 +02:00
parent bb7df52f4c
commit 00c5c86eb4
18 changed files with 42 additions and 41 deletions

View file

@ -11,7 +11,7 @@
<div class="comments">
<%= link_to article do %>
<%= icon 'fas', 'fas', 'comments' %> Comments (<%= article.comments.count %>)
<%= icon 'fas', 'comments' %> Comments (<%= article.comments.count %>)
<% end %>
</div>
</div>

View file

@ -2,7 +2,7 @@
<% if article.previous_article %>
<div class="previous">
<%= link_to article.previous_article do %>
<%= icon 'fas', 'arrow-left' %>
<%= icon 'arrow-left' %>
<%= article.previous_article %>
<% end %>
</div>
@ -11,7 +11,7 @@
<div class="next">
<%= link_to article.next_article do %>
<%= article.next_article %>
<%= icon 'fas', 'arrow-right' %>
<%= icon 'arrow-right' %>
<% end %>
</div>
<% end %>

View file

@ -21,17 +21,17 @@
<tr>
<td><%= h rank + 1%>.</td>
<% if contester.trend == Contester::TREND_UP %>
<td><%= icon 'fas', 'chevron-up' %></td>
<td><%= icon 'chevron-up' %></td>
<% elsif contester.trend == Contester::TREND_DOWN %>
<td><%= icon 'fas', 'chevron-down' %></td>
<td><%= icon 'chevron-down' %></td>
<% elsif contester.trend == Contester::TREND_FLAT %>
<td><%= icon 'fas', 'minus' %></td>
<td><%= icon 'minus' %></td>
<% else %>
<td></td>
<% end %>
<td><%= flag contester.team.country %></td>
<td><%= link_to (h contester.team.name), contester %></td>
<td><%= icon 'fas', 'trophy' if contester == contester.contest.winner %></td>
<td><%= icon 'trophy' if contester == contester.contest.winner %></td>
<td><%= h contester.win %></td>
<td><%= h contester.loss %></td>
<td><%= h contester.draw %></td>

View file

@ -19,17 +19,17 @@
<% contesters.each do |contester| %>
<tr>
<% if contester.trend == Contester::TREND_UP %>
<td><%= icon 'fas', 'chevron-up' %></td>
<td><%= icon 'chevron-up' %></td>
<% elsif contester.trend == Contester::TREND_DOWN %>
<td><%= icon 'fas', 'chevron-down' %></td>
<td><%= icon 'chevron-down' %></td>
<% elsif contester.trend == Contester::TREND_FLAT %>
<td><%= icon 'fas', 'minus' %></td>
<td><%= icon 'minus' %></td>
<% else %>
<td></td>
<% end %>
<td><%= flag contester.team.country %></td>
<td><%= link_to (h contester.team.name), contester %></td>
<td><%= icon 'fas', 'trophy' if contester == contester.contest.winner %></td>
<td><%= icon 'trophy' if contester == contester.contest.winner %></td>
<td><%= h contester.total_score %></td>
<td><%= h contester.win %></td>
<td><%= h contester.loss %></td>

View file

@ -27,10 +27,10 @@
<td class="actions">
<% if forum.can_update? cuser %>
<%= link_to action: "up", id: forum do %>
<% icon 'fas', 'arrow-up' %>
<% icon 'arrow-up' %>
<% end %>
<%= link_to action: "down", id: forum do %>
<% icon 'fas', 'arrow-down' %>
<% icon 'arrow-down' %>
<% end %>
<% end %>
</td>

View file

@ -1,7 +1,7 @@
<%= provide :content_class, 'no-body' %>
<div class="breadcrumbs">
<%= link_to "Forums", action: "index" %> <%= icon 'fas', 'chevron-right' %> <%= namelink @forum %>
<%= link_to "Forums", action: "index" %> <%= icon 'chevron-right' %> <%= namelink @forum %>
</div>
<div class="topic-controls">

View file

@ -19,7 +19,7 @@
<%= flag(gatherer.user.country) if gatherer.user && gatherer.user.country %>
<% if gatherer == captain and gatherer.team == gatherer.gather.turn %>
<%= icon 'fas', 'chevron-right' %>
<%= icon 'chevron-right' %>
<% end %>
<%= namelink gatherer.user %>

View file

@ -11,7 +11,7 @@
<%= namelink gatherer.user %>
<% if cuser and gatherer.can_destroy?(cuser) %>
<%= link_to gatherer, method: :delete, class: 'delete' do %>
<%= icon 'fas', 'times' %>
<%= icon 'times' %>
<% end %>
<% end %>
</li>

View file

@ -18,7 +18,7 @@
<% if gatherer.team == 1 %>
<%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %>
<% if gather.captain1 == gatherer %>
<%= icon 'fas', 'star' %>
<%= icon 'star' %>
<% end %>
<% end %>
</li>
@ -32,7 +32,7 @@
<% if gatherer.team == 2 %>
<%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %>
<% if gather.captain2 == gatherer %>
<%= icon 'fas', 'star' %>
<%= icon 'star' %>
<% end %>
<% end %>
</li>

View file

@ -132,14 +132,14 @@
<div class="previous">
<%= link_to @gather.previous_gather, class: 'button tiny' do %>
<%= icon 'fas', 'chevron-left' %> Previous
<%= icon 'chevron-left' %> Previous
<% end %>
</div>
<div class="next">
<% if @gather.next_gather %>
<%= link_to @gather.next_gather, class: 'button tiny' do %>
Next <%= icon 'fas', 'chevron-right' %>
Next <%= icon 'chevron-right' %>
<% end %>
<% end %>
</div>
@ -188,7 +188,7 @@
<div class="hide">
<a id="gather-info-hide" class="button tiny">
<%= icon 'fas', 'times' %>
<%= icon 'times' %>
Hide information
</a>
</div>

View file

@ -47,9 +47,9 @@
<% if match.contest.contest_type == Contest::TYPE_LADDER %>
<td>
<% if match.get_friendly(:points) > 0 %>
<%= icon 'fas', 'chevron-up' %>
<%= icon 'chevron-up' %>
<% elsif match.get_friendly(:points) < 0 %>
<%= icon 'fas', 'chevron-down' %>
<%= icon 'chevron-down' %>
<% end %>
<%= match.get_friendly(:points) %>
</td>

View file

@ -29,7 +29,7 @@
<% @match.team1_lineup.each do |teamer| %>
<li>
<% if teamer.user == @match.motm %>
<%= icon 'fas', 'star' %>
<%= icon 'star' %>
<% end %>
<%= teamer.user.username %>
<%= flag teamer.user.country %>
@ -47,7 +47,7 @@
<%= flag teamer.user.country %>
<%= teamer.user.username %>
<% if teamer.user == @match.motm %>
<%= icon 'fas', 'star' %>
<%= icon 'star' %>
<% end %>
</li>
<% end %>

View file

@ -18,15 +18,15 @@
<% if cuser and cuser.admin? %>
<td class="actions">
<%= link_to edit_team_path(team) do %>
<%= icon 'fas', 'pencil' %>
<%= icon 'pencil' %>
<% end %>
<% if team.active %>
<%= link_to team, confirm: 'Are you sure?', method: :delete do %>
<%= icon 'fas', 'times' %>
<%= icon 'times' %>
<% end %>
<% else %>
<%= link_to action: "recover", id: team do %>
<%= icon 'fas', 'save' %>
<%= icon 'save' %>
<% end %>
<% end %>
</td>

View file

@ -74,7 +74,7 @@
</td>
<td>
<%= link_to member, confirm: 'Are you sure?', method: :delete, class: 'button tiny' do %>
<%= icon 'fas', 'times' %> Remove
<%= icon 'times' %> Remove
<% end %>
</td>
</tr>

View file

@ -1,7 +1,7 @@
<div class="breadcrumbs">
<%= link_to "Forums", forums_url %>
<%= icon 'fas', 'chevron-right' %>
<%= icon 'chevron-right' %>
<%= namelink topic.forum %>
<%= icon 'fas', 'chevron-right' %>
<%= icon 'chevron-right' %>
<%= namelink topic %>
</div>

View file

@ -39,10 +39,10 @@
<% if cuser and cuser.admin? %>
<td class="actions">
<%= link_to edit_user_path(user) do %>
<%= icon 'fas', 'pencil' %>
<%= icon 'pencil' %>
<% end %>
<%= link_to user, confirm: "Proceed to delete?", method: :delete do %>
<%= icon 'fas', 'times' %>
<%= icon 'times' %>
<% end %>
</td>
<% end %>

View file

@ -4,29 +4,29 @@
<% if cuser.admin? %>
<li>
<%= link_to '/about/adminpanel', class: 'admin' do %>
Admin (<%= Issue.with_status(0).count %>) <%= icon 'fas', 'wrench' %>
Admin (<%= Issue.with_status(0).count %>) <%= icon 'wrench' %>
<% end %>
</li>
<% elsif cuser.moderator? %>
<li>
<%= link_to issues_path, class: 'admin' do %>
Issues (<%= Issue.where(category_id: Issue.allowed_categories(cuser)).with_status(0).count %>) <%= icon 'fas', 'wrench' %>
Issues (<%= Issue.where(category_id: Issue.allowed_categories(cuser)).with_status(0).count %>) <%= icon 'wrench' %>
<% end %>
</li>
<% end %>
<li>
<%= link_to user_path(cuser) do %>
Account <%= icon 'fas', 'user' %>
Account <%= icon 'user' %>
<% end %>
</li>
<li>
<%= link_to "/users/agenda/#{cuser.id}" do %>
Agenda <%= icon 'fas', 'calendar' %>
Agenda <%= icon 'calendar' %>
<% end %>
</li>
<li>
<%= link_to messages_path do %>
Messages <%= icon 'fas', 'envelope' %>
Messages <%= icon 'envelope' %>
<% end %>
<% if c = cuser.new_messages.count > 0 %>
(<%= cuser.new_messages.count %>)
@ -35,7 +35,7 @@
<li>
<%= form_tag(controller: 'users', action: 'logout') do %>
<%= link_to '#', id: 'logout' do %>
Logout <%= icon 'fas', 'key' %>
Logout <%= icon 'key' %>
<% end %>
<% end %>
</li>

View file

@ -3,9 +3,10 @@ ENV["RAILS_ENV"] ||= "test"
require 'dotenv'
Dotenv.load('.env')
require "codeclimate-test-reporter"
# require "codeclimate-test-reporter"
require "simplecov"
CodeClimate::TestReporter.start
# CodeClimate::TestReporter.start
SimpleCov.start "rails"
require File.expand_path("../../config/environment", __FILE__)