1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Switch to Bootstrap 4

This commit is contained in:
2019-12-23 17:49:54 +01:00
parent f28cade211
commit f08254ffef
26 changed files with 207 additions and 120 deletions

View File

@@ -1,9 +1,15 @@
<% provide(:title, Problem.model_name.human(count: 2)) %>
<div class="page-header"><h1><%= Problem.model_name.human(count: 2) %></h1></div>
<div class="pb-2 mt-4 mb-2 border-bottom">
<h1><%= Problem.model_name.human(count: 2) %></h1>
</div>
<p><%= t('problems.index.translated_count', translated: Problem.translated_count, total: Problem.count) %></p>
<%= progress_bar percentage: @translated_percentage, label: true, striped: true %>
<div class="progress mb-3">
<div class="progress-bar progress-bar-striped bg-primary" role="progressbar" style="width: <%= @translated_percentage %>%" aria-valuenow="<%= @translated_percentage %>>" aria-valuemin="0" aria-valuemax="100">
<%= @translated_percentage %>%
</div>
</div>
<%= render 'problem_pagination' %>
<table class="table table-striped table-bordered">
@@ -23,8 +29,8 @@
<%= link_to problem.title, problem %>
<% else %>
<i><%= t 'problems.not_yet_translated' %></i>
<%= link_to new_problem_translation_path(problem), class: 'btn btn-default btn-xs' do %>
<%= icon :pencil %> <%= t '.suggest_translation' %>
<%= link_to new_problem_translation_path(problem), class: 'btn btn-primary btn-sm' do %>
<%= icon('fas', 'edit') %> <%= t '.suggest_translation' %>
<% end %>
<% end %>