Skip to content

Commit

Permalink
add navigation between sites
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuity committed Aug 8, 2010
1 parent 844dcb8 commit 4f86db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/sites/show.html.erb
@@ -1,2 +1,3 @@
<h1>Site: <%= @site.name %></h1>
<p>Belongs to: <%= link_to @site.user.name, user_url(@site.user) %></p>
<p>Belongs to: <%= link_to @site.user.name, user_url(@site.user, :subdomain => false) %></p>
<p><%= link_to 'Home', root_url(:subdomain => false) %></p>
1 change: 1 addition & 0 deletions app/views/users/show.html.erb
Expand Up @@ -9,6 +9,7 @@
<td><%= link_to subdomain.name, subdomain %></td>
<td><%= link_to 'Edit', edit_subdomain_path(subdomain) %></td>
<td><%= link_to 'Destroy', subdomain, :confirm => 'Are you sure?', :method => :delete %></td>
<td><%= link_to "Visit #{root_url(:subdomain => subdomain.name)}", root_url(:subdomain => subdomain.name) %></td>
</tr>
<% end %>
</table>
Expand Down

0 comments on commit 4f86db9

Please sign in to comment.