recruiter 1.1.14 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f723a9409d2d83de14c6099d6c42c74df76ec50
4
- data.tar.gz: f9552b7b4a7e139cb7f9e053ef5dd7de2d954433
3
+ metadata.gz: f2a92c3533b4ca17a4aec0d7cfb3e6748a6468bb
4
+ data.tar.gz: 3d91a8e962dfbbf77078700567adb4a728761c01
5
5
  SHA512:
6
- metadata.gz: 75b0a05c1cf14618e2931bbf216f737ca191ed04804c69450b386a98436540c751694588b893d4bd9b2c5f5d49b97cc9b5aebde69b33eee338d26b777450fc41
7
- data.tar.gz: 9564bb9810255d27e4fe4348fb9aa643370cfa131b88d81e80fc6228a76ae46b380b00820a72585a360641a14f9db3f6fff7cb8ba4518f5b65f18db793da5150
6
+ metadata.gz: 72ffbde67cf36c86b5c202d38e2df06b7ff67a09a4fa8886218b2dc5669945a0e78f973118614e2a5f08edc6900b1ddc5e72d1be8fa541a14d761246da664add
7
+ data.tar.gz: 090962dde270d4dec27ee6c99a9d36347074bbc27d7e3a6ba8897346f2c221045b9a35b514a19491efeaa893e2813f2392d0acd2b9a8b80551d57e179b42f5ad
@@ -47,7 +47,7 @@ table.wide
47
47
 
48
48
  footer
49
49
  background: $soft-gray
50
- #jobs
50
+ #articles, #jobs
51
51
  article
52
52
  background: $soft-blue
53
53
  .job
@@ -0,0 +1,8 @@
1
+ module Recruiter
2
+ class HomeController < ::RecruiterController
3
+ def index
4
+ @jobs = Job.open.limit(5)
5
+ @articles = Article.published.limit(5)
6
+ end
7
+ end
8
+ end
@@ -1,6 +1,6 @@
1
1
  module Recruiter
2
2
  module LinksHelper
3
- def button_link(url, classes = nil, options = {}, &block)
3
+ def button_link(url, classes = nil, options = {}, &block)
4
4
  classes = [options[:class], 'button', classes].compact
5
5
  options.merge! class: classes
6
6
  link_to url, options, &block
@@ -0,0 +1,21 @@
1
+ <div class="row">
2
+ <div id="jobs" class="small-12 medium-12 large-12 columns">
3
+ <h2><%= t('.title_jobs') %></h2>
4
+ <%= render @jobs %>
5
+ </div>
6
+
7
+ <%= button_link [:jobs], 'secondary expand' do %>
8
+ <%= t('.see_all_jobs') %>
9
+ <% end %>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div id="articles" class="small-12 medium-12 large-12 columns">
14
+ <h2><%= t('.title_articles') %></h2>
15
+ <%= render @articles %>
16
+ </div>
17
+
18
+ <%= button_link [:articles], 'secondary expand' do %>
19
+ <%= t('.see_all_articles') %>
20
+ <% end %>
21
+ </div>
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  Recruiter::Engine.routes.draw do
2
- root to: 'jobs#index'
2
+ root to: 'home#index'
3
3
 
4
4
  resources :jobs, only: [:index, :show]
5
5
  resources :articles, only: [:index, :show]
@@ -17,6 +17,12 @@
17
17
  title: Vagas em aberto
18
18
  job:
19
19
  view: Visualizar
20
+ home:
21
+ index:
22
+ title_articles: Últimos artigos publicados
23
+ title_jobs: Últimas vagas publicadas
24
+ see_all_jobs: Ver todas
25
+ see_all_articles: Ver todos
20
26
  filters:
21
27
  title: Filtros
22
28
  state: Estado
@@ -1,3 +1,3 @@
1
1
  module Recruiter
2
- VERSION = "1.1.14"
2
+ VERSION = "1.1.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recruiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
@@ -359,6 +359,7 @@ files:
359
359
  - app/assets/stylesheets/recruiter/variables.css.sass
360
360
  - app/controllers/recruiter/articles_controller.rb
361
361
  - app/controllers/recruiter/filters_controller.rb
362
+ - app/controllers/recruiter/home_controller.rb
362
363
  - app/controllers/recruiter/jobs_controller.rb
363
364
  - app/controllers/recruiter/omniauth_callbacks_controller.rb
364
365
  - app/controllers/recruiter/users/articles_controller.rb
@@ -422,6 +423,7 @@ files:
422
423
  - app/views/recruiter/articles/_article.html.erb
423
424
  - app/views/recruiter/articles/index.html.erb
424
425
  - app/views/recruiter/articles/show.html.erb
426
+ - app/views/recruiter/home/index.html.erb
425
427
  - app/views/recruiter/jobs/_job.html.erb
426
428
  - app/views/recruiter/jobs/index.html.erb
427
429
  - app/views/recruiter/jobs/show.html.erb