Skip to content

Commit

Permalink
ERB->Slim(layout:application)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimoju committed Feb 27, 2013
1 parent 9f0c689 commit 8d7dac2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 41 deletions.
41 changes: 0 additions & 41 deletions app/views/layouts/application.html.erb

This file was deleted.

28 changes: 28 additions & 0 deletions app/views/layouts/application.html.slim
@@ -0,0 +1,28 @@
doctype html
html id=controller.controller_name
head
title= @title ? "Zoomix / #{@title}" : 'Zoomix'
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
= csrf_meta_tags
body
#wrapper
header
h1= link_to image_tag('logo.png', alt: 'Zoomix', width: 240), root_path
p Always by your side.
nav
ul
- if user_signed_in?
li= link_to 'ログアウト', destroy_user_session_path, method: :delete
- else
li= link_to 'ログイン', user_omniauth_authorize_path(:twitter)
#main
= yield

footer
p © 2012 dbsh5th Web Apllication Team [#{link_to 'About Us', about_path}]

- if notice
p#notice= notice
- if alert
p#alert= alert

0 comments on commit 8d7dac2

Please sign in to comment.