Commit 13074699 by Đường Sỹ Hoàng

Fixed indentation & header

parent a18a5d62
...@@ -48,6 +48,7 @@ h1, h2, h3, h4, h5, h6 { ...@@ -48,6 +48,7 @@ h1, h2, h3, h4, h5, h6 {
.count-total { .count-total {
margin-right: 500px; margin-right: 500px;
margin-left: 500px;
} }
.col { .col {
......
...@@ -3,6 +3,6 @@ class Job < ApplicationRecord ...@@ -3,6 +3,6 @@ class Job < ApplicationRecord
has_many :city_jobs has_many :city_jobs
def self.latest_jobs def self.latest_jobs
@latest = Job.order(created_at: :desc) @latest ||= Job.order(created_at: :desc)
end end
end end
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
<head> <head>
<title><%= yield(:title) %> Venjob</title> <title><%= yield(:title) %> Venjob</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<div class="count-total">
<h4>Total Jobs:<%= Job.count %></h4>
</div>
</head> </head>
</div> </div>
<h4 class="count-total">Total Jobs:<%= Job.count %></h4>
<!-- List of latest jobs--> <!-- List of latest jobs-->
<div class="Job list"> <div class="Job list">
<div class="Job-title-wrapper"> <div class="Job-title-wrapper">
......
...@@ -11,7 +11,4 @@ ...@@ -11,7 +11,4 @@
</nav> </nav>
<%= link_to image_tag("banner.jpg", id: "banner", alt: "Venjob banner") %> <%= link_to image_tag("banner.jpg", id: "banner", alt: "Venjob banner") %>
</div> </div>
<div class="container">
<%= yield %>
</div>
</header> </header>
...@@ -9,10 +9,13 @@ ...@@ -9,10 +9,13 @@
</head> </head>
<body> <body>
<header> <header>
<%= render partial: "layouts/header" %> <%= render "layouts/header" %>
</header> </header>
<div class="container">
<%= yield %>
</div>
<footer> <footer>
<%= render partial: "layouts/footer" %> <%= render "layouts/footer" %>
</footer> </footer>
</body> </body>
</html> </html>
...@@ -3,8 +3,3 @@ require_relative "application" ...@@ -3,8 +3,3 @@ require_relative "application"
# Initialize the Rails application. # Initialize the Rails application.
Rails.application.initialize! Rails.application.initialize!
# Rails.logger = Logger.new(STDOUT)
# config.logger = ActiveSupport::Logger.new("log/#{Rails.env}.log")
# Rails.logger = Logger.new(STDOUT)
# Rails.logger.level = Logger::DEBUG
# Rails.logger.datetime_format = "%Y-%m-%d %H:%M:%S"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment