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

make a whole container

bsatarnejade1a11a48393c
diff --git a/app/assets/stylesheets/content/_user.sass b/app/assets/stylesheets/content/_user.sass
index 805753f5523..bac57368ea2 100644
--- a/app/assets/stylesheets/content/_user.sass
+++ b/app/assets/stylesheets/content/_user.sass
@@ -78,5 +78,5 @@ tr user-avatar
&.avatar-medium, &.avatar-mini
margin-right: 5px
-.user-history-rates-no-result
+.user-rate-history-list
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 0ff635f9153..d4f0ff293e0 100644
--- a/modules/costs/app/views/hourly_rates/_list_default.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_default.html.erb
@@ -26,15 +26,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See docs/COPYRIGHT.rdoc for more details.
++#%>
-
+<div class="user-rate-history-list">
<div class="contextual">
<%= link_to t(:button_update), edit_hourly_rate_path(@user), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
</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">
@@ -90,3 +88,4 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
</div>
<% end %>
+</div>
\ No newline at end of file
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 0034c308aae..a5dfa9da320 100644
--- a/modules/costs/app/views/hourly_rates/_list_project.html.erb
+++ b/modules/costs/app/views/hourly_rates/_list_project.html.erb
@@ -37,7 +37,7 @@ See docs/COPYRIGHT.rdoc for more details.
current_rate = @user.current_rate(project)
end
%>
-
+<div class="user-rate-history-list">
<div class="contextual">
<% if project && User.current.allowed_to?({:controller => '/hourly_rates', :action => 'edit'}, project) %>
<%= link_to t(:button_update), {:controller => '/hourly_rates', :action => 'edit', :project_id => project, :id => @user}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
@@ -45,9 +45,7 @@ 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">
@@ -102,3 +100,4 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
</div>
<% end %>
+</div>
\ No newline at end of file