started cleaning UI

This commit is contained in:
Dmitriy Zaporozhets 2012-01-14 23:46:06 +02:00
parent 1ee69714df
commit d95cfc6144
10 changed files with 38 additions and 29 deletions

View file

@ -69,7 +69,7 @@ class ProjectsController < ApplicationController
def show
return render "projects/empty" unless @project.repo_exists? && @project.has_commits?
limit = (params[:limit] || 20).to_i
@activities = @project.updates_wo_repo(limit)
@activities = @project.activities(limit)#updates_wo_repo(limit)
end
def files

View file

@ -18,7 +18,11 @@ class TeamMembersController < ApplicationController
def create
@team_member = UsersProject.new(params[:team_member])
@team_member.project = project
@team_member.save
if @team_member.save
redirect_to team_project_path(@project)
else
render "new"
end
end
def update