Merge pull request #219 from HDinger/feature/21850-update-plugin-styles-for–nothing-to-display

[21850] Update Plugin styles for 'Nothing to display' (Cost)
pull/6827/head
ulferts 9 years ago
commit 97a0f7d1c7
  1. 2
      app/views/cost_objects/index.html.erb
  2. 12
      app/views/cost_types/_list.html.erb
  3. 12
      app/views/cost_types/_list_deleted.html.erb
  4. 12
      app/views/hourly_rates/_list_default.html.erb
  5. 12
      app/views/hourly_rates/_list_project.html.erb

@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<% end %> <% end %>
<% if @cost_objects.empty? %> <% if @cost_objects.empty? %>
<p class="nodata"><%= t(:label_no_data) %></p> <%= no_results_box %>
<% else %> <% else %>
<%= render :partial => 'list', :locals => {:cost_objects => @cost_objects} %> <%= render :partial => 'list', :locals => {:cost_objects => @cost_objects} %>
<%= pagination_links_full @cost_objects %> <%= pagination_links_full @cost_objects %>

@ -21,17 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<% cost_types = @cost_types.reject(&:deleted_at) -%> <% cost_types = @cost_types.reject(&:deleted_at) -%>
<% if cost_types.empty? %> <% if cost_types.empty? %>
<div class="generic-table--container"> <%= no_results_box %>
<div class="generic-table--no-results-container">
<h2 class="generic-table--no-results-title">
<i class="icon-info1"></i>
<%= t(:label_nothing_display) %>
</h2>
<div class="generic-table--no-results-description">
<p class="nodata"><%= t(:label_no_data) %></p>
</div>
</div>
</div>
<% else %> <% else %>
<div class="generic-table--container"> <div class="generic-table--container">
<div class="generic-table--results-container"> <div class="generic-table--results-container">

@ -21,17 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<% cost_types = @cost_types.select(&:deleted_at) -%> <% cost_types = @cost_types.select(&:deleted_at) -%>
<% if cost_types.empty? %> <% if cost_types.empty? %>
<div class="generic-table--container"> <%= no_results_box %>
<div class="generic-table--no-results-container">
<h2 class="generic-table--no-results-title">
<i class="icon-info1"></i>
<%= t(:label_nothing_display) %>
</h2>
<div class="generic-table--no-results-description">
<p class="nodata"><%= t(:label_no_data) %></p>
</div>
</div>
</div>
<% else %> <% else %>
<div class="generic-table--container"> <div class="generic-table--container">
<div class="generic-table--results-container"> <div class="generic-table--results-container">

@ -23,17 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</div> </div>
<h3><%= User.human_attribute_name(:default_rates) %></h3> <h3><%= User.human_attribute_name(:default_rates) %></h3>
<% if @rates_default.blank? %> <% if @rates_default.blank? %>
<div class="generic-table--container"> <%= no_results_box %>
<div class="generic-table--no-results-container">
<h2 class="generic-table--no-results-title">
<i class="icon-info1"></i>
<%= t(:label_nothing_display) %>
</h2>
<div class="generic-table--no-results-description">
<p class="nodata"><%= t(:label_no_data) %></p>
</div>
</div>
</div>
<% else %> <% else %>
<div class="generic-table--container"> <div class="generic-table--container">
<div class="generic-table--results-container"> <div class="generic-table--results-container">

@ -36,17 +36,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</div> </div>
<h3><%=h project.name %><%= (" - " + number_to_currency(current_rate.rate)) if current_rate %></h3> <h3><%=h project.name %><%= (" - " + number_to_currency(current_rate.rate)) if current_rate %></h3>
<% if rates.empty? %> <% if rates.empty? %>
<div class="generic-table--container"> <%= no_results_box %>
<div class="generic-table--no-results-container">
<h2 class="generic-table--no-results-title">
<i class="icon-info1"></i>
<%= t(:label_nothing_display) %>
</h2>
<div class="generic-table--no-results-description">
<p class="nodata"><%= t(:label_no_data) %></p>
</div>
</div>
</div>
<% else %> <% else %>
<div class="generic-table--container"> <div class="generic-table--container">
<div class="generic-table--results-container"> <div class="generic-table--results-container">

Loading…
Cancel
Save