Permalink
Browse files

add 4 common partial

  • Loading branch information...
xdite committed Oct 8, 2012
1 parent 0d8029d commit b5346fddde79aa5c0f38d21a2eca456a340a3bd3
@@ -0,0 +1,4 @@
<div id="modal-from-dom" class="modal hide fade">
</div>
@@ -0,0 +1,9 @@
<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&appId=289554394417824";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
@@ -0,0 +1,10 @@
<footer class="footer">
<%= render_list :class => "nav nav-pills pull-right" do |li|
#li << link_to( "Link1", "#")
#li << link_to( "Link2", "#")
#li << link_to( "Link3", "#")
#li << link_to( "Link4", "#")
end %>
<p class="copyright">Copyright @2012 <%= Setting.app_name %> All rights reserved.</p>
</footer>
@@ -0,0 +1,13 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<%= Setting.google_analytics_key %>']);
_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>
@@ -1,25 +1,20 @@
<ul class="nav pills pull-right">
<% if current_user %>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="<%= user_path(current_user) %>">
<%= current_user.name %>
</a>
<%= link_to user_path(current_user), :class => "dropdown-toggle", :data => { :toogle => "dropdown" } do %>
<%= current_user.name %>
<% end %>
<%= render_list :class => "dropdown-menu" do |li|
li << link_to("Logout",destroy_user_session_path, :method => :delete )
end %>
</li>
<% else %>
<li> <%= link_to( "Sing Up" ,new_user_registration_path) %> </li>
<li> <%= link_to( "Login", new_user_session_path ) %> </li>
<li> <%= link_to( "Login", new_user_session_path ) %> </li>
<% end %>

0 comments on commit b5346fd

Please sign in to comment.