<!-- Want to use this template whether auth'd or not so I've got some code to determine how to render below -->
<header>
	<% if not current_user %>
		<ul class="mini-nav">
	       <li>
	         <%= button_to "signup", signup_path, {:class => "btn btn-primary", :method => "get"} %>
	       </li>
	     </ul>
		<ul class="mini-nav">
	       <li>
	         <%= button_to "login", login_path, {:class => "btn", :method => "get"} %>
	       </li>
	     </ul>
	<% else %>
		<ul class="mini-nav">
			<li>
		    	<%= button_to "<- back to app", home_dashboard_index_path, {:class => "btn btn-primary", :method => "get"} %>
		    </li>
		</ul>
	<% end %>
	<ul class="mini-nav">
       <li>
         <%= button_to "Tutorial Credentials", "#myModalLabel1", {:id => "show_creds_btn", :class => "btn btn-danger", :method => "get"} %>
       </li>
     </ul>

</header>

	<div id="modal_div" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myAlert" aria-hidden="true">
	</div>

<script type="text/javascript">

$('#show_creds_btn').click(function(event) {  
	event.preventDefault();
	$("#modal_div").load(<%= credentials_tutorials_path.inspect.html_safe %>);
	$("#modal_div").modal("show");
});
</script>