public function get_confirmation($email = null, $hash = null) { try { $confirmation = Sentry::reset_password_confirm($email, $hash); if ($confirmation) { return Redirect::to(URL::to_route('session.login'))->with('status_success', __('application.resset_ok')); } else { return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header')); } } catch (Sentry\SentryException $e) { return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header')); } }
public function get_contact() { return View::make('home.contact')->with('nav', 'contact')->with('title', HtmlHelpers::name('contact')); }
public function get_events_search() { list($terms, $events) = Search::search_events(Input::get('q')); return View::make('dashboard.events')->with('title', HtmlHelpers::name('manage_events'))->with('active', 'manage_events')->with('events', $events); }
public function get_show($tag) { $paintings = Tag::where('name', '=', $tag)->first()->paintings()->paginate(Config::get('app.paginator_count')); return View::make('tags.show')->with('title', HtmlHelpers::name('tags') . ' - ' . Str::title($tag))->with('nav', 'work')->with('tag', $tag)->with('paintings', $paintings); }
public function get_index() { $events = GroupEvent::order_by('created_at', 'desc')->paginate(Config::get('app.paginator_count')); $count = ceil(count($events->results) / 2); return View::make('events.index')->with('title', HtmlHelpers::name('events'))->with('nav', 'events')->with('events', $events)->with('count', $count); }
public function get_paintings_search() { list($terms, $paintings) = Search::search_paintings(Input::get('q')); return View::make('work.index')->with('title', HtmlHelpers::name('work') . ' - ' . __('application.search_results'))->with('nav', 'work')->with('painter', __('application.search_results'))->with('paintings', $paintings); }