mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
Icon for admins
This commit is contained in:
parent
cea48c6d83
commit
7786950990
3 changed files with 7 additions and 2 deletions
|
@ -184,7 +184,8 @@ class ArtistsController extends ApiControllerBase
|
|||
'user_data' => $userData,
|
||||
'permissions' => [
|
||||
'edit' => Gate::allows('edit', $user)
|
||||
]
|
||||
],
|
||||
'isAdmin' => $user->hasRole('admin')
|
||||
]
|
||||
], 200);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<header ng-style="{'background-image': 'linear-gradient(135deg, ' + artist.avatar_colors[0] + ' 15%, ' + artist.avatar_colors[1] + ' 100%)'}">
|
||||
<img src="{{::artist.avatars.normal}}">
|
||||
<div class="artist-right">
|
||||
<h1>{{::artist.name}}</h1>
|
||||
<h1>{{::artist.name}}<i class="fa fa-star admin-star" ng-show="::artist.isAdmin" data-title="Admin" bs-tooltip></i></h1>
|
||||
<a href="#" class="btn btn-default" ng-class="{'btn-primary': !artist.user_data.is_following}" ng-show="::auth.isLogged && auth.user.id != artist.id" pfm-eat-click ng-click="toggleFollow()">
|
||||
<span ng-hide="artist.user_data.is_following">Follow</span>
|
||||
<span ng-show="artist.user_data.is_following">Following!</span>
|
||||
|
|
4
resources/assets/styles/content.less
vendored
4
resources/assets/styles/content.less
vendored
|
@ -173,6 +173,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.admin-star {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&.x-archived {
|
||||
background: #eee;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue