Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planet_1 #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Reminder: Hemos subido esta practica al tiempo al moodle.

Saludos

Robert Fabian
Mattia Peirano

== Welcome to Rails

Rails is a web-application framework that includes everything needed to create
Expand Down
Binary file added app/assets/images/mattia.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/robert.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
// the compiled file.
//
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree .
Binary file removed app/assets/javascripts/images/buttons.gif
Binary file not shown.
Binary file removed app/assets/javascripts/images/toolbar.gif
Binary file not shown.
31 changes: 0 additions & 31 deletions app/assets/javascripts/jquery.cleditor.min.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/javascripts/trips.js.coffee

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require vendor
*= require_tree .
*/
21 changes: 21 additions & 0 deletions app/assets/stylesheets/authors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.data {
border: 2px solid #444466;
padding: 10px;
margin: 10px;
}
.data img {
float: right;
}

p.spacer {
clear: both;
}

.cv {
border: 1px solid #444466;
margin-right: 500px ;
}

.title {
font-weight: bold;
}
24 changes: 0 additions & 24 deletions app/assets/stylesheets/jquery.cleditor.css

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/trips.css.scss

This file was deleted.

3 changes: 3 additions & 0 deletions app/controllers/planet_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ def contact
# GET /planet/ejemplo
def ejemplo
end

def author
end

end
83 changes: 0 additions & 83 deletions app/controllers/trips_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/trips_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/trip.rb

This file was deleted.

18 changes: 3 additions & 15 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,8 @@
<head>
<title>Planet</title>
<%= stylesheet_link_tag "application" %>

<%= javascript_include_tag "application" %>

<%= csrf_meta_tags %>


<script type="text/javascript">
$(function() {
$( "#trip_description" ).cleditor();
$( "#trip_date" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>

</head>
<body id="planet">
<div id="banner">
Expand All @@ -30,11 +16,13 @@
<%= link_to "Home", planet_index_path %><br />
<%= link_to "Tipos", types_path %><br />
<%= link_to "Sitios", sites_path %><br />
<%= link_to "Viajes", trips_path %><br />
<%= link_to "Autores", planet_author_path %><br />
<%= link_to "Contact", planet_contact_path %>
</div>
<div id="main">
<%= link_to('Home', planet_index_path) + " | " + link_to('Ejemplo', planet_ejemplo_path) + " | " + link_to('Autores', planet_author_path) + " | " + link_to('Contact', planet_contact_path) %><br />
<%= yield %>
<br /><%= link_to('Home', planet_index_path) + " | " + link_to('Ejemplo', planet_ejemplo_path) + " | " + link_to('Autores', planet_author_path) + " | " + link_to('Contact', planet_contact_path) %><br />
</div>
</div>
</body>
Expand Down
1 change: 1 addition & 0 deletions app/views/planet/author.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>Authors</h1><div class="data"> <%= image_tag('robert.jpeg', :size => "216x144") %> <p><span class="title">Name:</span> Robert Fabian </p> <p><span class="title">Address:</span> Madrid, c/Carboneras 3 </p> <p><span class="title">Email:</span> [email protected] </p> <p><span class="title">CV:</span></p> <div class="cv"> <ul> <li>Nombre: Robert Fabian</li> <li>Pais: Polonia</li> <li>Fecha nacimiento: 4 Marzo 1988</li> <li>Universidad de origen: AGH en Cracovia</li> </ul> </div> <!--cv--> <p class="spacer"></p></div><div class="data"> <%= image_tag('mattia.jpeg', :size => "216x144") %> <p><span class="title">Name:</span> Mattia Peirano </p> <p><span class="title">Address:</span> Madrid, c/Luceros 4 </p> <p><span class="title">Email:</span> [email protected] </p> <p><span class="title">CV:</span></p> <div class="cv"> <ul> <li>Nombre: Mattia Peirano</li> <li>Pais: Italia</li> <li>Fecha nacimiento: 14 Febrero 1988</li> <li>Universidad de origen: Politecnico di Torino</li> </ul> </div> <!--cv--> <p class="spacer"></p></div>
Expand Down
29 changes: 0 additions & 29 deletions app/views/trips/_form.html.erb

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/trips/edit.html.erb

This file was deleted.

Loading