diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/index.html.erb | 12 | ||||
| -rw-r--r-- | views/layout.html.erb | 7 | 
2 files changed, 13 insertions, 6 deletions
| diff --git a/views/index.html.erb b/views/index.html.erb index 351c34a..c41c0ad 100644 --- a/views/index.html.erb +++ b/views/index.html.erb @@ -1,11 +1,15 @@ -<div> -    <a href="javascript:(function(){var xhr=new XMLHttpRequest();var params='url='+window.location.href;xhr.open('POST','<%= @env['REQUEST_URI'] %>clips',true);xhr.onreadystatechange=function(){if(this.readyState==4){if(xhr.status==200){if(xhr.responseText.success){}}}};xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xhr.send(params);})()" onclick="alert('Drag this link onto your browser bookmarks bar.'); return false;">Clips</a> +<div id="details"> +    Grab the bookmarklet: <a href="javascript:(function(){var xhr=new XMLHttpRequest();var params='url='+window.location.href;xhr.open('POST','<%= "#{@env['rack.url_scheme']}://#{@env['HTTP_HOST']}" %>/clips',true);xhr.onreadystatechange=function(){if(this.readyState==4){if(xhr.status==200){if(xhr.responseText.success){}}}};xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xhr.send(params);})()" onclick="alert('Drag this link onto your browser bookmarks bar.'); return false;">Clips</a>  </div>  <% unless @clips.empty? %> -    <ul> +    <ul id="clips">          <% @clips.each do |c| %> -            <li><%= c.url %></li> +            <li> +                <a href="<%= c.url %>"> +                    <%= c.url %> +                </a> +            </li>          <% end %>      </ul>  <% else %> diff --git a/views/layout.html.erb b/views/layout.html.erb index 845929f..137c2c2 100644 --- a/views/layout.html.erb +++ b/views/layout.html.erb @@ -7,15 +7,18 @@  	<meta name="description" content="">  	<meta name="viewport" content="width=device-width"> -	<link rel="stylesheet" href="css/style.css"> +	<link href='http://fonts.googleapis.com/css?family=Josefin+Sans|Raleway+Dots|Voltaire' rel='stylesheet' type='text/css'> +	<link rel="stylesheet" href="assets/stylesheets/global.css">  </head>  <body>  	<header> - +        <h1>Clips</h1>  	</header> +	  	<div role="main">  		<%= yield %>  	</div> +	  	<footer>  	</footer> | 
