summaryrefslogtreecommitdiff
path: root/app/helpers/dashboard_helper.rb
diff options
context:
space:
mode:
authorAndrey Vakarev <avakarev@gmail.com>2012-06-03 22:27:34 +0300
committerAndrey Vakarev <avakarev@gmail.com>2012-06-03 22:27:34 +0300
commit16b49124be59aa74a35f855fd4e0d75f100051de (patch)
treea6d35a8e6a2dce0f4dfaa9803db777f029a31e05 /app/helpers/dashboard_helper.rb
parenta35a12980eacd1d4b1724bbd981455991f29f93d (diff)
downloadgitlab-ce-16b49124be59aa74a35f855fd4e0d75f100051de.tar.gz
Remove unused methods
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r--app/helpers/dashboard_helper.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb
index 55ed901c210..a94ddfc2e33 100644
--- a/app/helpers/dashboard_helper.rb
+++ b/app/helpers/dashboard_helper.rb
@@ -1,36 +1,2 @@
module DashboardHelper
- def dashboard_feed_path(project, object)
- case object.class.name.to_s
- when "Issue" then project_issue_path(project, project.issues.find(object.id))
- when "Commit" then project_commit_path(project, project.repo.commits(object.id).first)
- when "MergeRequest" then project_merge_request_path(project, object.id)
- when "Note"
- then
- note = object
- case note.noteable_type
- when "Issue" then project_issue_path(project, note.noteable_id)
- when "Snippet" then project_snippet_path(project, note.noteable_id)
- when "Commit" then project_commit_path(project, :id => note.noteable_id)
- when "MergeRequest" then project_merge_request_path(project, note.noteable_id)
- else wall_project_path(project)
- end
- else wall_project_path(project)
- end
- rescue
- "#"
- end
-
- def dashboard_feed_title(object)
- klass = object.class.to_s.split("::").last
-
- title = case klass
- when "Note" then markdown(object.note)
- when "Issue" then object.title
- when "Commit" then object.safe_message
- when "MergeRequest" then object.title
- else return "Project Wall"
- end
-
- truncate(sanitize(title, :tags => []), :length => 60)
- end
end