aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorTeddy Wing2013-04-07 04:56:54 -0400
committerTeddy Wing2013-04-07 04:56:54 -0400
commitf0d38f309a4e96175c993f6096bf2a19a9d24b6b (patch)
tree3e58134898cc2e21b6ebdf69d0f0fbb82af0975d /views
parent01998983cdfde417abbea4812a5ab7e02ef4547e (diff)
downloadclips-f0d38f309a4e96175c993f6096bf2a19a9d24b6b.tar.bz2
Add preliminary styles to the site
Diffstat (limited to 'views')
-rw-r--r--views/index.html.erb12
-rw-r--r--views/layout.html.erb7
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>