Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vistas y CSS mejorado con marco externo
- Loading branch information
Showing
13 changed files
with
113 additions
and
113 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Planet</title> | ||
<%= stylesheet_link_tag "application" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
|
||
<div> | ||
<%= link_to "Sitios", sites_path %> | ||
<%= link_to "Tipos", types_path %> | ||
</div> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Planet Travel Site</title> | ||
<!-- START:stylesheet --> | ||
<%= stylesheet_link_tag "scaffold" %> | ||
<%= stylesheet_link_tag "planet", :media => "all" %><!-- <label id="code.slt"/> --> | ||
<!-- END:stylesheet --> | ||
<%= javascript_include_tag :defaults %> | ||
<%= csrf_meta_tag %><!-- <label id="code.csrf"/> --> | ||
</head> | ||
<body id="planet"> | ||
<div id="banner"> | ||
<%= image_tag("logo3.png") %> | ||
<%= @page_title || "Planet Travel Site" %><!-- <label id="code.depot.e.title"/> --> | ||
</div> | ||
<div id="columns"> | ||
<div id="side"> | ||
<%= link_to "Home", planet_index_path %><br /> | ||
<%= link_to "Tipos", types_path %><br /> | ||
<%= link_to "Sitios", sites_path %><br /> | ||
<%= link_to "Contact", planet_contact_path %> | ||
</div> | ||
<div id="main"> | ||
<%= yield %><!-- <label id="code.depot.e.include"/> --> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
<h1>Listing sites</h1> | ||
|
||
<table> | ||
<tr> | ||
<th>Name</th> | ||
<th>Description</th> | ||
<th>Type</th> | ||
<th>Latitude</th> | ||
<th>Longitude</th> | ||
<th>Zoom</th> | ||
<th>Image url</th> | ||
<th></th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
|
||
<% @sites.each do |site| %> | ||
<tr> | ||
<td><%= site.name %></td> | ||
<td><%= site.description %></td> | ||
<td><%= site.type.name if site.type %></td> | ||
<td><%= site.latitude %></td> | ||
<td><%= site.longitude %></td> | ||
<td><%= site.zoom %></td> | ||
<td><%= site.image_url %></td> | ||
<td><%= link_to 'Show', site %></td> | ||
<td><%= link_to 'Edit', edit_site_path(site) %></td> | ||
<td><%= link_to 'Destroy', site, confirm: 'Are you sure?', method: :delete %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
|
||
<br /> | ||
|
||
<%= link_to 'New Site', new_site_path %> | ||
<div id="site_list"> | ||
<h1>Listing Sites</h1> | ||
|
||
<table> | ||
<% @sites.each do |site| %> | ||
<tr class="<%= cycle('list_line_odd', 'list_line_even') %>"> | ||
|
||
<td> | ||
<%= link_to image_tag(site.image_url, :class => 'list_image'), site %> | ||
</td> | ||
|
||
<td class="list_description"> | ||
<dl> | ||
<dt><%= link_to site.name, site %></dt> | ||
<dd><%= truncate(strip_tags(site.description), | ||
:length => 80) %></dd> | ||
</dl> | ||
</td> | ||
|
||
<td class="list_actions"> | ||
<%= link_to 'Show', site %><br/> | ||
<%= link_to 'Edit', edit_site_path(site) %><br/> | ||
<%= link_to 'Destroy', site, | ||
:confirm => 'Are you sure?', | ||
:method => :delete %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
</div> | ||
|
||
<br /> | ||
|
||
<%= link_to 'New site', new_site_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,26 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<p> | ||
<b>Name:</b> | ||
<%= @site.name %> | ||
</p> | ||
|
||
<p> | ||
<b>Description:</b> | ||
<%= @site.description %> | ||
</p> | ||
|
||
<p> | ||
<b>Type:</b> | ||
<%= @site.type.name if @site.type %> | ||
</p> | ||
|
||
<p> | ||
<b>Latitude:</b> | ||
<%= @site.latitude %> | ||
</p> | ||
|
||
<p> | ||
<b>Longitude:</b> | ||
<%= @site.longitude %> | ||
</p> | ||
|
||
<p> | ||
<b>Zoom:</b> | ||
<%= @site.zoom %> | ||
</p> | ||
|
||
<p> | ||
<b>Image url:</b> | ||
<%= @site.image_url %> | ||
</p> | ||
|
||
|
||
<div id="site"> | ||
|
||
<h1><%= @site.type.name if @site.type %></h1> | ||
|
||
<%= image_tag(@site.image_url, :class => 'site_image') %> | ||
|
||
<h3><%= @site.name %></h3> | ||
|
||
<p><%=sanitize @site.description %></p> | ||
|
||
<div class="position"> | ||
<span> | ||
<b>Latitude:</b> | ||
<%= @site.latitude %> | ||
</span> | ||
|
||
<span> | ||
<b>Longitude:</b> | ||
<%= @site.longitude %> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<p /> | ||
<%= link_to 'Edit', edit_site_path(@site) %> | | ||
<%= link_to 'Back', sites_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters