Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add space below each user history rate box

bsatarnejadc4c2b6a2f94c
diff --git a/app/assets/stylesheets/content/_user.sass b/app/assets/stylesheets/content/_user.sass
index c48bcaab17a..805753f5523 100644
--- a/app/assets/stylesheets/content/_user.sass
+++ b/app/assets/stylesheets/content/_user.sass
@@ -77,3 +77,6 @@ tr user-avatar
.-spaced
&.avatar-medium, &.avatar-mini
margin-right: 5px
+
+.user-history-rates-no-result
+ margin-bottom: 25px
\ No newline at end of file
diff --git a/modules/costs/app/views/hourly_rates/_list_default.html.erb b/modules/costs/app/views/hourly_rates/_list_default.html.erb
index d6b1cfe2f49..0ff635f9153 100644
--- a/modules/costs/app/views/hourly_rates/_list_default.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_default.html.erb
@@ -32,7 +32,9 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
<h3><%= User.human_attribute_name(:default_rates) %></h3>
<% if @rates_default.blank? %>
+<div class="user-history-rates-no-result">
<%= no_results_box %>
+</div>
<% else %>
<div class="generic-table--container">
<div class="generic-table--results-container">
diff --git a/modules/costs/app/views/hourly_rates/_list_project.html.erb b/modules/costs/app/views/hourly_rates/_list_project.html.erb
index 9fb2d059474..0034c308aae 100644
--- a/modules/costs/app/views/hourly_rates/_list_project.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_project.html.erb
@@ -45,7 +45,9 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
<h3><%=h project.name %><%= (" - " + number_to_currency(current_rate.rate)) if current_rate %></h3>
<% if rates.empty? %>
+<div class="user-history-rates-no-result">
<%= no_results_box %>
+</div>
<% else %>
<div class="generic-table--container">
<div class="generic-table--results-container">