Skip to content

Dcreo/tusur_header

 
 

Repository files navigation

bootstrap-sass (~> 3.1.1)
coffee-rails
compass-rails
jquery-rails
sass-rails (>= 3.2)
stop_ie (>= 0.1.4)

1 Добавляем в Gemfile

gem 'tusur_header',         '~> 0.2.0'

запускаем bundle

$ bundle install

2 Подключаем партиал

<%= render :partial => 'tusur_header/tusur_header' %>

например в app/views/layouts/application.html.erb

2.1 Определям что будет рендериться с помощью тега content_for

2.2 Доступные yield :tusur_header_second_menu :tusur_header_auth_block :tusur_header_second_menu_left :tusur_header_second_menu_right

2.2.1 :stop_ie подключаем в footer чтобы включить проверку браузера на IE > 8

3 Подключаем стили в sass

@import 'tusur_header'

или в css

*= require tusur_header

4 Подключаем javascript

//= require tusur_header
  • клонируем git clone git@github.com:openteam-tusur/tusur_header.git

  • добавляем/удаляем/изменяем файл config/sites.yml

  • git commit -am 'update sites.yml'

  • git push

  • в Settings положить profile.url

  • добавляем в модель User has_remote_notifications

  • где нужно используем метод get_notification_count (current_user.get_notification_count, возвращает Integer)

Не забываем добавлять в layout поддержку мобильных устройств:

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

This project rocks and uses MIT-LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.4%
  • Ruby 44.2%
  • JavaScript 1.5%
  • CSS 1.3%
  • Sass 0.6%