sublime_video_layout 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +21 -0
- data/Rakefile +29 -0
- data/app/assets/fonts/SublimeIcons.eot +0 -0
- data/app/assets/fonts/SublimeIcons.svg +34 -0
- data/app/assets/fonts/SublimeIcons.ttf +0 -0
- data/app/assets/fonts/SublimeIcons.woff +0 -0
- data/app/assets/images/back_texture_my.png +0 -0
- data/app/assets/images/close_popup.png +0 -0
- data/app/assets/images/custom_checkbox.png +0 -0
- data/app/assets/images/custom_radio.png +0 -0
- data/app/assets/images/custom_select.png +0 -0
- data/app/assets/images/dm_banner.png +0 -0
- data/app/assets/images/dm_banner_bg.png +0 -0
- data/app/assets/images/fields/card_icon.png +0 -0
- data/app/assets/images/fields/domain_icon.png +0 -0
- data/app/assets/images/fields/email_icon.png +0 -0
- data/app/assets/images/fields/password_icon.png +0 -0
- data/app/assets/images/fields/path_icon.png +0 -0
- data/app/assets/images/fields/ticket_icon.png +0 -0
- data/app/assets/images/fields/user_icon.png +0 -0
- data/app/assets/images/fields/valid_icon.png +0 -0
- data/app/assets/images/footer_break.png +0 -0
- data/app/assets/images/footer_texture.png +0 -0
- data/app/assets/images/header_back_light.png +0 -0
- data/app/assets/images/header_inner_shadow.png +0 -0
- data/app/assets/images/header_repeat.jpg +0 -0
- data/app/assets/images/header_repeat.png +0 -0
- data/app/assets/images/header_repeat_max.jpg +0 -0
- data/app/assets/images/header_repeat_old.png +0 -0
- data/app/assets/images/header_signup_btn.png +0 -0
- data/app/assets/images/header_stars.png +0 -0
- data/app/assets/images/info_icon.png +0 -0
- data/app/assets/images/jilion.png +0 -0
- data/app/assets/images/jobs_highlight_note.png +0 -0
- data/app/assets/images/logout.png +0 -0
- data/app/assets/images/menu_bullet.png +0 -0
- data/app/assets/images/menu_bullet_active.png +0 -0
- data/app/assets/images/newsletter_btn_arrow.png +0 -0
- data/app/assets/images/plans/plays_icon.png +0 -0
- data/app/assets/images/plans/ssl_icon.png +0 -0
- data/app/assets/images/plans/stats_icon.png +0 -0
- data/app/assets/images/plans/support_icon.png +0 -0
- data/app/assets/images/popup_break.png +0 -0
- data/app/assets/images/popup_sign_up_btn.png +0 -0
- data/app/assets/images/sublimevideo_logo.png +0 -0
- data/app/assets/images/sublimevideo_logo@2x.png +0 -0
- data/app/assets/images/sublimevideo_maintenance.png +0 -0
- data/app/assets/images/twitter.png +0 -0
- data/app/assets/images/user_header_icon.png +0 -0
- data/app/assets/images/user_header_icon_active.png +0 -0
- data/app/assets/javascripts/form/password_checker.js.coffee +18 -0
- data/app/assets/javascripts/form/pseudo_placeholder.js.coffee +91 -0
- data/app/assets/javascripts/form/show_password.js.coffee +91 -0
- data/app/assets/javascripts/form/submit_manager.js.coffee +53 -0
- data/app/assets/javascripts/media/preloader.js.coffee +30 -0
- data/app/assets/javascripts/misc/browser_bugs_fixer.js.coffee +12 -0
- data/app/assets/javascripts/misc/cookie.js.coffee +42 -0
- data/app/assets/javascripts/misc/utils.js.coffee +17 -0
- data/app/assets/javascripts/sublimevideo.js.coffee +66 -0
- data/app/assets/javascripts/ui/link.js.coffee +24 -0
- data/app/assets/javascripts/ui/menu.js.coffee +36 -0
- data/app/assets/javascripts/ui/popup.js.coffee +121 -0
- data/app/assets/javascripts/ui/table.js.coffee +8 -0
- data/app/assets/javascripts/ui/utils.js.coffee +41 -0
- data/app/assets/stylesheets/_css3.scss +41 -0
- data/app/assets/stylesheets/ie.css.scss +2 -0
- data/app/assets/stylesheets/sublime_icons.css.scss.erb +46 -0
- data/app/assets/stylesheets/sublimevideo.css.scss.erb +947 -0
- data/app/controllers/maintenance_controller.rb +12 -0
- data/app/helpers/sublime_video_layout/engine_helper.rb +111 -0
- data/app/views/layouts/_facebook.html.haml +1 -0
- data/app/views/layouts/_footer.html.haml +54 -0
- data/app/views/layouts/_googleplus.html.haml +7 -0
- data/app/views/layouts/_gosquared.html.haml +11 -0
- data/app/views/layouts/_header_menu.html.haml +44 -0
- data/app/views/layouts/_ie.html.haml +14 -0
- data/app/views/layouts/_twitter.html.haml +2 -0
- data/app/views/layouts/maintenance.html.erb +79 -0
- data/app/views/layouts/sublimevideo.html.haml +61 -0
- data/app/views/users/new.html.haml +24 -0
- data/app/views/users/sessions/new.html.haml +25 -0
- data/config/locales/en.yml +14 -0
- data/config/routes.rb +5 -0
- data/lib/heroku-pages/error.html +82 -0
- data/lib/heroku-pages/maintenance.html +77 -0
- data/lib/heroku-pages/sublimevideo_maintenance.png +0 -0
- data/lib/rack/maintenance.rb +32 -0
- data/lib/site_token.rb +22 -0
- data/lib/sublime_video_layout.rb +18 -0
- data/lib/sublime_video_layout/version.rb +3 -0
- data/lib/tasks/sublime_video_layout_tasks.rake +4 -0
- data/public/404.html +28 -0
- data/public/404.png +0 -0
- data/public/422.html +29 -0
- data/public/500.html +28 -0
- data/public/500.png +0 -0
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/error.png +0 -0
- data/public/errors.css +60 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +5 -0
- data/public/sublimevideo.png +0 -0
- data/vendor/assets/javascripts/modernizr.js +1265 -0
- metadata +203 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
require 'site_token'
|
2
|
+
|
3
|
+
module SublimeVideoLayout
|
4
|
+
module EngineHelper
|
5
|
+
|
6
|
+
def body_class
|
7
|
+
h([request.subdomain, @body_class].compact.join(' '))
|
8
|
+
end
|
9
|
+
|
10
|
+
def page_title
|
11
|
+
title = []
|
12
|
+
title << "[#{Rails.env.upcase}]" unless Rails.env.production?
|
13
|
+
title << (@page_title_prefix || "SublimeVideo - HTML5 Video Player")
|
14
|
+
title << "- #{@page_title}" if @page_title
|
15
|
+
h(title.compact.join(' '))
|
16
|
+
end
|
17
|
+
|
18
|
+
def li_menu_link(name, options = {})
|
19
|
+
link_options = options.delete(:link_options) || {}
|
20
|
+
url = custom_url(options.delete(:path) || name, options)
|
21
|
+
classes = Array(options[:class])
|
22
|
+
classes << 'active' if request.url.match(options[:regex] || /#{url}($|\?.*)/)
|
23
|
+
content_tag :li, { class: classes.join(' ') } do
|
24
|
+
link_to name, url, link_options
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def layout_li_menu_link(name, options = {})
|
29
|
+
li_menu_link(name, options.merge(subdomain: false, protocol: 'http'))
|
30
|
+
end
|
31
|
+
|
32
|
+
def layout_url(path)
|
33
|
+
custom_url(path, subdomain: false, protocol: 'http')
|
34
|
+
end
|
35
|
+
|
36
|
+
def my_url(path)
|
37
|
+
custom_url(path, subdomain: 'my', protocol: 'https')
|
38
|
+
end
|
39
|
+
|
40
|
+
def docs_url(path)
|
41
|
+
custom_url(path, subdomain: 'docs', protocol: 'http')
|
42
|
+
end
|
43
|
+
|
44
|
+
def custom_url(path, options = {})
|
45
|
+
"#{protocol(options)}://#{subdomain(options)}#{domain(options)}#{port}/#{path.sub(%r{\A/}, '')}"
|
46
|
+
end
|
47
|
+
|
48
|
+
def sublimevideo_loader_tag(name, options = {})
|
49
|
+
options = { host: 'cdn.sublimevideo.net', stage: nil }.merge(options)
|
50
|
+
|
51
|
+
filename = "#{::SiteToken[name.to_sym]}#{'-' + options[:stage] if options[:stage]}.js"
|
52
|
+
parts = ['<script']
|
53
|
+
parts << %(src="//#{options[:host]}/js/#{filename}")
|
54
|
+
parts << 'type="text/javascript"></script>'
|
55
|
+
|
56
|
+
parts.join(' ')
|
57
|
+
end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
def protocol(options = {})
|
62
|
+
return 'http' if %w[development test].include?(Rails.env)
|
63
|
+
options[:protocol] || (request && request.ssl? ? 'https' : 'http')
|
64
|
+
end
|
65
|
+
|
66
|
+
def subdomain(options = {})
|
67
|
+
if options[:subdomain]
|
68
|
+
"#{options[:subdomain]}."
|
69
|
+
elsif options[:subdomain] != false
|
70
|
+
(request_subdomain ? "#{request_subdomain}." : '') rescue ''
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def domain(options = {})
|
75
|
+
if options[:domain]
|
76
|
+
options[:domain]
|
77
|
+
else
|
78
|
+
request_domain rescue 'sublimevideo.net'
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def request_subdomain
|
83
|
+
if request.domain == 'xip.io'
|
84
|
+
subdomains = request.subdomain.split('.')
|
85
|
+
if subdomains.size == 6
|
86
|
+
subdomains.shift
|
87
|
+
else
|
88
|
+
nil
|
89
|
+
end
|
90
|
+
else
|
91
|
+
request.subdomain.empty? ? nil : request.subdomain
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def request_domain
|
96
|
+
if request.domain == 'xip.io'
|
97
|
+
subdomains = request.subdomain.split('.')
|
98
|
+
subdomains.shift if subdomains.size == 6
|
99
|
+
subdomains.join('.') << '.xip.io'
|
100
|
+
else
|
101
|
+
request.domain
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def port
|
106
|
+
# handles port 3000 etc... but don't do this in staging/prod since it would use port 80 for HTTPS pages!
|
107
|
+
Rails.env == 'development' && request && request.port && request.port != 80 ? ":#{request.port}" : ''
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
%iframe{ src: "https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fsublimevideo&send=false&layout=button_count&width=130&show_faces=false&action=like&colorscheme=dark&font&height=21&appId=194063487384384", scrolling: "no", frameborder: "0", style: "border:none; overflow:hidden; width:130px; height:21px;", allowTransparency: "true" }
|
@@ -0,0 +1,54 @@
|
|
1
|
+
%footer
|
2
|
+
.wrap
|
3
|
+
%nav
|
4
|
+
.col
|
5
|
+
%h4 Solutions
|
6
|
+
%ul
|
7
|
+
%li= link_to "Framework", layout_url('framework')
|
8
|
+
%li= link_to "Modular Player", layout_url('modular-player')
|
9
|
+
%li= link_to "Tailor-Made Players", layout_url('tailor-made-players')
|
10
|
+
%li= link_to "Testimonials", layout_url('testimonials')
|
11
|
+
.col
|
12
|
+
%h4 Support
|
13
|
+
%ul
|
14
|
+
%li= link_to "Help", layout_url('help')
|
15
|
+
%li= link_to "Documentation", docs_url('')
|
16
|
+
%li= link_to "Forum", "http://getsatisfaction.com/sublimevideo", onclick: "window.open(this); return false"
|
17
|
+
%li= link_to "Player Releases", docs_url('releases')
|
18
|
+
.col
|
19
|
+
%h4 Company
|
20
|
+
%ul
|
21
|
+
%li= link_to "About", layout_url('about')
|
22
|
+
%li= link_to "News", layout_url('news')
|
23
|
+
%li= link_to "Contact Us", layout_url('contact')
|
24
|
+
%li.jobs
|
25
|
+
= link_to "Jobs", "http://jilion.com/jobs"
|
26
|
+
|
27
|
+
.right
|
28
|
+
%p.twitter
|
29
|
+
= "Follow"
|
30
|
+
= link_to "@jilion", "http://twitter.com/jilion"
|
31
|
+
= "for the latest news."
|
32
|
+
.newsletter
|
33
|
+
%form{ action: "http://jilion.createsend.com/t/r/s/shylrr/", method: "post", id: "subForm" }
|
34
|
+
%p
|
35
|
+
%label{ for: "shylrr-shylrr" } Subscribe for news
|
36
|
+
.field_wrap
|
37
|
+
%input.field{ type: "text", name: "cm-shylrr-shylrr", id: "shylrr-shylrr", size: "25", placeholder: "Email" }
|
38
|
+
%button{ type: "submit" }
|
39
|
+
%span= "Subscribe"
|
40
|
+
.networks
|
41
|
+
= render 'layouts/twitter'
|
42
|
+
= render 'layouts/googleplus'
|
43
|
+
= render 'layouts/facebook'
|
44
|
+
%p.service_by
|
45
|
+
= "SublimeVideo is a service by"
|
46
|
+
= link_to "http://jilion.com", class: "jilion" do
|
47
|
+
%span= "Jilion"
|
48
|
+
|
49
|
+
.footer_break
|
50
|
+
%p.copyright
|
51
|
+
= link_to "Terms & Conditions", my_url('terms')
|
52
|
+
= "|"
|
53
|
+
= link_to "Privacy Policy", my_url('privacy')
|
54
|
+
= raw "| Copyright © #{Time.now.utc.year} Jilion® — SublimeVideo and Jilion are registered trademarks."
|
@@ -0,0 +1,7 @@
|
|
1
|
+
.g-plusone{ data: { size: 'small', href: 'http://sublimevideo.net' } }
|
2
|
+
= javascript_tag do
|
3
|
+
== (function() {
|
4
|
+
== var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
5
|
+
== po.src = 'https://apis.google.com/js/plusone.js';
|
6
|
+
== var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
7
|
+
== })();
|
@@ -0,0 +1,11 @@
|
|
1
|
+
:javascript
|
2
|
+
var GoSquared={};
|
3
|
+
GoSquared.acct = "GSN-706041-F";
|
4
|
+
(function(w){
|
5
|
+
function gs(){
|
6
|
+
w._gstc_lt=+(new Date); var d=document;
|
7
|
+
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
|
8
|
+
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
|
9
|
+
}
|
10
|
+
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
|
11
|
+
})(window);
|
@@ -0,0 +1,44 @@
|
|
1
|
+
-# Default Menu
|
2
|
+
- unless content_for?(:header_menu)
|
3
|
+
= content_for :header_menu do
|
4
|
+
%nav#menu
|
5
|
+
%ul.sticky#header_menu
|
6
|
+
%li.popup_wrap
|
7
|
+
%strong.trigger
|
8
|
+
= "Solutions"
|
9
|
+
%span.icon-arrow-down
|
10
|
+
%ul.popup
|
11
|
+
= layout_li_menu_link 'Framework', path: 'framework'
|
12
|
+
= layout_li_menu_link 'Modular Player', path: 'modular-player'
|
13
|
+
= layout_li_menu_link 'Tailor-Made Players', path: 'tailor-made-players'
|
14
|
+
= layout_li_menu_link 'pricing'
|
15
|
+
= layout_li_menu_link 'news'
|
16
|
+
= layout_li_menu_link 'help', link_options: { data: { 'no-turbolink' => true } }
|
17
|
+
- if request.subdomain == 'my'
|
18
|
+
%li.unlogged.signup= link_to 'sign up', my_url('signup'), class: 'no_sticky'
|
19
|
+
%li.unlogged= link_to 'login', my_url('login'), class: 'no_sticky'
|
20
|
+
- else
|
21
|
+
%li.unlogged.signup= link_to 'sign up', layout_url('?p=signup'), class: 'no_sticky', id: 'signup_button'
|
22
|
+
%li.unlogged= link_to 'login', layout_url('?p=login'), class: 'no_sticky', id: 'login_button'
|
23
|
+
%li.logged{ style: 'display:none;' }= link_to 'My Sites', my_url('/'), class: 'no_sticky'
|
24
|
+
%li.logged.logout{ style: 'display:none;', title: "Logout" }
|
25
|
+
= link_to my_url('/logout'), class: 'no_sticky' do
|
26
|
+
%span= 'Logout'
|
27
|
+
|
28
|
+
= yield :header_menu
|
29
|
+
|
30
|
+
- if request.subdomain.blank? || request.subdomain == 'docs'
|
31
|
+
= content_for :bottom do
|
32
|
+
#popup_signup.popup{ style: "display:none" }
|
33
|
+
.popup_wrap
|
34
|
+
.lights
|
35
|
+
.content= render template: '/users/new'
|
36
|
+
= link_to "/", class: 'close', onclick: "SublimeVideo.UI.Utils.closePopup(); return false;" do
|
37
|
+
%span Close
|
38
|
+
|
39
|
+
#popup_login.popup{ style: "display:none" }
|
40
|
+
.popup_wrap
|
41
|
+
.lights
|
42
|
+
.content= render template: '/users/sessions/new'
|
43
|
+
= link_to "/", class: 'close', onclick: "SublimeVideo.UI.Utils.closePopup(); return false;" do
|
44
|
+
%span Close
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- @ie_min ||= 7
|
2
|
+
|
3
|
+
= content_for :meta do
|
4
|
+
= surround "<!--[if lt IE #{@ie_min}]>".html_safe, "<![endif]-->".html_safe do
|
5
|
+
%meta{ "http-equiv" => "Refresh", content: "0;url=http://jilion.com/ie" }
|
6
|
+
%style{ type: "text/css", media: "screen" }= "body {background:#fff;display:none;}"
|
7
|
+
|
8
|
+
= content_for :css do
|
9
|
+
/[if lte IE 8]
|
10
|
+
= stylesheet_link_tag("ie")
|
11
|
+
|
12
|
+
= content_for :javascript do
|
13
|
+
/[if lte IE 9]
|
14
|
+
= javascript_include_tag("//html5shiv.googlecode.com/svn/trunk/html5.js")
|
@@ -0,0 +1,2 @@
|
|
1
|
+
%a{ href: "http://twitter.com/share", class: "twitter-share-button", data: { url: "http://sublimevideo.net", text: "Check out SublimeVideo HTML5 Video Player by @Jilion -", count: "horizontal", related: "jilion:Follow @Jilion for the latest news!" } } Tweet
|
2
|
+
= javascript_include_tag "//platform.twitter.com/widgets.js"
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta content='text/html;charset=UTF-8' http-equiv='Content-Type' />
|
5
|
+
<title>SublimeVideo</title>
|
6
|
+
|
7
|
+
<script src="https://use.typekit.com/vcc7hji.js" type="text/javascript"></script>
|
8
|
+
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
9
|
+
|
10
|
+
<style type="text/css">
|
11
|
+
* {
|
12
|
+
margin:0;
|
13
|
+
padding:0;
|
14
|
+
}
|
15
|
+
|
16
|
+
html{height:100%}
|
17
|
+
|
18
|
+
body {
|
19
|
+
height:100%;
|
20
|
+
font-family:proxima-nova-1, proxima-nova-2, Helvetica, Arial, sans-serif;
|
21
|
+
text-rendering:optimizeLegibility;
|
22
|
+
color:#4a648e;
|
23
|
+
font-size:20px;
|
24
|
+
line-height:30px;
|
25
|
+
text-shadow:rgba(255,255,255,0.75) 0 1px 0;
|
26
|
+
background:#dee4f0;
|
27
|
+
}
|
28
|
+
|
29
|
+
#distance{
|
30
|
+
float:left;
|
31
|
+
width:1px;
|
32
|
+
height:50%;
|
33
|
+
margin-bottom:-150px
|
34
|
+
}
|
35
|
+
|
36
|
+
#global {
|
37
|
+
width:390px;
|
38
|
+
height:240px;
|
39
|
+
margin:0 auto;
|
40
|
+
position:relative;
|
41
|
+
clear:left;
|
42
|
+
}
|
43
|
+
|
44
|
+
h1 {
|
45
|
+
display:block;
|
46
|
+
width:292px;
|
47
|
+
height:41px;
|
48
|
+
background:url(<%= asset_path 'sublimevideo_maintenance.png' %>) no-repeat;
|
49
|
+
}
|
50
|
+
|
51
|
+
h1 span {display:none}
|
52
|
+
|
53
|
+
p {
|
54
|
+
padding:30px 0 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
p.team {
|
58
|
+
padding-top:15px;
|
59
|
+
font-size:17px;
|
60
|
+
}
|
61
|
+
|
62
|
+
a {
|
63
|
+
text-decoration:none;
|
64
|
+
color:#00a1cf;
|
65
|
+
}
|
66
|
+
|
67
|
+
</style>
|
68
|
+
</head>
|
69
|
+
|
70
|
+
<body>
|
71
|
+
<div id="distance"></div>
|
72
|
+
<div id="global">
|
73
|
+
<h1><span>SublimeVideo</span></h1>
|
74
|
+
<p>We'll be back soon with something big. Keep an eye on <a href="http://twitter.com/jilion" onclick="window.open(this); return false">@jilion</a> to stay informed.</p>
|
75
|
+
<p>If you have any questions, please send an email to <a href="mailto:support@sublimevideo.net">support@sublimevideo.net</a>.</p>
|
76
|
+
<p class="team">—The SublimeVideo Team</p>
|
77
|
+
</div>
|
78
|
+
</body>
|
79
|
+
</html>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
= render 'layouts/ie'
|
5
|
+
|
6
|
+
%meta{ charset: 'utf-8' }
|
7
|
+
%meta{ content: 'SublimeVideo - HTML5 Video Player', property: 'og:title' }
|
8
|
+
%meta{ content: 'product', property: 'og:type' }
|
9
|
+
%meta{ content: 'http://sublimevideo.net', property: 'og:url' }
|
10
|
+
%meta{ content: 'http://media.jilion.s3.amazonaws.com/facebook/sublimevideo_facebook.png', property: 'og:image' }
|
11
|
+
%meta{ content: "SublimeVideo is the world's first cloud-based HTML5 video player; a universal and pain-free solution that allows video to play flawlessly on any device or browser.", property: 'og:description'}
|
12
|
+
%meta{ content: '469681536424865', property: 'fb:app_id' }
|
13
|
+
= yield :meta
|
14
|
+
- if !response.cache_control[:public]
|
15
|
+
= csrf_meta_tag
|
16
|
+
|
17
|
+
%title= page_title
|
18
|
+
|
19
|
+
= yield :css
|
20
|
+
= stylesheet_link_tag 'application'
|
21
|
+
%link{ rel: 'shortcut icon', href: 'http://sublimevideo.net/favicon.ico', type: 'image/x-icon' }
|
22
|
+
|
23
|
+
|
24
|
+
= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'
|
25
|
+
= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js'
|
26
|
+
= javascript_include_tag '//use.typekit.com/vcc7hji.js'
|
27
|
+
= yield :javascript
|
28
|
+
= javascript_include_tag 'application'
|
29
|
+
= javascript_tag 'try {Typekit.load();} catch(e) {}'
|
30
|
+
|
31
|
+
%body{ class: body_class }
|
32
|
+
#dm_banner
|
33
|
+
= link_to "http://blog.jilion.com/2013/12/10/dailymotion-acquires-jilion" do
|
34
|
+
%h2= "Jilion joins Dailymotion"
|
35
|
+
%div
|
36
|
+
%div{ 'data-body-class' => body_class }
|
37
|
+
%header
|
38
|
+
.lights
|
39
|
+
.shadow
|
40
|
+
.stars
|
41
|
+
.wrap
|
42
|
+
%h1
|
43
|
+
= link_to layout_url('') do
|
44
|
+
%span= 'SublimeVideo'
|
45
|
+
= render 'layouts/header_menu'
|
46
|
+
= yield :header
|
47
|
+
|
48
|
+
= yield :middle
|
49
|
+
|
50
|
+
%section#content
|
51
|
+
= yield :content_menu
|
52
|
+
.content_wrapper= yield
|
53
|
+
.spacer
|
54
|
+
= yield :highlights
|
55
|
+
= render 'layouts/footer'
|
56
|
+
|
57
|
+
= yield :bottom
|
58
|
+
= yield :javascript_bottom
|
59
|
+
|
60
|
+
- if Rails.env.production?
|
61
|
+
= render 'layouts/gosquared'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
%h2.title= "Create your account"
|
2
|
+
|
3
|
+
= form_tag my_url('signup'), id: 'user_signup', class: "main_form" do
|
4
|
+
- if params[:user_return_to]
|
5
|
+
= hidden_field_tag :user_return_to, params[:user_return_to]
|
6
|
+
|
7
|
+
.entry.email
|
8
|
+
= label_tag :user_email, "Email", class: "icon"
|
9
|
+
= email_field_tag "user[email]", nil, class: "text", placeholder: "Email", required: true, id: 'user_email'
|
10
|
+
|
11
|
+
.entry.password
|
12
|
+
= label_tag :user_password, "Password", class: "icon"
|
13
|
+
= password_field_tag "user[password]", nil, class: "text show_password", placeholder: "Password", required: true, id: 'user_password'
|
14
|
+
|
15
|
+
.break
|
16
|
+
.entry.terms
|
17
|
+
.checkbox_wrap
|
18
|
+
= check_box_tag "user[terms_and_conditions]", 1, false, id: 'user_terms_and_conditions'
|
19
|
+
= label_tag :user_terms_and_conditions,
|
20
|
+
"I agree to the #{link_to("Terms & Conditions", my_url('terms'), onclick: "window.open(this); return false")}.".html_safe
|
21
|
+
|
22
|
+
.entry.submit.sign_up
|
23
|
+
= submit_tag "Sign Up"
|
24
|
+
.spacer
|
@@ -0,0 +1,25 @@
|
|
1
|
+
%h2.title= "Log in to SublimeVideo"
|
2
|
+
|
3
|
+
= form_tag my_url('login'), id: 'user_login', class: "main_form" do
|
4
|
+
- if params[:user_return_to]
|
5
|
+
= hidden_field_tag :user_return_to, params[:user_return_to]
|
6
|
+
|
7
|
+
.entry.email
|
8
|
+
= label_tag :user_email, "Email", class: "icon"
|
9
|
+
= email_field_tag "user[email]", nil, class: "text", placeholder: "Email", required: true, id: 'user_email'
|
10
|
+
|
11
|
+
.entry.password
|
12
|
+
= label_tag :user_password, "Password", class: "icon"
|
13
|
+
= password_field_tag "user[password]", nil, class: "text", placeholder: "Password", required: true, id: 'user_password'
|
14
|
+
|
15
|
+
.checkbox_wrap
|
16
|
+
= check_box_tag "user[remember_me]", 1, id: 'user_remember_me'
|
17
|
+
= label_tag :user_remember_me, "Remember me"
|
18
|
+
|
19
|
+
.entry.submit.login
|
20
|
+
= submit_tag "Log In", class: "blue_button"
|
21
|
+
%ul.form_list
|
22
|
+
%li.signup= link_to "Don't have an account yet?", '/?p=signup'
|
23
|
+
%li= link_to "Forgot your password?", my_url('password/new')
|
24
|
+
%li= link_to "Didn't receive confirmation instructions?", my_url('confirmation/new')
|
25
|
+
.spacer
|