Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions app/controllers/start_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@ class StartController < ApplicationController
before_filter :require_login, :except => [:index, :auto_complete_for_project_name ]
include ProjectsHelper

def index
@news = News.latest User.current, 2

@random_users = User.where("type='User'").limit(10).order("RAND()")

#@projects = Project.list User.current
#projects = Project.find :all,
# :conditions => Project.visible_by(User.current),
#:include => :parent
#@projects = projects
#@project_tree = projects.group_by {|p| p.parent || p}
#@project_tree.each_key {|p| @project_tree[p] -= [p]}
end

def auto_complete_for_project_name
query = '%' + params[:term].downcase + '%'
@items = Project.where([ "( identifier LIKE ? OR LOWER(name) LIKE ? ) AND "+Project.visible_condition(User.current), query, query ]).
Expand All @@ -29,13 +15,4 @@ def auto_complete_for_project_name
render :partial => 'project_autocompleter'
end

def custom_system(command)
# RAILS_DEFAULT_LOGGER.info("OWN SYSTEM "+command)
system(command)
end

def projectSuccessfullyCreated
@project = Project.find("packages")
end

end