diff options
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 0d885621b6c..d053aeb7bfe 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -31,6 +31,9 @@ module TodosHelper s_("Todos|has requested access to %{what} %{which}"), what: _(todo.member_access_type), which: _(todo.target.name) ) when Todo::REVIEW_SUBMITTED then s_('Todos|reviewed your merge request') + when Todo::OKR_CHECKIN_REQUESTED then format( + s_("Todos|requested an OKR update for %{what}"), what: todo.target.title + ) end end @@ -163,6 +166,10 @@ module TodosHelper todos_filter_params.values.none? end + def todos_has_filtered_results? + params[:group_id] || params[:project_id] || params[:author_id] || params[:type] || params[:action_id] + end + def no_todos_messages [ s_('Todos|Good job! Looks like you don\'t have anything left on your To-Do List'), |