Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got all the breadcrumbs working properly and revised the homepage so …
…that it shows a full list of projects and looks better.
- Loading branch information
Showing
16 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
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
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,3 +1,28 @@ | ||
// Place all the styles related to the home controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
|
||
#newprojectbox { | ||
text-transform: uppercase; | ||
letter-spacing: 1px; | ||
float: right; | ||
text-align: center; | ||
border: 2px solid #cebf62; | ||
margin-top: 20px; | ||
margin-right: 20px; | ||
padding: 20px 20px 20px 20px; | ||
padding-bottom: 15px; | ||
} | ||
|
||
#home_content { | ||
margin: 15px 15px 15px 15px; | ||
margin: auto; | ||
text-align: center; | ||
width: 750px; | ||
} | ||
|
||
hr { | ||
width: 740px; | ||
color: #d3d3d3; | ||
height: 2px; | ||
} |
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,5 +1,6 @@ | ||
class HomeController < ApplicationController | ||
def index | ||
@projects = Project.all | ||
end | ||
|
||
end |
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
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
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,3 +1,10 @@ | ||
<h1>Hivemind</h1> | ||
<%= link_to "List of projects", projects_path %> | ||
Hivemind helps you find creative projects to collaborate on. | ||
<hr /> | ||
|
||
<% @projects.each do |project| %> | ||
<div> | ||
<%= link_to project.name, project %> - <%= project.engine %> | ||
</div> | ||
<% end %> | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Hivemind</title> | ||
<%= stylesheet_link_tag "application" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
|
||
<div id="header"> | ||
<div id="newprojectbox"> | ||
<span style="font-size:large;"><strong>Got big ideas?</strong></span> | ||
<p><em><%= link_to 'Start a new project', '/projects/new' %></em></p> | ||
</div> | ||
</div> | ||
|
||
<div id="home_content"> | ||
<%= yield %> | ||
</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
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
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,5 +1,13 @@ | ||
<% content_for :breadcrumb do %> | ||
<span class="breadcrumbitem"><a href="/projects">Projects</a></span> | ||
<span class="breadcrumbgt">></span> | ||
<span class="breadcrumbitem">Create</span> | ||
<% end %> | ||
|
||
<h1>New project</h1> | ||
|
||
<p>Yo ho! You are the adventurous, the enterprising, the few and the proud who dare to create!</p> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Back', projects_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
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
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
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
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