move logout link to right
authorTom Clegg <tom@clinicalfuture.com>
Fri, 1 Feb 2013 17:41:38 +0000 (09:41 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 1 Feb 2013 17:41:38 +0000 (09:41 -0800)
app/views/layouts/application.html.erb

index 0eab6760c703ac673068f27e851245297346e9c3..6be7709f97e2a82eb4d2f5c8f033ffa5bf5842a3 100644 (file)
           <ul class="nav">
            <% [
               [true, 'FactoryJobs', factory_jobs_path],
-              [true, 'Data', collections_path],
-              [false, 'Log out', logout_path]
+              [true, 'Data', collections_path]
               ].each do |admin_only, name, path| %>
            <% if !admin_only or (current_user and current_user.is_admin) %>
             <li<%= raw ' class="active"' if request.fullpath.index(path) %>><a href="<%= path %>"><%= name %></a></li>
            <% end %>
            <% end %>
+         </ul>
+         <ul class="nav pull-right">
+            <li><a href="<%= logout_path %>">Log out</a></li>
           </ul>
         </div><!--/.nav-collapse -->
       </div>