mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Prefill original title and content from projecteuler.net
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
<h1><%= t('.administration') %></h1>
|
||||
</div>
|
||||
<%= link_to t('.view_translations'), admin_translations_path, class: 'btn btn-primary' %>
|
||||
|
||||
<h1><%= t('.update_problem_count') %></h1>
|
||||
<%= form_tag '/admin/update_problem_count', method: :post, class: 'form-inline' do %>
|
||||
<%= number_field_tag 'problem_count', @current_problem_count, min: @current_problem_count, class: 'form-control' %>
|
||||
<%= submit_tag t('.update'), class: 'btn btn-warning' %>
|
||||
<% end %>
|
||||
<p>
|
||||
<%= t('.number_of_problems') %>: <%= @current_problem_count %><br/>
|
||||
<% if @most_recent_pull.present? %>
|
||||
<%= t('.time_since_last_pull') %>: <%= time_ago_in_words @most_recent_pull %>
|
||||
<% end %>
|
||||
</p>
|
||||
<%= button_to t('.pull_problems'), '/admin/pull_problems', method: :post, class: 'btn btn-warning' %>
|
||||
Reference in New Issue
Block a user