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

22 lines
1.9 KiB
Plaintext
Raw Normal View History

<h3>
2018-01-07 18:22:57 +00:00
<%= t("recruitment.welcome") %> <strong><%= @profile.name %></strong>!
<div class="pull-right logout"><a href="/pseudo_users/logoutpseudouser">Logout</a></div>
</h3>
2017-12-21 19:41:50 +00:00
<ul class="nav nav-tabs">
2018-01-01 13:52:15 +00:00
<% if @profile.is_employer? %>
2018-01-07 18:22:57 +00:00
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.jobs") %></a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
2018-01-01 13:52:15 +00:00
<% elsif @profile.is_employee? %>
2018-01-07 18:22:57 +00:00
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.dashboard") %></a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_academics" ? "active" : "" %>"><a href="<%= employee_academics_path %>"><%= t("recruitment.academics") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_portfolio" ? "active" : "" %>"><a href="<%= employee_portfolio_path %>"><%= t("recruitment.portfolio") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_experience" ? "active" : "" %>"><a href="<%= employee_experience_path %>"><%= t("recruitment.experience") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_recommendation" ? "active" : "" %>"><a href="<%= employee_recommendation_path %>"><%= t("recruitment.recommendation") %></a></li>
2018-01-01 13:52:15 +00:00
<% 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">
2018-01-07 18:22:57 +00:00
<a href="<%= addjob_path %>" class="pull-right btn btn-primary"><%= t("recruitment.add_job") %></a>
2017-12-21 19:41:50 +00:00
</div>
<% end %>