2011-03-31 00:10:23 +01:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
2012-02-08 14:01:00 +00:00
|
|
|
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
2011-11-01 20:18:22 +00:00
|
|
|
%title= choose_title
|
2012-02-08 14:01:00 +00:00
|
|
|
= stylesheet_link_tag 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css', :media => 'screen, projection'
|
|
|
|
= stylesheet_link_tag "application"
|
|
|
|
= javascript_include_tag "application"
|
2011-03-31 00:10:23 +01:00
|
|
|
= csrf_meta_tag
|
2011-10-14 07:35:25 +01:00
|
|
|
|
2012-02-08 14:01:00 +00:00
|
|
|
%body
|
2012-02-24 21:54:44 +00:00
|
|
|
.wrap{:class => content_for?(:sidebar) ? 'columns' : ''}
|
2012-02-08 14:01:00 +00:00
|
|
|
%header
|
|
|
|
.left
|
|
|
|
.middle
|
|
|
|
%menu
|
|
|
|
= render 'layouts/menu/top'
|
|
|
|
.logo= image_tag 'logo-mini.png', :alt => 'logo'
|
|
|
|
.information
|
|
|
|
.search
|
|
|
|
.pic
|
|
|
|
.field
|
2012-02-27 18:58:37 +00:00
|
|
|
%input.gray{:onclick => "if(this.value=='#{t "layout.search"}'){this.value='';this.className='black';}", :onblur => "if(this.value==''){this.value='#{t "layout.search"}';this.className='gray';}", :type => "text", :value => "#{t "layout.search"}"}
|
2012-02-16 23:07:22 +00:00
|
|
|
.user
|
|
|
|
.avatar= image_tag 'ava.png', :alt => 'avatar', :height => "30"
|
|
|
|
.profile
|
|
|
|
%a{:href => "#"}
|
|
|
|
= current_user.uname
|
|
|
|
= image_tag 'expand-white.png', :alt => 'ex'
|
|
|
|
.both
|
2012-02-08 14:01:00 +00:00
|
|
|
.both
|
|
|
|
.droplist-wrap
|
|
|
|
#droplist.droplist
|
|
|
|
.a= link_to current_user.uname, current_user
|
|
|
|
.a= link_to t('layout.settings.label'), edit_user_registration_path
|
|
|
|
.a= link_to t('layout.logout'), destroy_user_session_path, :method => :delete
|
|
|
|
.right
|
|
|
|
.both
|
|
|
|
- if content_for?(:sub_menu)
|
|
|
|
.sub-menu= yield :sub_menu
|
|
|
|
.both
|
|
|
|
= render "layouts/flashes"
|
|
|
|
%article
|
|
|
|
- if content_for?(:sidebar)
|
|
|
|
%aside= yield :sidebar
|
2012-02-29 14:04:04 +00:00
|
|
|
.right{:class => layout_class}= yield
|
2012-02-08 14:01:00 +00:00
|
|
|
- else
|
|
|
|
.all= yield
|
|
|
|
.both
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2012-02-08 14:01:00 +00:00
|
|
|
%footer= render "layouts/menu/bottom"
|
2012-02-13 16:42:11 +00:00
|
|
|
= render 'layouts/counters' unless current_user.try(:admin?)
|