mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Give flag text danger class and already reported message if already
reproted
This commit is contained in:
parent
e9cffe6206
commit
2f506ce0e0
2 changed files with 4 additions and 1 deletions
|
|
@ -135,6 +135,9 @@ a
|
|||
a span.glyphicon
|
||||
color: #333 // Takes base color from bootstrap
|
||||
|
||||
&.text-danger
|
||||
color: #a94442 // Allows glyphicon to use text-danger class
|
||||
|
||||
a.label
|
||||
color: #fff
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ mixin chatMessages(inbox)
|
|||
a(ng-click='#{inbox? "user.ops.deletePM({params:{id:message.$key}})" : "deleteChatMessage(group, message)"}', ng-if='#{inbox ? "true" : ":: user.contributor.admin || message.uuid == user.id"}')
|
||||
span.glyphicon.glyphicon-trash(tooltip=env.t('delete'))
|
||||
a(ng-click="flagChatMessage(message)", ng-if='#{inbox ? "true" : ":: message.uuid != user.id && message.uuid != \'system\'"}')
|
||||
span.glyphicon.glyphicon-flag(tooltip=env.t('abuseFlag'))
|
||||
span.glyphicon.glyphicon-flag(tooltip="{{message.flags[user._id] ? env.t('abuseAlreadyReported') : env.t('abuseFlag')}}" ng-class='message.flags[user._id] ? "text-danger" : ""')
|
||||
span.float-label
|
||||
a.label.label-default.chat-message(ng-if=':: message.user', ng-class='::userLevelStyleFromLevel(message.contributor.level, message.backer.npc, style)', ng-click='clickMember(message.uuid, true)')
|
||||
span.glyphicon.glyphicon-arrow-right(ng-if='::message.sent')
|
||||
|
|
|
|||
Loading…
Reference in a new issue