From 38737079b6c1096c2517e249198b8bc0bedf4156 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 9 Feb 2013 15:26:47 +0200 Subject: ignore docs by git --- doc/code/classes/DashboardHelper.html | 195 ---------------------------------- 1 file changed, 195 deletions(-) delete mode 100644 doc/code/classes/DashboardHelper.html (limited to 'doc/code/classes/DashboardHelper.html') diff --git a/doc/code/classes/DashboardHelper.html b/doc/code/classes/DashboardHelper.html deleted file mode 100644 index 6fcb426cf13..00000000000 --- a/doc/code/classes/DashboardHelper.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - DashboardHelper - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - -
Methods
-
- -
D
-
- -
- -
E
-
- -
- -
- - - - - - - - - - - - - - - - - - - - -
Instance Public methods
- -
-
- - dashboard_filter_path(entity, options={}) - - -
- - -
- -
- - - - - - -
- - -
-
# File app/helpers/dashboard_helper.rb, line 2
-def dashboard_filter_path(entity, options={})
-  exist_opts = {
-    status: params[:status],
-    project_id: params[:project_id],
-  }
-
-  options = exist_opts.merge(options)
-
-  case entity
-  when 'issue' then
-    dashboard_issues_path(options)
-  when 'merge_request'
-    dashboard_merge_requests_path(options)
-  end
-end
-
-
- -
- -
-
- - entities_per_project(project, entity) - - -
- - -
- -
- - - - - - -
- - -
-
# File app/helpers/dashboard_helper.rb, line 18
-def entities_per_project project, entity
-  items = project.items_for(entity)
-
-  items = case params[:status]
-          when 'closed'
-            items.closed
-          when 'all'
-            items
-          else
-            items.opened
-          end
-
-  items.where(assignee_id: current_user.id).count
-end
-
-
- -
-
- -
- - \ No newline at end of file -- cgit v1.2.1