Igor Zhukov
10 years ago
15 changed files with 138 additions and 160 deletions
@ -1,32 +1,23 @@
@@ -1,32 +1,23 @@
|
||||
<span ng-switch="::historyMessage.action._"> |
||||
<span ng-switch-when="messageActionChatCreate"> |
||||
created the group «<strong ng-bind-html="::historyMessage.action.rTitle"></strong>» |
||||
</span> |
||||
<span ng-switch-when="messageActionChatEditTitle"> |
||||
changed group name to «<strong ng-bind-html="::historyMessage.action.rTitle"></strong>» |
||||
</span> |
||||
<span ng-switch-when="messageActionChatEditPhoto"> |
||||
changed group photo |
||||
</span> |
||||
<span ng-switch-when="messageActionChatDeletePhoto"> |
||||
removed group photo |
||||
</span> |
||||
<my-i18n> |
||||
<span ng-switch-when="messageActionChatCreate" my-i18n-format="message_service_created_group"></span> |
||||
<span ng-switch-when="messageActionChatEditTitle" my-i18n-format="message_service_changed_group_name"></span> |
||||
<my-i18n-param name="group-name">«<strong ng-bind-html="::historyMessage.action.rTitle"></strong>»</my-i18n-param> |
||||
</my-i18n> |
||||
<span ng-switch-when="messageActionChatEditPhoto" my-i18n="message_service_changed_group_photo"></span> |
||||
<span ng-switch-when="messageActionChatDeletePhoto" my-i18n="message_service_removed_group_photo"></span> |
||||
<span ng-switch-when="messageActionChatAddUser" ng-switch="::historyMessage.from_id != historyMessage.action.user_id"> |
||||
<span ng-switch-when="true"> |
||||
invited <a my-user-link="historyMessage.action.user_id" color="true"></a> |
||||
</span> |
||||
<span ng-switch-default> |
||||
returned to group |
||||
<span ng-switch-when="true" my-i18n="message_service_invited_user"> |
||||
<my-i18n-param name="user"><a my-user-link="historyMessage.action.user_id" color="true"></a></my-i18n-param> |
||||
</span> |
||||
<span ng-switch-default my-i18n="message_service_returned_to_group"></span> |
||||
</span> |
||||
<span ng-switch-when="messageActionChatDeleteUser" ng-switch="::historyMessage.from_id != historyMessage.action.user_id"> |
||||
<span ng-switch-when="true"> |
||||
kicked <a my-user-link="historyMessage.action.user_id" color="true"></a> |
||||
</span> |
||||
<span ng-switch-default> |
||||
left group |
||||
<span ng-switch-when="true" my-i18n="message_service_kicked_user"> |
||||
<my-i18n-param name="user"><a my-user-link="historyMessage.action.user_id" color="true"></a></my-i18n-param> |
||||
</span> |
||||
<span ng-switch-default my-i18n="message_service_left_group"></span> |
||||
</span> |
||||
|
||||
<span ng-switch-default ng-bind="'Unsupported action ' + historyMessage.action._"></span> |
||||
<span ng-switch-default ng-bind="'message_service_unsupported_action' | i18n:historyMessage.action._"></span> |
||||
</span> |
Loading…
Reference in new issue