-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
return [ | ||
'The user is not recognized' => 'Пользователь не распознан', | ||
'The model is not registered' => 'Модель не зарегистрирована!', | ||
'The purpose is not defined' => 'Цель не определена', | ||
'Wrong action' => 'Неправильное действие!', | ||
'Your vote is accepted. Thanks!' => 'Голос принят. Спасибо!', | ||
'Thanks for your opinion' => 'Спасибо за ваше мнение', | ||
'Validation error' => 'Ошибка валидации', | ||
'You have already voted!' => 'Вы уже голосовали!', | ||
'Forbidden method' => 'Запрещенный метод', | ||
'Aggregate rating' => 'Совокупный рейтинг' | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div id="vote-<?=$model_name.$target_id;?>" style="text-align: center;"> | ||
<span id="vote-up-<?=$model_name.$target_id;?>" class="glyphicon glyphicon-thumbs-up" onclick="vote('<?=$model_name;?>',<?=$target_id;?>,'like'); return false;" style="cursor:pointer;"><?=$rating['likes'];?></span> | ||
<span id="vote-down-<?=$model_name.$target_id;?>" class="glyphicon glyphicon-thumbs-down" onclick="vote('<?=$model_name;?>',<?=$target_id;?>,'dislike'); return false;" style="cursor:pointer;"><?=$rating['dislikes'];?></span> | ||
<div id="vote-response-<?=$model_name.$target_id;?>">Aggregate rating: <?=$rating['aggregate_rating'];?></div> | ||
<div id="vote-response-<?=$model_name.$target_id;?>"><?=\Yii::t('vote', 'Aggregate rating');?>: <?=$rating['aggregate_rating'];?></div> | ||
</div> |