diff options
Diffstat (limited to 'app/views/location/_pshow.rhtml')
-rw-r--r-- | app/views/location/_pshow.rhtml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/location/_pshow.rhtml b/app/views/location/_pshow.rhtml new file mode 100644 index 0000000..b1b042a --- /dev/null +++ b/app/views/location/_pshow.rhtml @@ -0,0 +1,29 @@ + +<% if @location != nil %> +<table> + <tr> + <td>Name:</td><td><%= @location.name %></td> + </tr> + <tr> + <td>Strasse:</td><td><%= @location.street %></td> + <tr> + <td>Hausnr.:</td><td><%= @location.streetnr %></td> + </tr> + <tr> + <td>Kommentar:</td><td><%= @location.comment %></td> + </tr> + <tr> + <td>changed:</td><td><%= @location.time %></td> + </tr> + <tr> + <td>Links:</td> + <td> + <%= link_to('Smokeping','http://stats.ffgraz.net/smokeping/index.cgi?target=Funkfeuer.' + @location.name) %><br /> + <% if @location.gallery_link != nil %> + <%= link_to 'Gallery', @location.gallery_link %><br /> + <% end %> + <%= link_to 'google maps', @googlemap %><br /></td> + </tr> +</table> +<p><%= link_to 'Edit', { :action => 'edit', :id => @location.id } %> +<% end %> |