Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
guest: Show guest mark at profile page
  • Loading branch information
doortts committed Jul 23, 2017
1 parent 9af8d25 commit 1b5c5b8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
17 changes: 17 additions & 0 deletions app/assets/stylesheets/less/_page.less
Expand Up @@ -4652,6 +4652,23 @@ label.issue-item-row {
}
}

.guest-user {
background-color: rgba(255, 165, 0, 0.8);;
color: white;
text-align: center;
width: 20px;
border-radius: 3px;

.left-mark {
width: 10px;
writing-mode: vertical-rl;
text-orientation: upright;
font-size: 10px;
margin-left: 10px;
padding-top: 5px;
}
}

.user-since {
margin-top: 10px;
padding:0 10px;
Expand Down
9 changes: 7 additions & 2 deletions app/views/user/view.scala.html
Expand Up @@ -44,7 +44,13 @@ <h3>@Messages("userinfo.profile")</h3>
<div class="page-wrap">
<section class="user-box">
<div class="user-info-box">
<div class="whoami-wrap" style="background-image:url('@user.avatarUrl(256)')"></div>
<div class="whoami-wrap" style="background-image:url('@user.avatarUrl(256)')">
@if(user.isGuest) {
<div class="guest-user">
<span class="left-mark">OUR GUEST</span>
</div>
}
</div>
<div class="whoami usf-group">
<span class="name">@user.name</span>
<span class="loginid">@{"@"}@user.loginId</span>
Expand Down Expand Up @@ -84,7 +90,6 @@ <h3>@Messages("userinfo.profile")</h3>
}
}
</div>

</div>
</div>

Expand Down

0 comments on commit 1b5c5b8

Please sign in to comment.