Commit 8dd26b5f authored by patrick.hodapp's avatar patrick.hodapp
Browse files

Merge branch '17-make-filters-colored' into 'init19'

Resolve "Make filters colored"

Closes #17

See merge request !10
parents b9cc2629 077ba05b
......@@ -21,18 +21,18 @@
Status
<%if operator? && ((current_page?('/samples, /index') || current_page?('/')) || params[:is_admin] === "true" ) %>
<%= link_to '<i class="fa fa-hourglass-half" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == 'in preparation' ? "all" : "in preparation"}", is_admin: true),
{:style=>'color:#000;', class: "#{params[:status] == 'in preparation' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#f9e5ef;', class: "#{params[:status] == 'in preparation' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%= link_to '<i class="fa fa-line-chart" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == 'submitted' ? "all" : "submitted"}", is_admin: true),
{:style=>'color:#000;', class: "#{params[:status] == 'submitted' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#feffea;', class: "#{params[:status] == 'submitted' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%= link_to '<i class="fa fa-check-square-o" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == "measured" ? "all" : "measured"}", is_admin: true),
{:style=>'color:#000;', class: "#{params[:status] == 'measured' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#e2f7e7;', class: "#{params[:status] == 'measured' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%else%>
<%= link_to '<i class="fa fa-hourglass-half" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == 'in preparation' ? "all" : "in preparation"}"),
{:style=>'color:#000;', class: "#{params[:status] == 'in preparation' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#f9e5ef;', class: "#{params[:status] == 'in preparation' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%= link_to '<i class="fa fa-line-chart" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == 'submitted' ? "all" : "submitted"}"),
{:style=>'color:#000;', class: "#{params[:status] == 'submitted' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#feffea;', class: "#{params[:status] == 'submitted' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%= link_to '<i class="fa fa-check-square-o" aria-hidden="true"></i>'.html_safe,samples_path(status: "#{params[:status] == "measured" ? "all" : "measured"}"),
{:style=>'color:#000;', class: "#{params[:status] == 'measured' ? 'btn btn-warning' : 'btn btn-default'}" }%>
{:style=>'color:#e2f7e7;', class: "#{params[:status] == 'measured' ? 'btn btn-warning' : 'btn btn-default'}" }%>
<%end%>
</th>
<%if operator?%>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment