/** * Show the form for editing the specified resource. * * @param string $owner_path * @param string $project_path * * @return \Illuminate\Http\Response */ public function editAction($owner_path, $project_path) { $project = Project::findByPath($owner_path, $project_path); return View::make('projects.edit')->withPageTitle(trans('dashboard.projects.edit.title') . ' - ' . trans('dashboard.dashboard'))->withProject($project)->withGroupId('')->withActiveItem('project_edit')->withGroups(Group::all()); }
/** * Shows the project group view. * * @return \Illuminate\View\View */ public function indexAction() { $this->subMenu['yours']['active'] = true; return View::make('dashboard.groups.index')->withPageTitle(trans_choice('gitamin.groups.groups', 2) . ' - ' . trans('dashboard.dashboard'))->withGroups(Group::all())->withSubMenu($this->subMenu); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($namespace, $project_path) { $project = Project::leftJoin('namespaces', function ($join) { $join->on('projects.namespace_id', '=', 'namespaces.id'); })->where('projects.path', '=', $project_path)->where('namespaces.path', '=', $namespace)->first(['projects.*']); return View::make('projects.edit')->withPageTitle(trans('dashboard.projects.new.title') . ' - ' . trans('dashboard.dashboard'))->withProject($project)->withGroupId('')->withGroups(Group::all()); }