amahi/platform

View on GitHub
app/controllers/front_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Amahi Home Server
# Copyright (C) 2007-2013 Amahi
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License v3
# (29 June 2007), as published in the COPYING file.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# file COPYING for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Amahi
# team at http://www.amahi.org/ under "Contact Us."

require 'amahi_news'

class FrontController < ApplicationController

    before_action :login_required_unless_guest_dashboard
    layout 'basic'

    def index
        @page_title = t('dashboard')
        @apps = App.in_dashboard
        @news = AmahiNews.top()
    end
end