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

24 lines
2.1 KiB
Plaintext

<h3>
<%= t("recruitment.welcome") %> <strong><%= @profile.name %></strong>!
<div class="pull-right logout"><a href="/pseudo_users/logoutpseudouser">Logout</a></div>
</h3>
<ul class="nav nav-tabs">
<% if @profile.is_employer? %>
<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>
<% elsif @profile.is_employee? %>
<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>
<% end %>
</ul>
<% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %>
<div class="add-job pull-right">
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
<a href="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
</div>
<% end %>