Created
April 1, 2013 15:20
-
-
Save valachi/5285527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%meta{ :charset => "utf-8" }/ | |
%title= yield(:title) | |
- if controller_name == 'articles' && action_name == 'show' | |
= yield(:meta_tags) | |
= stylesheet_link_tag "application", :media => "all" | |
= javascript_include_tag 'http://vkontakte.ru/js/api/share.js?10' | |
= javascript_include_tag 'http://userapi.com/js/api/openapi.js?45' | |
%script{type: 'text/javascript'} | |
VK.init({apiId: 3123597, onlyWidgets: true}); | |
= csrf_meta_tags | |
%link{rel: 'shortcut icon', type: 'image/x-icon', href: '/favicon.ico'} | |
= auto_discovery_link_tag :atom, feed_url | |
%body | |
= render 'shared/facebook_init' | |
- flash.each do |key, value| | |
.flash-messages | |
.container | |
.alert{:class => "alert-#{key}"} | |
%button.close{:type=>"button", :data=> {:dismiss=>"alert"}} | |
× | |
= value | |
#loading-spinner | |
.modals | |
- if current_page?(root_url) | |
- content_for :main_slider do | |
= render 'shared/slider_main' | |
#wrapper | |
#main-layout | |
.get-header_wrapper | |
%header#get-header | |
.container | |
.get-user_links | |
= render 'shared/user_links' | |
.get-logo | |
= link_to 'HungryShark', root_path, :id => 'main-logo' | |
= render 'shared/main_menu' | |
#get-layout | |
.get-slider_main | |
.container | |
.get-search_block{:class => "#{search_form_class}" } | |
= render 'shared/search_form' | |
= yield :main_slider | |
.wrapper | |
.container | |
.get-main_container{:class=>"#{layout_style_class}" } | |
.get-content_side= yield | |
.get-sidebar{ :class=>"#{sidebar_fix_class}" } | |
= yield :get_quotes | |
= link_to new_feedback_path, class: 'red_button' do | |
%span Прислать проект | |
= yield :side_tags | |
= yield :events_block | |
-#= render 'shared/history_block' | |
.side-social | |
= render 'shared/side_social' | |
.right_affix_block | |
= render 'shared/right_affix_block' | |
- if need_to_paginate? | |
.get-pager | |
.container= paginate @articles | |
= render 'shared/bottom_carousel' | |
%footer#get-foot | |
.wrapper | |
.container | |
.get-rel | |
.get-icon | |
%span HungryShark | |
= render 'shared/footer_menu' | |
= render 'shared/footer_social' | |
.get-text | |
%p.get-copy © Hungry Shark, 2012 | |
%p Свидетельство о регистрации СМИ ЭЛ № ФС77-45981. | |
%p Использование материалов портала запрещено без письменного одобрения администрации сайта. | |
%p Сайт может содержать информацию, не предназначенную для лиц младше 16-ти лет. | |
- if Rails.env.production? | |
= render 'shared/ga' | |
= render 'shared/rambler' | |
= include_gon | |
= javascript_include_tag "application" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment