indicate the selected channel in the dropdown menu and minor css fixes

This commit is contained in:
git-marijus 2017-07-22 12:01:13 +02:00
parent 4335e49381
commit f4a4d70149
3 changed files with 4 additions and 16 deletions

View file

@ -4,10 +4,6 @@
text-decoration: none;
}
.new-notification {
color: #c60032;
}
.channel-photo-wrapper {
display: table-cell;
table-layout: fixed;
@ -24,11 +20,3 @@
vertical-align: top;
padding-left: 10px;
}
.selected-channel {
color: green;
}
#all-channels-end {
margin-bottom: 20px;
}

View file

@ -17,7 +17,7 @@
</div>
<h3>
{{if $selected == $channel.channel_id}}
<i class="selected-channel fa fa-circle" title="{{$msg_selected}}"></i>
<i class="fa fa-circle text-success" title="{{$msg_selected}}"></i>
{{/if}}
{{if $channel.delegate}}
<i class="fa fa-arrow-circle-right" title="{{$delegated_desc}}"></i>
@ -37,11 +37,11 @@
<div class="channel-notifications-wrapper">
{{if !$channel.delegate}}
<div class="channel-notification">
<i class="fa fa-envelope{{if $channel.mail != 0}} new-notification{{/if}}"></i>
<i class="fa fa-fw fa-envelope{{if $channel.mail != 0}} text-danger{{/if}}"></i>
{{if $channel.mail != 0}}<a href="manage/{{$channel.channel_id}}/mail/combined">{{/if}}{{$channel.mail|string_format:$mail_format}}{{if $channel.mail != 0}}</a>{{/if}}
</div>
<div class="channel-notification">
<i class="fa fa-user{{if $channel.intros != 0}} new-notification{{/if}}"></i>
<i class="fa fa-fw fa-user{{if $channel.intros != 0}} text-danger{{/if}}"></i>
{{if $channel.intros != 0}}<a href='manage/{{$channel.channel_id}}/connections/ifpending'>{{/if}}{{$channel.intros|string_format:$intros_format}}{{if $channel.intros != 0}}</a>{{/if}}
</div>
{{/if}}

View file

@ -26,7 +26,7 @@
{{/if}}
{{if $nav.channels}}
{{foreach $nav.channels as $chan}}
<a class="dropdown-item" href="manage/{{$chan.channel_id}}" title="{{$chan.channel_name}}" role="menuitem">{{$chan.channel_name}}</a>
<a class="dropdown-item" href="manage/{{$chan.channel_id}}" title="{{$chan.channel_name}}" role="menuitem"><i class="fa fa-circle{{if $localuser == $chan.channel_id}} text-success{{else}} invisible{{/if}}"></i> {{$chan.channel_name}}</a>
{{/foreach}}
{{/if}}
{{if $nav.profiles}}