recruitment/app/views/recruitments/_dashboard_header.html.erb

18 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-12-21 19:41:50 +00:00
<h3>Welcome <strong><%= @profile.name %></strong>!</h3>
<ul class="nav nav-tabs">
2018-01-01 13:52:15 +00:00
<% if @profile.is_employer? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>">Jobs</a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>">Profile</a></li>
<% elsif @profile.is_employee? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>">Dashboard</a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>">Profile</a></li>
<li role="presentation" class="<%= params[:action] == "employee_academics" ? "active" : "" %>"><a href="<%= employee_academics_path %>">Academics</a></li>
<li role="presentation" class="<%= params[:action] == "employee_portfolio" ? "active" : "" %>"><a href="<%= employee_portfolio_path %>">Portfolio</a></li>
<li role="presentation" class="<%= params[:action] == "employee_experience" ? "active" : "" %>"><a href="<%= employee_experience_path %>">Experience</a></li>
<% end %>
2017-12-21 19:41:50 +00:00
</ul>
2018-01-01 13:52:15 +00:00
<% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %>
2017-12-21 19:41:50 +00:00
<div class="add-job">
<a href="<%= addjob_path %>" class="pull-right btn btn-primary">Add Job</a>
</div>
<% end %>