Exemple #1
0
 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'));
     }
 }
Exemple #2
0
 public function get_contact()
 {
     return View::make('home.contact')->with('nav', 'contact')->with('title', HtmlHelpers::name('contact'));
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 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);
 }
Exemple #6
0
 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);
 }