Bootstrap: Issues, Merge Requests, SSH Key completed

This commit is contained in:
Dmitriy Zaporozhets 2012-01-29 23:59:12 +02:00
parent 20721eff1c
commit fca1ffb888
32 changed files with 213 additions and 1010 deletions

View file

@ -52,6 +52,12 @@ class Admin::ProjectsController < ApplicationController
def update
@admin_project = Project.find_by_code(params[:id])
owner_id = params[:project][:owner_id]
if owner_id
@admin_project.owner = User.find(owner_id)
end
if @admin_project.update_attributes(params[:project])
redirect_to [:admin, @admin_project], notice: 'Project was successfully updated.'
else

View file

@ -1,6 +1,6 @@
class KeysController < ApplicationController
layout "profile"
respond_to :js
respond_to :js, :html
def index
@keys = current_user.keys.all