Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Neaten logout link

  • Loading branch information...
commit e1758cf456b37a7b58f0c0a3284a7e9882419a64 1 parent 7d10115
Paul Mison blech authored
3  app/views/layouts/application.html.erb
View
@@ -10,6 +10,9 @@
<body>
<div id="header">
<h1>OpenDirtMap</h1>
+ <% if authorized_user? %>
+ <p class="logout"><a href="/logout">Logout</a></p>
+ <% end %>
</div>
<div id="content">
1  app/views/root/index.html.haml
View
@@ -6,7 +6,6 @@
- @geotagged_photos.each do |photo|
%p.thumbnail
= link_to(image_tag("http://farm#{ photo.farm }.static.flickr.com/#{ photo.server }/#{ photo.id }_#{ photo.secret }_s.jpg"), tag_path(photo.id))
- %p.vspace= link_to("Logout", logout_path)
- unless authorized_user?
%h2 Add your own photos?
12 public/css/main.css
View
@@ -27,6 +27,7 @@ body {
h1 {
font: normal 32px Helvetica, Arial, sans-serif;
+ float: left;
}
h1.dim {
@@ -76,6 +77,9 @@ table {
div#header {
margin: 8px 16px;
+ overflow: hidden;
+ width: 836px;
+ height: 36px;
}
div#sidebar {
@@ -84,6 +88,7 @@ div#sidebar {
div#content {
margin: 16px;
width: 836px;
+ clear: both;
}
div#footer {
@@ -145,6 +150,13 @@ p.vspace {
margin-top: 5px;
}
+p.logout {
+ padding-top: 19px;
+ vertical-align: bottom;
+ float: right;
+ clear: after;
+}
+
/*
div#heroku_tookbar {
display: none !important;
Please sign in to comment.
Something went wrong with that request. Please try again.