Skip to content

Commit

Permalink
adding updated header to job search page
Browse files Browse the repository at this point in the history
  • Loading branch information
BranHill21 committed Dec 2, 2024
1 parent 1af82f1 commit 0ce7095
Showing 1 changed file with 1 addition and 83 deletions.
84 changes: 1 addition & 83 deletions app/views/job_search/jobshow.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,89 +26,7 @@
</head>
<body>
<!-- THE HEADER -->
<header>

<div class="container-fluid custom-container">
<div class="row no_row row-header">
<div class="brand-be">
<a href="/">
<img class="logo-c active be_logo" src="<%= asset_path "new_logo.png"%>" alt="logo">
<img class="logo-c be_logo" src="<%= asset_path "logo.png"%>" alt="logo2">
<img class="logo-c be_logo" src="<%= asset_path "logo.png"%>" alt="logo3">
<img class="logo-c be_logo" src="<%= asset_path "logo.png"%>" alt="logo4">
</a>
</div>
``
<div class="header-menu-block">
<button class="cmn-toggle-switch cmn-toggle-switch__htx"><span></span></button>
<ul class="header-menu" id="one">
<% if session[:current_user_key] %>
<li><a href="/job_info">Manage Job</a></li>
<li><a href="/job_info/new_job">Post Job</a></li>
<li><a href="/show_profile">My Profile</a></li>
<% end %>
</ul>
</div>

<!--Logout Button Begin -->
<div class="login-header-block">
<div class="login_block">
<div class="login_block_rightup">
<% if session[:current_user_key] %>
<div class="dropdown">
<%if GeneralInfo.find_by(userKey: session[:current_user_key]).notification %>
<button onclick="dropdown()" class="dropbtn" id='notif'><i class="fa-regular fa-bell fa-xl fa-fw" style="color:#147efb"></i></button>
<div id="myDropdown" class="dropdown-content">
<% @notifications_from = GeneralInfo.find_by(userKey: session[:current_user_key]).notification_from %>
<% @notifications_from.each do |notification|%>
<a href="/dm/<%= notification %>"> <b> <%= GeneralInfo.find_by(id: notification).first_name %> <%= GeneralInfo.find_by(id: notification).last_name %> sent you a message! </b> </a>
<% end %>
<% else %>
<button onclick="dropdown()" class="dropbtn" id='notif'><i class="fa-regular fa-bell fa-xl fa-fw" style="color:black"></i></button>
<div id="myDropdown" class="dropdown-content">
<i class="fa-regular fa-circle-check fa-5x" style="color:black;padding:30px"></i>
<div style="color: black; height: 20px; width 0px; overflow-wrap: break-word;"> <b> You're all caught up! </b> </div>
<div style="color: black; height: 20px; width 0px; overflow-wrap: break-word;"> <b> No new messages. </b> </div>
<% end %>
</div>
</div>
<a href="/dm" class="dropbtn" id="dm"><i class="fa-regular fa-message fa-xl fa-fw" style="color:black"></i></a>
<a class="btn color-1 size-2 hover-2" href="/show_profile"><%= @username %></a>
<%= link_to 'Log out', logout_path, method: :get, :class => "btn color-1 size-2 hover-2" %>
<% else %>
<a class="btn color-1 size-2 hover-2" href="/login" id="sign_in_up"><i class="fa fa-lock"></i>Sign In</a>
<% end %>


</div>
</div>
</div>
<!--Logout Button End-->


</div>
</div>
</div>

<% if flash[:success_post_job] %>
<div class="alert-container col-md-12">
<div class="alert style-3 alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<alertstrong1><%= flash[:success_post_job]%></alertstrong1>
</div>
</div>
<% elsif flash[:error_post_job] %>
<div class="alert-container col-md-12">
<div class="alert style-3 alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<alertstrong1><%= flash[:error_post_job]%></alertstrong1>
</div>
</div>
<% end %>



</header>
<%= render 'shared/header' %>



Expand Down

0 comments on commit 0ce7095

Please sign in to comment.