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

show time entries in the index

Klaus Zanders2040a804279a
diff --git a/modules/costs/app/controllers/admin/time_entry_activities_controller.rb b/modules/costs/app/controllers/admin/time_entry_activities_controller.rb
index 2f2bd265594..080a39e95cd 100644
--- a/modules/costs/app/controllers/admin/time_entry_activities_controller.rb
+++ b/modules/costs/app/controllers/admin/time_entry_activities_controller.rb
@@ -36,7 +36,9 @@ module Admin
menu_item :time_entry_activities
- def index; end
+ def index
+ @time_entry_activities = TimeEntryActivity.all
+ end
def new; end
diff --git a/modules/costs/app/views/admin/time_entry_activities/index.html.erb b/modules/costs/app/views/admin/time_entry_activities/index.html.erb
index a1225ab52c3..8e3934f4197 100644
--- a/modules/costs/app/views/admin/time_entry_activities/index.html.erb
+++ b/modules/costs/app/views/admin/time_entry_activities/index.html.erb
@@ -39,3 +39,9 @@ See COPYRIGHT and LICENSE files for more details.
])
end
%>
+
+<ul>
+<%- @time_entry_activities.each do |activity| %>
+ <li><%= activity.name %>
+<%- end %>
+</ul>