-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
201 additions
and
6 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
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,2 +1,6 @@ | ||
class WelcomeController < ApplicationController | ||
|
||
def index | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Searched Recipes</h1> | ||
|
||
<% @searched_recipes.each do |recipe| %> | ||
|
||
<ul> | ||
<li><%= link_to recipe.name, recipe_path(recipe) %></li> | ||
</ul> | ||
|
||
<% 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,13 @@ | ||
<div class="row"> | ||
<form class="col s12" action="/search" method="post"> | ||
<div class="row"> | ||
<br><br><br><br> | ||
<div class="input-field col s12"> | ||
<i class="material-icons prefix">search</i> | ||
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>"> | ||
<input id="icon_prefix" type="text" class="validate" name="search"> | ||
<label for="icon_prefix">Search</label> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
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,4 +1,95 @@ | ||
<h2>Welcome to the Recipe Sharing App</h2> | ||
<h2>Welcome to FaceCook!</h2> | ||
<p> | ||
The time is now: <%= Time.now %> | ||
<%= Time.now.strftime("%B %d, %Y") %> | ||
</p> | ||
|
||
<div class="container"> | ||
<br> | ||
<div class="row"> | ||
<p><strong>Featured Recipes of This Week</strong></p> | ||
<% Recipe.featured.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
<br><br> | ||
|
||
<p><strong>Top Users</strong></p> | ||
<% Recipe.top_users.each do |user| %> | ||
<div class="col s3"> | ||
<%= image_tag user.image.url(:thumb) %> | ||
<br> | ||
<%= link_to user.first_name, user_path(user) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<br> | ||
|
||
<div class="row"> | ||
<p><strong>Top Recipes of All Time</strong></p> | ||
<% Recipe.top_recipes.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
|
||
<p><strong>Fastest Food</strong></p> | ||
<% Recipe.fast_food.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="row"> | ||
<p><strong>Best Vegan Recipes</strong></p> | ||
<% Recipe.top_vegan.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
<br><br> | ||
</div> | ||
|
||
<div class="row"> | ||
<p><strong>Best Low Carb Recipes</strong></p> | ||
<% Recipe.top_low_carb.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<br> | ||
|
||
<div class="row"> | ||
<p><strong>Best Kosher Recipes</strong></p> | ||
<% Recipe.top_kosher.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="row"> | ||
<p><strong>Best Halaal Recipes</strong></p> | ||
<% Recipe.top_halal.each do |recipe| %> | ||
<div class="col s3"> | ||
<%= image_tag recipe.image.url(:thumb) %> | ||
<br> | ||
<%= link_to recipe.name, recipe_path(recipe) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
BIN
+97.4 KB
public/system/recipes/images/000/000/001/original/cibao-cuban-620.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
BIN
+182 KB
...ystem/recipes/images/000/000/004/medium/Spicy-Tofu-And-Vegan-Enchilada-Bowl.png
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
BIN
+278 KB
...tem/recipes/images/000/000/004/original/Spicy-Tofu-And-Vegan-Enchilada-Bowl.png
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
BIN
+22 KB
...system/recipes/images/000/000/004/thumb/Spicy-Tofu-And-Vegan-Enchilada-Bowl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
BIN
+108 KB
public/system/users/images/000/000/002/original/bfa-flightpath7501.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
BIN
+108 KB
public/system/users/images/000/000/003/original/bfa-flightpath7501.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.