<%= image_tag 'person-working', width: '28rem', class: 'mb-2 mx-1' %>
<%= t('content.section_title') %>
diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb
index 1a67e8d..891b345 100644
--- a/app/views/profiles/show.html.erb
+++ b/app/views/profiles/show.html.erb
@@ -3,7 +3,9 @@
<% if @profile.active? %>
<% if @posts.pinned.any? %>
-
<%= t('.highlight') %>
+
+
<%= t('.highlight') %>
+
<%= render partial: 'posts/listing', locals: { posts: @posts.pinned } %>
@@ -15,7 +17,7 @@
<% published_posts = @profile.user.posts.published %>
- <% if published_posts.count - @profile.user.posts.pinned.count < 1 %>
+ <% if published_posts.count - @profile.user.posts.published.pinned.count < 1 %>
<%= t('.nothing_here') %>
<%= t('.new_posts') %> :)
<% end %>
diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb
index 3249900..9029c30 100644
--- a/app/views/shared/_navbar.html.erb
+++ b/app/views/shared/_navbar.html.erb
@@ -1,9 +1,11 @@
diff --git a/spec/system/connections/user_views_followers_spec.rb b/spec/system/connections/user_views_followers_spec.rb
index 223e4fd..14e5290 100644
--- a/spec/system/connections/user_views_followers_spec.rb
+++ b/spec/system/connections/user_views_followers_spec.rb
@@ -32,13 +32,10 @@
expect(page).not_to have_link first_followed.full_name
expect(page).to have_link second_followed.full_name, href: profile_path(second_followed.profile)
- expect(page).to have_content 'Disponível Para Trabalho'
expect(page).to have_link third_followed.full_name, href: profile_path(third_followed.profile)
- expect(page).to have_content 'Indisponível Para Trabalho'
expect(page).to have_link fourth_followed.full_name, href: profile_path(fourth_followed.profile)
- expect(page).to have_content 'Dev Senior | Rebase'
end
it 'e deve estar logado' do
diff --git a/spec/system/connections/user_views_following_users_spec.rb b/spec/system/connections/user_views_following_users_spec.rb
index d21543f..ca3dc57 100644
--- a/spec/system/connections/user_views_following_users_spec.rb
+++ b/spec/system/connections/user_views_following_users_spec.rb
@@ -32,13 +32,10 @@
expect(page).not_to have_link first_follower.full_name
expect(page).to have_link second_follower.full_name, href: profile_path(second_follower.profile)
- expect(page).to have_content 'Disponível Para Trabalho'
expect(page).to have_link third_follower.full_name, href: profile_path(third_follower.profile)
- expect(page).to have_content 'Indisponível Para Trabalho'
expect(page).to have_link fourth_follower.full_name, href: profile_path(fourth_follower.profile)
- expect(page).to have_content 'Dev Senior | Rebase'
end
it 'e deve estar logado' do