<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Databox Broker</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
	</head>
	<body>
		<div id="twitter-sign-in-button" style="display: none">
			<a href="/twitter/connect">
				<img alt="Sign in with Twitter" src="/sign-in-with-twitter-gray.png">
			</a>
		</div>
		<script>
			$.get('/twitter/is-signed-in', {}, function(isSignedIn) {
				if (isSignedIn === 'false')
					$('#twitter-sign-in-button').show();
			});
		</script>
	</body>
</html>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Databox Broker</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
	</head>
	<body>
		<div id="twitter-sign-in-button" style="display: none">
			<a href="/broker/twitter/connect">
				<img alt="Sign in with Twitter" src="/broker/sign-in-with-twitter-gray.png">
			</a>
		</div>
		<script>
			$.get('/broker/twitter/is-signed-in', {}, function(isSignedIn) {
				if (isSignedIn === 'false')
					$('#twitter-sign-in-button').show();
			});
		</script>
	</body>
</html>

Make URLs relative to dashboard
Make URLs relative to dashboard
