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

26 lines
2.5 KiB
Plaintext
Raw Normal View History

<h3>
2018-01-07 18:22:57 +00:00
<%= t("recruitment.welcome") %> <strong><%= @profile.name %></strong>!
2018-01-19 13:31:41 +00:00
<div class="pull-right logout"><a href="/pseudo_users/logoutpseudouser"><%= t("recruitment.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-15 12:26:18 +00:00
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.dashboard") %></a></li>
2018-01-07 18:22:57 +00:00
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
2018-01-19 13:31:41 +00:00
<li role="presentation" class="<%= params[:action] == "account_settings" ? "active" : "" %>"><a href="<%= account_settings_path %>"><%= t("recruitment.account_settings") %></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-19 13:31:41 +00:00
<li role="presentation" class="<%= params[:action] == "account_settings" ? "active" : "" %>"><a href="<%= account_settings_path %>"><%= t("recruitment.account_settings") %></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? %>
2018-01-15 12:26:18 +00:00
<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>
2018-01-16 12:06:04 +00:00
<a href="<%= addexchange_path %>" class="btn btn-warning"><%= t("recruitment.add_exchange") %></a>
2017-12-21 19:41:50 +00:00
</div>
<% end %>