ruling_timer/app/views/admin/ruling_timers/index.html.erb

16 lines
573 B
Plaintext

<h3>
<% if @user_name %>
<%=t("ruling_timer.user_work_history",{:user=>@user_name})%>
<% else %>
<%=t("ruling_timer.my_work_history")%>
<% end %>
</h3>
<div class="pull-right">
<a href="?type=" class="btn <%= 'active' if params[:type] != 'statistic' %>"><%=t("ruling_timer.list")%></a>
<a href="?type=statistic" class="btn <%= 'active' if params[:type] == 'statistic' %>"><%=t("ruling_timer.statistic")%></a>
</div>
<% if params[:type] != "statistic" %>
<%= render :partial => "index_table" %>
<% else %>
<%= render :partial => "index_statistic" %>
<% end %>