Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Add tooltips at events like 'round-tables'.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvislov committed Apr 8, 2013
1 parent d9dcf02 commit 2e4a9c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/assets/stylesheets/web/custom/_areas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
.buttons-group {
display: inline-block;
margin-bottom: 6px;
margin-left: 16px;
}
.btn {
padding: 0 6px;
Expand Down Expand Up @@ -302,6 +301,9 @@ $i : $min_speech_time;
.author {
line-height: 12px;
}
.vote-tooltip {
margin-left: 0;
}
&:hover {
.caption {
text-decoration: none;
Expand Down Expand Up @@ -372,4 +374,9 @@ $i : $min_speech_time;
}
}
}
}

// Tooltips
.vote-tooltip {
margin-left: 16px;
}
3 changes: 2 additions & 1 deletion app/views/web/schedules/_event.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
%span.btn.btn-state.btn-unvote= t('.you_are_voted')
%span.btn.btn-state.btn-unvote-hover= t('.unvote')
-else
%span.btn.btn-no-clickable= t('.they_going')
%span.btn.btn-no-clickable.vote-tooltip{title: "#{t('.auth_for_vote')}", data: {toggle: 'tooltip'}}
= t('.they_going')

%span.btn.votings-count.btn-no-clickable
= slot.event.event_votings.size
Expand Down
1 change: 1 addition & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ ru:
you_are_voted: 'Вы пойдете'
unvote: "Не пойду"
they_going: 'Пойдут'
auth_for_vote: 'Авторизуйтесь, чтобы проголосовать'

event:
i_am_going: "Пойти"
Expand Down

0 comments on commit 2e4a9c2

Please sign in to comment.