Commit ec0966c835eb62f746f10b4e23815fc7de4db01f

Authored by libras
2 parents de3f4c58 4cffb404
Exists in master and in 1 other branch devel

Merge branch 'master' of git.lavid.ufpb.br:vlibras-web

app/assets/javascripts/site/videos.js
... ... @@ -8,7 +8,7 @@ function check_subtitle(file) {
8 8 };
9 9  
10 10 function check_video(file) {
11   - var accepted_file_types = ["ts", "avi", "mp4", "mov", "webm", "wmv", "mkv",];
  11 + var accepted_file_types = ["flv", "ts", "avi", "mp4", "mov", "webm", "wmv", "mkv",];
12 12 return check_type(file, accepted_file_types)
13 13 };
14 14  
... ...
app/controllers/static_controller.rb
1 1 # Author - Igor Portela - igorportela.com | Copyright(c) 2013. All rights reserved.
2 2 class StaticController < ApplicationController
3   - #before_filter :authenticate_user!
  3 + before_filter :authenticate_user!
4 4  
5 5 def choice
6 6 end
... ... @@ -9,7 +9,7 @@ class StaticController &lt; ApplicationController
9 9 end
10 10  
11 11 def upload
12   - @presenter = Static::IndexPresenter.new if authenticate_user!
  12 + @presenter = Static::IndexPresenter.new #if authenticate_user!
13 13  
14 14 end
15 15  
... ... @@ -25,6 +25,8 @@ class StaticController &lt; ApplicationController
25 25 @presenter = Static::IndexPresenter.new(params[:id])
26 26 if !@presenter.subtitle.window_size.present?
27 27  
  28 + #raise current_user.inspect
  29 +
28 30 @presenter.subtitle.update_attributes(:window_size => params[:window_size], :window_position => params[:window_position], :closed_caption => params[:closed_caption], :user_id => current_user.id)
29 31 end
30 32  
... ...
config/initializers/devise.rb
... ... @@ -116,7 +116,7 @@ Devise.setup do |config|
116 116 # ==> Configuration for :timeoutable
117 117 # The time you want to timeout the user session without activity. After this
118 118 # time the user will be asked for credentials again. Default is 30 minutes.
119   - # config.timeout_in = 30.minutes
  119 + config.timeout_in = 2.weeks
120 120  
121 121 # ==> Configuration for :lockable
122 122 # Defines which strategy will be used to lock an account.
... ...