add HTML5 support

This commit is contained in:
Josh
2017-09-28 16:03:47 -04:00
parent 40ee86a6a4
commit da07eb749f
8 changed files with 76 additions and 13 deletions

View File

@ -23,6 +23,7 @@
<% if @user %>
<div class="upload-form">
<h3><%= t('background_image') %></h3>
<p> <%= t('background_image') + ": " + (@user.background_file_name || '') %> </p>
<%= form_for @user, :html => { :multipart => true } do |f| %>
<div class="form-group">
@ -31,6 +32,14 @@
<%= f.submit t('upload'), class: 'btn btn-info' %>
<% end %>
</div>
<br>
<div class="html5-check">
<h3><%= t('prefered_client') %></h3>
<p><%= t('currently_joining_with', client: @user.use_html5 ? t('client_html5') : t('client_flash')) %></p>
<%= form_for @user do |f| %>
<%= f.submit t('switch_clients'), class: 'btn btn-info' %>
<% end %>
</div>
<% else %>
<h3><%= t('preferences_logged') %></h3>
<% end %>