Skip to content

Commit

Permalink
guest: Show guest mark at project member setting page
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Aug 10, 2017
1 parent ec21476 commit 35f9331
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,13 @@ label.inline-list {
}
}

.guest-mixin() {
background-color: rgba(255, 165, 0, 0.8);;
color: white;
padding: 2px;
font-size: 10px;
}

.members.project {
margin: 0;
list-style: none;
Expand Down Expand Up @@ -2052,6 +2059,9 @@ label.inline-list {
}
}
}
.guest {
.guest-mixin
}
}

.check-all {
Expand Down
2 changes: 1 addition & 1 deletion app/views/project/members.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<img src="@User.findByLoginId(member.user.loginId).avatarUrl" width="64" height="64">
</a>
<div class="member-name">@member.user.name</div>
<div class="member-id">@{"@"}@member.user.loginId</div>
<div class="member-id">@{"@"}@member.user.loginId @if(member.user.isGuest){<span class="guest">GUEST</span>}</div>
<div class="member-setting">
@if(!project.isOwner(member.user)) {
<div class="btn-group" data-name="[email protected]">
Expand Down

0 comments on commit 35f9331

Please sign in to comment.