Skip to content

Commit

Permalink
Converted Dashboard to haml
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyankg committed Jun 2, 2010
1 parent 79771d5 commit 8cba3fa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 44 deletions.
44 changes: 0 additions & 44 deletions app/views/dashboard/index.html.erb

This file was deleted.

41 changes: 41 additions & 0 deletions app/views/dashboard/index.html.haml
@@ -0,0 +1,41 @@
-#--
-# Copyright (C) 2010 Shreyank Gupta <sgupta@REDHAT.COM>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# 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
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#++
.post
%h2.title
- if !logged_in?
Welcome to FSoC
- else
=h current_user.user_type.capitalize
Dashboard
%p.meta
%span.date &nbsp;
%div{:style => 'clear: both'} &nbsp;
.entry
- if !logged_in?
%h3 Hi and welcome to FSoC
%p.links
= link_to 'Login', login_path
or
= link_to 'Signup', signup_path
to get started.
- else
- if admin?
%br/
%p /* under construction */
= render :partial => "dashboard/dashboard", :locals => { :user => current_user }

0 comments on commit 8cba3fa

Please sign in to comment.