Commit 9f03ade7 by Đường Sỹ Hoàng

Removed files

parent 22462b9f
...@@ -34,7 +34,6 @@ gem "rubysl-open-uri" ...@@ -34,7 +34,6 @@ gem "rubysl-open-uri"
gem "whenever", require: false gem "whenever", require: false
gem "activerecord-import" gem "activerecord-import"
gem "config" gem "config"
gem 'counter_culture', '~> 0.1.33'
group :development, :test do group :development, :test do
# Call "byebug" anywhere in the code to stop execution and get a debugger console # Call "byebug" anywhere in the code to stop execution and get a debugger console
......
...@@ -60,9 +60,6 @@ GEM ...@@ -60,9 +60,6 @@ GEM
zeitwerk (~> 2.2) zeitwerk (~> 2.2)
addressable (2.7.0) addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 5.0)
after_commit_action (1.0.1)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
bcrypt (3.1.13) bcrypt (3.1.13)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.4.5) bootsnap (1.4.5)
...@@ -86,10 +83,6 @@ GEM ...@@ -86,10 +83,6 @@ GEM
deep_merge (~> 1.2, >= 1.2.1) deep_merge (~> 1.2, >= 1.2.1)
dry-schema (~> 1.0) dry-schema (~> 1.0)
connection_pool (2.2.2) connection_pool (2.2.2)
counter_culture (0.1.34)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
after_commit_action (~> 1.0.0)
crass (1.0.5) crass (1.0.5)
deep_merge (1.2.1) deep_merge (1.2.1)
devise (4.7.1) devise (4.7.1)
...@@ -295,7 +288,6 @@ DEPENDENCIES ...@@ -295,7 +288,6 @@ DEPENDENCIES
byebug byebug
capybara (>= 2.15) capybara (>= 2.15)
config config
counter_culture (~> 0.1.33)
devise devise
jbuilder (~> 2.7) jbuilder (~> 2.7)
listen (>= 3.0.5, < 3.2) listen (>= 3.0.5, < 3.2)
......
...@@ -71,50 +71,3 @@ h1, h2, h3, h4, h5, h6 { ...@@ -71,50 +71,3 @@ h1, h2, h3, h4, h5, h6 {
.form-inline-industry { .form-inline-industry {
padding: 5px; padding: 5px;
} }
.container{
height: 100%;
align-content: center;
}
.card-body{
background-color: rgba(211, 211, 223, 0.829);
}
.card-footer {
background-color: rgba(211, 211, 223, 0.829);
}
.card-header h3{
color: gainsboro;
text-align: center;
}
.card-header {
background-color: rgb(18, 121, 255);
}
.card-footer {
border: none;
margin: 20px;
}
.input-group-prepend span{
width: 70px;
background-color: rgb(54, 134, 240);
color: black;
}
.login_btn{
color: gainsboro;
background-color: rgb(54, 134, 240);
width: 100px;
}
.login_btn:hover{
color: black;
background-color: aqua;
}
.d-flex {
height: 10px;
}
class LoginController < ApplicationController
end
...@@ -3,7 +3,7 @@ class City < ApplicationRecord ...@@ -3,7 +3,7 @@ class City < ApplicationRecord
has_many :jobs, through: :city_jobs has_many :jobs, through: :city_jobs
def self.sort_top_cities def self.sort_top_cities
@cities ||= includes(city_jobs: :job).all.sort_by(&:jobs_count).reject{ |city| city.jobs_count.zero? }.reverse.take(Settings.top.city.limit) @cities ||= all.sort_by(&:jobs_count).reject{ |city| city.jobs_count.zero? }.reverse.take(Settings.top.city.limit)
end end
def self.sort_top_vn_cities def self.sort_top_vn_cities
......
<div class="container"> <div class="container">
<div class="row justify-content-md-center"> <div class="row justify-content-md-center">
<div class="col-sm"> <div class="col-sm text-center">
<div class="text-center">
<%= industries_list.name %> <%= industries_list.name %>
(<%= industries_list.jobs_count %> jobs) (<%= industries_list.jobs_count %> jobs)
</div> </div>
</div> </div>
</div>
</div> </div>
<div class="container"> <div class="container">
<div class="row justify-content-md-center"> <div class="row justify-content-md-center">
<div class="col"> <div class="col text-center">
<div class="text-center">
<%= industry.name %> <%= industry.name %>
(<%= industry.jobs_count %> jobs) (<%= industry.jobs_count %> jobs)
</div> </div>
</div> </div>
</div>
</div> </div>
<div class="center jumbotron">
<head>
<title><%= yield(:title) %> Venjob</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
</div>
</br>
<div class="container">
<div class="d-flex justify-content-center h-100">
<div class="card">
<div class="card-header">
<h3>Login</h3>
</div>
<div class="card-body">
<form>
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<input type="text" class="form-control" placeholder="email">
</div>
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" class="form-control" placeholder="password">
</div>
<div class="card-footer">
<div class="d-flex justify-content-center">
<a href="#">Forgot your password?</a>
</div>
</div>
<div class="form-group">
<input type="submit" value="Login" class="btn float-left login_btn">
<input type="submit" value="Register" class="btn float-right login_btn">
</div>
</form>
</div>
</div>
</div>
</div>
</br>
</br>
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