Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed May 18, 2015
1 parent 72cc0f5 commit c5f2d71
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 108 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
cursor: pointer
&.mic-userpic-circle:hover
opacity: 0.5
&.row:hover
background-color: lightgray

div.hidden
display: none
2 changes: 2 additions & 0 deletions app/assets/stylesheets/web/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@
margin-left: 1%;
margin-top: 50px;
margin-bottom: 50px;
padding-top: 20px;
padding-bottom: 20px;
.stage-text {
.title {
font-family: mic-bold;
Expand Down
6 changes: 6 additions & 0 deletions app/assets/stylesheets/web/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,9 @@ ul {
.select2-container {
width: 100%;
}

.columns {
&.email {
padding-left: 0;
}
}
5 changes: 2 additions & 3 deletions app/views/layouts/web/shared/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
%a{ href: "#" }
Партнёры
.menu-item
%a{ href: "#" }
Контакты
= link_to t('helpers.contacts'), article_path(@contact_article)

.right.social
.icons
Expand All @@ -21,7 +20,7 @@
%a.blank{ href: configus.social_networks_pages.google_plus }
.min-icon.icon-google
.contacts.row
.small-6.columns
.small-6.columns.email
%a.mail{ href: "#" }
%span.icon.icon-mail
%span activ@ulmic.ru
Expand Down
108 changes: 6 additions & 102 deletions app/views/layouts/web/shared/_navbar.html.haml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.main-navbar-container
%nav.top-bar{"data-topbar" => ""}
%nav.top-bar{ data: { toolbar: '' } }
%section.top-bar-section
.container-big
%ul.right
- unless signed_in?
%li.icons-container
.icons
%a{ href: auth_path(:vkontakte) }
= link_to auth_path(:vkontakte) do
.icon-vk.min-icon
%a{ href: auth_path(:twitter) }
= link_to auth_path(:twitter) do
.icon-twitter.min-icon
%a{ href: auth_path(:facebook) }
= link_to auth_path(:facebook) do
.icon-facebook.min-icon
%a{ href: new_session_path }
= link_to new_session_path do
.icon-door.min-icon

%li.banner-container
Expand Down Expand Up @@ -42,103 +42,7 @@
- if @contact_article.present?
= link_to article_path(@contact_article) do
.inner
Контакты
= t('helpers.contacts')
%li
%a{ href: "#" }
%a.site-logo{ href: root_path }
%ul.left
-#%li.has-dropdown.dropdown-category-menu
%a{href: "#"}
.inner
Миц - это ...
%ul.dropdown
#category_menu.category-menu
- if @first_category.present?
.category-column
.menu-title
= @first_category.name
- @first_category.articles.each do |article|
= link_to article.title, article_path(article)
- if signed_in?
.category-column
.menu-title Программы и проекты
%a{href: "#"}
Программа «Лидер»
%a{href: "#"}
Программа «Inформация»
%a{href: "#"}
Программа «Добро»
%a{href: "#"}
Программа «Право»
%a{href: "#"}
Проект «Информационные технологии»
%a{href: "#"}
Проект «Диалог культур»
- if @korporative_category.present?
.category-column
.menu-title Корпоративные проекты
- @korporative_category.articles.presented.each do |article|
= link_to article.title, article_path(article)
.category-column
.menu-title Библиотека
%a{href: "#"}
«Активаторы»
%a{href: "#"}
Газета «Этажи»
%a{href: "#"}
Методические разработки
- else
.category-column
.menu-title Деятельность
%a{href: "#"}
Профильные смены
%a{href: "#"}
Конкурс актива учащейся молодёжи «Я-лидер!»
%a{href: "#"}
Конкурс начинающих журналистов «Новый взгляд»
%a{href: "#"}
Марафон молодёжных инициатив
%a{href: "#"}
ALLMOL
%a{href: "#"}
Гражданиада
%a{href: "#"}
Уроки интернет-безопасности
%a{href: "#"}
«На старт!»
.category-column
.menu-title Программы и проекты
%a{href: "#"}
Программа «Лидер»
%a{href: "#"}
Программа «Inформация»
%a{href: "#"}
Программа «Добро»
%a{href: "#"}
Программа «Право»
%a{href: "#"}
Проект «Информационные технологии»
%a{href: "#"}
Проект «Диалог культур»
%a{href: "#"}
Корпоративная проекты
.category-column
.menu-title Команды МИЦ
%a{href: "#"}
г.Ульяновск
%a{href: "#"}
г.Димитровград
%a{href: "#"}
г. Новоульяновск
%a{href: "#"}
Радищевский район
%a{href: "#"}
Базарносызганский район
%a{href: "#"}
Новосспаский район
%a{href: "#"}
Создать своё
-#%li
%a{href: "#"}
.inner
Партнёры
4 changes: 1 addition & 3 deletions app/views/web/members/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
- if @registrations.any?
#stages-of-grow.content.active.stages
- @registrations.each do |registration|
.row.stage
.row.stage.link{ data: { href: event_path(registration.event) } }
.small-1.small-push-1.columns
.stage-date
.icon-bigcalendar
Expand All @@ -123,8 +123,6 @@
.role
= "#{t('activerecord.attributes.event.registration.role')}:"
= registration.localize_role
%a.view-all{href: "#"}
подробнее
%hr
- if @articles.any? || @news.any?
#users-news.content
Expand Down
37 changes: 37 additions & 0 deletions config/locales/ru/helpers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ru:
helpers:
enter: Войти
sign_out: Выйти
no_author: Нет автора
in: в
from: c
until: по
year: 'года'
short_year: 'г.'
short_years: 'гг.'
more_info: 'Подробнее'
hide: 'Скрыть'
cancel: Отмена
view_all: посмотреть всех
contacts: Контакты
actions:
update: Редактировать
create: Создать
destroy: Удалить
show: Показать
index: Все
edit: Редактировать
links:
actions: Действия
edit: Изменить
destroy: Удалить
restore: Восстановить
new: Добавить
save: Сохранить
back: Назад
select: Выбрать
approve: Подтвердить
decline: Отклонить
published: Опубликованные новости
unpublished: Неопубликованные новости
add: Добавить

0 comments on commit c5f2d71

Please sign in to comment.