[ticket/11103] Add title/view all link to subsilver2

PHPBB3-11103
This commit is contained in:
Nathan Guse 2012-10-16 17:28:45 -05:00
parent 901739b0c6
commit a080af4b05
2 changed files with 64 additions and 26 deletions

View file

@ -152,6 +152,11 @@ function marklist(id, name, state)
<!-- IF S_NOTIFICATIONS_DISPLAY --> <!-- IF S_NOTIFICATIONS_DISPLAY -->
[ <a href="#" id="notification_list_button" title="{NOTIFICATIONS_COUNT}" onclick="$('#notification_list').toggle();">{NOTIFICATIONS_COUNT}</a> ] &bull; [ <a href="#" id="notification_list_button" title="{NOTIFICATIONS_COUNT}" onclick="$('#notification_list').toggle();">{NOTIFICATIONS_COUNT}</a> ] &bull;
<div id="notification_list" class="notification_list"> <div id="notification_list" class="notification_list">
<div class="row1 header">
{L_NOTIFICATIONS}
</div>
<div class="notification_scroll">
<table class="tablebg" width="310px" cellspacing="1"> <table class="tablebg" width="310px" cellspacing="1">
<!-- BEGIN notifications --> <!-- BEGIN notifications -->
<tr class="row<!-- IF notifications.UNREAD -->2<!-- ELSE -->1<!-- ENDIF -->"> <tr class="row<!-- IF notifications.UNREAD -->2<!-- ELSE -->1<!-- ENDIF -->">
@ -163,18 +168,25 @@ function marklist(id, name, state)
<!-- ELSE --> <!-- ELSE -->
<td colspan="2" valign="top"> <td colspan="2" valign="top">
<!-- ENDIF --> <!-- ENDIF -->
<div class="notification_title">
<!-- IF notifications.URL --><a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"><!-- ENDIF --> <!-- IF notifications.URL --><a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"><!-- ENDIF -->
{notifications.FORMATTED_TITLE} {notifications.FORMATTED_TITLE}
<!-- IF notifications.URL --></a><!-- ENDIF --><br /> <!-- IF notifications.URL --></a><!-- ENDIF -->
{notifications.TIME} <br />{notifications.TIME}
<!-- IF not notifications.URL and notifications.UNREAD --> <!-- IF not notifications.URL and notifications.UNREAD -->
<br /><a href="{notifications.U_MARK_READ}">{L_MARK_READ}</a> <br /><a href="{notifications.U_MARK_READ}">{L_MARK_READ}</a>
<!-- ENDIF --> <!-- ENDIF -->
</div>
</td> </td>
</tr> </tr>
<!-- END notifications --> <!-- END notifications -->
</table> </table>
</div> </div>
<div class="row1 footer">
<a href="{U_VIEW_ALL_NOTIFICATIONS}"><span>{L_SEE_ALL}</span></a>
</div>
</div>
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF --> <!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF --> <!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}"><img src="{T_THEME_PATH}/images/icon_mini_login.gif" width="12" height="13" alt="*" /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->

View file

@ -1145,15 +1145,41 @@ a.imageset {
#notification_list { #notification_list {
display: none; display: none;
position: absolute; position: absolute;
width: 330px; width: 310px;
max-height: 350px;
z-index: 1; z-index: 1;
}
#notification_list .notification_scroll {
max-height: 350px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
background-color: #FFFFFF; }
#notification_list .notification_title {
width: 240px;
}
#notification_list .header {
width: 298px;
padding: 5px;
font-weight: bold;
border: 1px solid #A9B8C2;
border-bottom: 0;
}
#notification_list .footer {
width: 300px;
text-align: center;
font-size: 1.2em;
border: 1px solid #A9B8C2;
border-top: 0;
} }
.notification_list img { .notification_list img {
max-width: 50px; max-width: 50px;
max-height: 50px; max-height: 50px;
} }
#notification_list .footer > a {
display: block;
}