1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-02 04:24:56 +02:00

Merge pull request #4801 from hanakin/ticket/15156

[ticket/15156] Simplify user online notification
This commit is contained in:
Marc Alexander 2017-04-27 17:04:18 -04:00
commit e60306d1e1
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
9 changed files with 138 additions and 148 deletions

View File

@ -5,7 +5,7 @@
<!-- EVENT memberlist_view_content_prepend -->
<form method="post" action="{S_PROFILE_ACTION}" id="viewprofile">
<div class="panel bg1<!-- IF S_ONLINE --> online<!-- ENDIF -->">
<div class="panel bg1">
<div class="inner">
<!-- IF AVATAR_IMG -->
@ -19,9 +19,11 @@
<!-- ENDIF -->
<dl class="left-box details profile-details">
<dt>{L_USERNAME}{L_COLON}</dt>
<dt>
{L_USERNAME}{L_COLON}
</dt>
<dd>
<!-- IF USER_COLOR --><span style="color: {USER_COLOR}; font-weight: bold;"><!-- ELSE --><span><!-- ENDIF -->{USERNAME}</span>
<!-- IF USER_COLOR --><span style="color: {USER_COLOR}; font-weight: bold;"><!-- ELSE --><span><!-- ENDIF -->{USERNAME}</span> <!-- IF S_ONLINE --> <i class="icon fa-circle fa-fw icon-md online" aria-hidden="true"></i><span class="sr-only">{L_ONLINE}</span><!-- ENDIF -->
<!-- IF U_EDIT_SELF --> [ <a href="{U_EDIT_SELF}">{L_EDIT_PROFILE}</a> ]<!-- ENDIF -->
<!-- IF U_USER_ADMIN --> [ <a href="{U_USER_ADMIN}">{L_USER_ADMIN}</a> ]<!-- ENDIF -->
<!-- IF U_USER_BAN --> [ <a href="{U_USER_BAN}">{L_USER_BAN}</a> ]<!-- ENDIF -->

View File

@ -22,7 +22,7 @@
<!-- ENDIF -->
<div id="post-{MESSAGE_ID}" class="post pm has-profile<!-- IF S_POST_UNAPPROVED or S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF S_ONLINE --> online<!-- ENDIF -->">
<div id="post-{MESSAGE_ID}" class="post pm has-profile<!-- IF S_POST_UNAPPROVED or S_POST_REPORTED --> reported<!-- ENDIF -->">
<div class="inner">
<dl class="postprofile" id="profile{MESSAGE_ID}">
@ -32,7 +32,7 @@
<!-- IF AUTHOR_AVATAR --><a href="{U_MESSAGE_AUTHOR}" class="avatar">{AUTHOR_AVATAR}</a><!-- ENDIF -->
<!-- EVENT ucp_pm_viewmessage_avatar_after -->
</div>
{MESSAGE_AUTHOR_FULL}
{MESSAGE_AUTHOR_FULL}<!-- IF S_ONLINE --> <i class="icon fa-circle fa-fw icon-md online" aria-hidden="true"></i><span class="sr-only">{L_ONLINE}</span><!-- ENDIF -->
</dt>
<!-- EVENT ucp_pm_viewmessage_rank_before -->

View File

@ -135,7 +135,7 @@
<!-- IF postrow.S_FIRST_UNREAD -->
<a id="unread" class="anchor"<!-- IF S_UNREAD_VIEW --> data-url="{postrow.U_MINI_POST}"<!-- ENDIF -->></a>
<!-- ENDIF -->
<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF -->">
<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF -->">
<div class="inner">
<dl class="postprofile" id="profile{postrow.POST_ID}"<!-- IF postrow.S_POST_HIDDEN --> style="display: none;"<!-- ENDIF -->>
@ -148,7 +148,7 @@
<!-- EVENT viewtopic_body_avatar_after -->
</div>
<!-- EVENT viewtopic_body_post_author_before -->
<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> <i class="icon fa-circle fa-fw icon-md online" aria-hidden="true"></i><span class="sr-only">{L_ONLINE}</span><!-- ENDIF -->
<!-- EVENT viewtopic_body_post_author_after -->
</dt>

View File

@ -633,10 +633,6 @@ li.breadcrumbs span:first-child > a {
float: right;
}
.rtl .online {
background-position: 0 0;
}
.rtl dl.pmlist dd {
margin-right: 61% !important;
margin-left: 0 !important;

View File

@ -214,6 +214,10 @@ a:hover .icon.icon-blue {
color: #196db5;
}
.icon.online {
color: #85de39;
}
.icon.icon-green,
a:hover .icon.icon-green {
color: #1b9a1b;
@ -727,7 +731,6 @@ dd.profile-warnings {
.contact-icon { background-image: url("./images/icons_contact.png"); }
/* profile icons */
.online { background-image: url("./en/icon_user_online.gif"); }
.pm-icon { background-position: 0 0; }
.email-icon { background-position: -21px 0; }
.jabber-icon { background-position: -80px 0; }

View File

@ -793,12 +793,6 @@ dd.profile-contact {
margin-right: -14px;
}
.online {
background-image: none;
background-repeat: no-repeat;
background-position: 100% 0;
}
/* Poster profile used by search */
.search .postprofile {
width: 30%;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

View File

@ -1,2 +1 @@
/* Online image */
.online { background-image: url("./icon_user_online.gif"); }
/* language specific styles go here */

View File

@ -557,10 +557,6 @@
right: 30px;
}
.online {
background-size: 40px;
}
/* Misc stuff
---------------------------------------------------------------- */
h2 {