<% content_for :page_heading do %>

<%= t('.display_settings') %>

<% end %> <%= form_tag :action => 'update' do %>
<%= t('.publishing_options')%>
<%= text_field(:setting, :limit_article_display, {:size => 4, :class => 'form-control'}) %>
<%= t('.default_article_show') %>
<%= text_field(:setting, :limit_archives_display, {:size => 4, :class => 'form-control'}) %>
<%= t('.default_archives_show') %>
<%= select(:setting, :date_format, { Time.now.strftime('%d/%m/%Y') => '%d/%m/%Y', Time.now.strftime('%m/%d/%Y') => '%m/%d/%Y', Time.now.strftime('%d %b %Y') => '%d %b %Y', Time.now.strftime('%d %B %Y') => '%d %B %Y', Time.now.strftime('%Y/%m/%d') => '%Y/%m/%d', distance_of_time_in_words(Time.now, Time.now - 2.days) => 'setting_date_format_distance_of_time_in_words'}) %>
<%= select(:setting, :time_format, { Time.now.strftime('%Hh%M') => '%Hh%M', Time.now.strftime('%H:%M') => '%H:%M', Time.now.strftime('%I:%M%p') => '%I:%M%p'}) %>
<%= text_field(:setting, :custom_url_shortener, { :class => 'form-control'}) %> <%= t('.custom_url_help') %>
<%= t('.feed_settings') %>
<%= text_field(:setting, :limit_rss_display, {:size => 4, :class => 'form-control'}) %>
<%= t('.default_feed_show') %>
<%= hidden_field_tag 'from', 'display' %>

<%= link_to(t(".cancel"), {action: 'index'}) %> <%= t(".or") %> <%= submit_tag(t(".update_settings"), class: 'btn btn-success') %>
<% end %>