Browse files

changed erb to haml

  • Loading branch information...
1 parent df94e1b commit f9dd2c44b1aa82b67fc1f3d646fa4e9838f64741 @sachinmaharjan committed Nov 20, 2011
Showing with 10 additions and 31 deletions.
  1. +0 −9 app/views/home/index.html.erb
  2. +10 −8 app/views/home/index.html.haml
  3. +0 −14 app/views/layouts/application.html.erb
View
9 app/views/home/index.html.erb
@@ -1,9 +0,0 @@
-<div style="margin: 0 auto; text-align:left;">
-
- <h1>Welcome to Maharjans - Quotes</h1>
- <p>If you rise above the pettiness of people and small annoyances……you will be able to give your energy to the important things.</p>
-
- <p>You don't make decision because they are easy. You don't make decision because they are cheap. You don't make decisions because they are popular. You make decisions because they are right.</p>
-
-</div>
-
View
18 app/views/home/index.html.haml
@@ -1,15 +1,17 @@
-%div.container
- %= link_to "Home", "#" :class => "brand"
+.container
+ %a.brand{:href => "#"} Project name
%ul.nav
- %li.active
- %= link_to "/index" Home
- %li link_to "About", "#about"
- %li link_to "Contact", "#contact"
+ %li.active
+ %a{:href => "home#index"} Home
+ %li
+ %a{:href => "home#about"} About
+ %li
+ %a{:href => "home#contact"} Contact
-%div :style=> "margin: 0 auto; text-align:left;"
+%div{:style => "margin: 0 auto; text-align:left;"}
%h1 Welcome to Maharjans - Quotes
- %p If you rise above the pettiness of people and small annoyances……you will be able to give your energy to the important things.
+ %p If you rise above the pettiness of people and small annoyances, you will be able to give your energy to the important things.
%p You don't make decision because they are easy. You don't make decision because they are cheap. You don't make decisions because they are popular. You make decisions because they are right.
View
14 app/views/layouts/application.html.erb
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Maharjan</title>
- <%= stylesheet_link_tag :all %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>

0 comments on commit f9dd2c4

Please sign in to comment.