Skip to content

Commit

Permalink
Swich from slim back to erb'
Browse files Browse the repository at this point in the history
  • Loading branch information
hoitomt committed Mar 24, 2015
1 parent b1a5615 commit 0196aee
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 37 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -14,7 +14,6 @@ gem 'sdoc', '~> 0.4.0', group: :doc
gem 'pg'
gem 'puma'
gem 'dotenv-rails'
gem 'slim'
gem 'faraday'

group :development, :test do
Expand Down
5 changes: 0 additions & 5 deletions Gemfile.lock
Expand Up @@ -150,9 +150,6 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
slim (3.0.3)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
spin (0.7.1)
spring (1.3.3)
Expand All @@ -166,7 +163,6 @@ GEM
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
temple (0.7.5)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
Expand Down Expand Up @@ -206,7 +202,6 @@ DEPENDENCIES
rails (= 4.2.0)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
slim
spin
spring
sqlite3
Expand Down
23 changes: 23 additions & 0 deletions app/views/layouts/_navigation.html.erb
@@ -0,0 +1,23 @@
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<%= link_to "Stock Portfolio", root_path, class:"navbar-brand" %>
</button>
<div id="navbar-main" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><%= link_to "Portfolio", '#' %></li>
</ul>
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input class="form-control" type="text" placeholder="Search">
</div>
<input type="submit" class="btn btn-default" value="Submit">
</form>
</div>
</div>
</div>
</nav>
15 changes: 0 additions & 15 deletions app/views/layouts/_navigation.slim

This file was deleted.

15 changes: 15 additions & 0 deletions app/views/layouts/application.html.erb
@@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<title>Stock Portfolio API</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'layouts/navigation' %>
<div class="container">
<%= yield %>
</div>
</body>
</html>
11 changes: 0 additions & 11 deletions app/views/layouts/application.slim

This file was deleted.

4 changes: 4 additions & 0 deletions app/views/pages/index.html.erb
@@ -0,0 +1,4 @@
<h1>Stock Portfolio API</h1>
<% unless signed_in? %>
<%= link_to "Log in with Github", github_login_path %>
<% end %>
4 changes: 0 additions & 4 deletions app/views/pages/index.slim

This file was deleted.

1 change: 1 addition & 0 deletions app/views/pages/test.html.erb
@@ -0,0 +1 @@
<h1>Welcome, you are in the club</h1>
1 change: 0 additions & 1 deletion app/views/pages/test.slim

This file was deleted.

0 comments on commit 0196aee

Please sign in to comment.