mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fix icons after downgrade of FA
This commit is contained in:
parent
bb7df52f4c
commit
00c5c86eb4
18 changed files with 42 additions and 41 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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 %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue