View video_input.coffee
class @VideoInput
constructor: (@container) ->
# console.log 'VideoInput'
@sourceTextarea = @container.find('textarea')
@urlInput = $('<input class="form__input" placeholder="Cole aqui o endereço do vídeo do Youtube ou Vimeo">')
@removeButton = $('<a data-behavior="remove" href="#">&times;</a>')
@urlInput.on 'keyup', @renderVideo
@sourceTextarea.before(@urlInput)
@sourceTextarea.before(@removeButton)
View videos.txt
Aí vão alguns vídeos explicando a plataforma.
Um ponto que eu não citei: Estamos focando no Chrome como navegador para essa primeria versão.
Tanto alunos quando Tutores vão precisar usar Chrome por enquanto.
Curso:
https://vimeo.com/91562456
Módulos:
https://vimeo.com/91562457
View articles:_article.slim
article
= link_to [@category, article] do
= img article.image.thumb if article.image?
h2 = article.title
p = truncate(article.summary, length: 80)
View .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
tags
.DS_Store
._.DS_Store
View admin.coffee
#= require jquery
#= require jquery_ujs
#= require bootstrap
#= require uploadbox
View Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.3.8'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
View development.rb
Paporeto::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
View Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.3.8'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
View application.html.slim
doctype html
html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
title Paporeto
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
= csrf_meta_tags
/[if lt IE 9]
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true
View application.html.slim
doctype html
html
head
meta name="viewport" content="width=device-width, initial-scale=1.0"
title Paporeto
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
= csrf_meta_tags
/[if lt IE 9]
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true