-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.html
More file actions
154 lines (145 loc) · 5.88 KB
/
application.html
File metadata and controls
154 lines (145 loc) · 5.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%= display_meta_tags :site => 'Passerby' %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="http://c303616.r16.cf1.rackcdn.com/favicon.ico">
<meta charset="utf-8">
<meta name="description" content="A new crowdfunding platform exclusive to film.">
<meta name="keywords" content="crowdfunding, passerby, film, filmmaker, indie, independent, fundraising">
<%= csrf_meta_tag %>
<%= stylesheet_link_tag "application", :media => "screen" %>
<%= stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/redmond/jquery-ui.css" %>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<%= javascript_include_tag "application.js" %>
<%= javascript_include_tag "modernizr.js" %>
<% if Rails.env.production? %>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29774486-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<% end %>
</head>
<body>
<div id="wrap">
<div id="main">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="container" style="">
<div class="row">
<div class="span2">
<a href="#"><h1 id="logo">Passerby</h1></a>
</div>
<nav class="span6">
<ul class="main-menu">
<li><%= link_to "Browse Films", films_path() %></li>
<li><%= link_to "Submit a Film", new_film_submission_path() %></li>
<li><%= link_to "Read our Blog", "/blog" %></li>
<li><%= link_to "Learn More", faqs_path() %></li>
</ul>
</nav>
<div class="span2 find">
<div class="search">
<form method="get" action="/search">
<input name="q" type="text" size="30" placeholder="Search...">
</form>
</div>
</div>
<nav class="span2" id="nav-login">
<ul class="register-nav">
<% if !current_user %>
<li><%= link_to "Join", new_user_registration_path() %></li> <li>|</li> <li><%= link_to "Login", new_user_session_path() %></li>
<% else %>
</ul>
</nav>
<span class="dropdown" id="account-menu">
<a class="dropdown-toggle pull-right" data-toggle="dropdown" href="#account-menu">
My Account <i class="icon-chevron-down icon-white"></i>
</a>
<ul class="dropdown-menu">
<li><%= link_to "My Films", account_films_path %></li>
<li class="divider"></li>
<li><%= link_to "Edit Settings", account_profile_path %></li>
<li class="divider"></li>
<li><%= link_to "Logout", destroy_user_session_path(), :method => :delete %></li>
</ul>
</span>
<% end %>
</div>
<% if(is_active?("films", "show")) %>
<div class="section-1">
<ul id="menu" class="">
<li id="nav-1"><a href="#film-tab" class="active" data-toggle="tab">Film</a></li>
<li id="nav-2"><a href="#updates-tab" data-toggle="tab">Updates</a></li>
</ul>
</div>
<% end %>
<% if !flash.empty? %>
<div class="row">
<span class="span2"> </span>
<span class="span10">
<% if flash[:error] %>
<% #flash.each do |name, msg| %>
<% #msg.each do |message| %>
<p class="alert alert-error"><%= flash[:error] %></p>
<% #end %>
<% #end %>
<% end %>
<% if flash[:notice] %>
<p class="alert alert-success"><%= flash[:notice] %></p>
<% end %>
</span>
</div>
<% end %>
<%= yield %>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="span5">
<ul class="footer-nav">
<li><%= link_to "FAQs", faqs_path() %></li>
<li><%= link_to "Contact Us", contact_path() %></li>
<li><%= link_to "Privacy", privacy_path() %></li>
<li><%= link_to "Terms", terms_path() %></li>
</ul>
</div>
<div class="span2 offset1">
<span class="social">
<a href="http://facebook.com/passerbyco" target="_blank" title="Like our Facebook page" class="fb">Facebook</a>
<a href="http://twitter.com/#!/passerby" target="_blank" title="Follow us on Twitter" class="tw">Twitter</a>
</span>
</div>
<div class="span3 offset1">
<ul class="footer-logo">
<li>© 2012 Passerby Co.</li>
<li class="img"></li>
</ul>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('input, textarea').placeholder();
});
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script>
</body>
</html>