<section class="section sectionContainerList dashboardBoxRecentActivity" id="dashboardBoxRecentActivity">
<header class="sectionHeader">
<h2 class="sectionTitle">{lang}wcf.user.recentActivity{/lang}</h2>
-
+ </header>
+
+ {assign var='__events' value=$eventList->getObjects()}
+ {assign var='__lastEvent' value=$__events|end}
+ <ul id="recentActivities" class="containerList recentActivityList" data-last-event-time="{@$lastEventTime}" data-last-event-id="{if $__lastEvent}{@$__lastEvent->eventID}{else}0{/if}">
{if $canFilterByFollowedUsers}
- <nav class="jsMobileNavigation buttonGroupNavigation jsOnly jsRecentActivitySwitchContext">
+ <li class="containerListButtonGroup jsOnly jsRecentActivitySwitchContext">
<ul class="buttonGroup">
<li><a href="#" class="button small{if !$filteredByFollowedUsers} active{/if}">{lang}wcf.user.recentActivity.scope.all{/lang}</a></li>
<li><a href="#" class="button small{if $filteredByFollowedUsers} active{/if}">{lang}wcf.user.recentActivity.scope.followedUsers{/lang}</a></li>
</ul>
- </nav>
+ </li>
{/if}
- </header>
-
- {assign var='__events' value=$eventList->getObjects()}
- {assign var='__lastEvent' value=$__events|end}
- <ul id="recentActivities" class="containerList recentActivityList" data-last-event-time="{@$lastEventTime}" data-last-event-id="{if $__lastEvent}{@$__lastEvent->eventID}{else}0{/if}">
+
{include file='recentActivityListItem'}
</ul>
</section>
</script>
<ul id="likeList" class="containerList recentActivityList likeList" data-last-like-time="{@$lastLikeTime}">
- <li class="likeTypeSelection">
+ <li class="containerListButtonGroup likeTypeSelection">
<ul class="buttonGroup" id="likeType">
<li><a class="button small active" data-like-type="received">{lang}wcf.like.likesReceived{/lang}</a></li>
<li><a class="button small" data-like-type="given">{lang}wcf.like.likesGiven{/lang}</a></li>
}
}
+ &.containerListButtonGroup {
+ text-align: right;
+
+ &:hover {
+ background-color: transparent;
+ }
+
+ > .buttonGroup {
+ display: inline-flex;
+
+ &:not(:first-child) {
+ margin-left: 5px;
+ }
+ }
+ }
+
@include screen-md-down {
.hasMobileNavigation > .containerHeadline > h3 {
padding-right: 30px;
}
}
-.likeList {
- > .likeTypeSelection {
- text-align: right;
-
- &:hover {
- background-color: transparent;
- }
-
- > .buttonGroup {
- display: inline-flex;
-
- &:not(:first-child) {
- margin-left: 5px;
- }
- }
- }
-}
-
/* using `dl` + `.inlineDataList` to prevent styles applied to the
data list provided by the `userInformation` template */
.userProfilePreview dl.inlineDataList {