-<header class="boxHeadline boxSubHeadline">
+<header class="boxHeadline boxSubHeadline dashboardBoxRecentActivityHeadline">
<h2>{lang}wcf.user.recentActivity{/lang}</h2>
- {if $filteredByFollowedUsers}<p>{lang}wcf.user.recentActivity.filteredByFollowedUsers{/lang}</p>{/if}
- {* TODO: styling *}
- {if $canFilterByFollowedUsers}<a class="jsOnly jsRecentActivitySwitchContext" style="float: right">{lang}wcf.user.recentActivity.scope.{if $filteredByFollowedUsers}all{else}followedUsers{/if}{/lang}</a>{/if}
+
+ {if $canFilterByFollowedUsers}
+ <nav class="jsMobileNavigation buttonGroupNavigation 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>
+ {/if}
</header>
<div class="container marginTop">
}
if (WCF.User.userID) {
- $('.jsRecentActivitySwitchContext').click($.proxy(this._switchContext, this));
+ $('.jsRecentActivitySwitchContext .button').click($.proxy(this._switchContext, this));
}
},
}
}
}
+}
+
+.dashboardBoxRecentActivityHeadline {
+ overflow: visible;
+ position: relative;
+ min-height: 30px;
+
+ > nav.buttonGroupNavigation {
+ position: absolute;
+ right: 4px;
+ top: 2px;
+ }
}
\ No newline at end of file
<category name="wcf.user.recentActivity">
<item name="wcf.user.recentActivity"><![CDATA[Letzte Aktivitäten]]></item>
- <item name="wcf.user.recentActivity.filteredByFollowedUsers"><![CDATA[Von Benutzern, denen Sie folgen]]></item>
<item name="wcf.user.recentActivity.more"><![CDATA[Weitere Aktivitäten]]></item>
<item name="wcf.user.recentActivity.noMoreEntries"><![CDATA[Keine weiteren Aktivitäten]]></item>
<item name="wcf.user.recentActivity.noEntries"><![CDATA[Es sind keine Aktivitäten vorhanden.]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.recentActivityEvent.follow"><![CDATA[Folgen]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.profileComment.recentActivityEvent"><![CDATA[Pinnwand-Kommentar]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.profileComment.response.recentActivityEvent"><![CDATA[Pinnwand-Antwort]]></item>
- <item name="wcf.user.recentActivity.scope.all"><![CDATA[Zeige Aktivitäten aller Benutzer]]></item>
- <item name="wcf.user.recentActivity.scope.followedUsers"><![CDATA[Zeige Aktivitäten von Benutzeren, denen Sie folgen]]></item>
+ <item name="wcf.user.recentActivity.scope.all"><![CDATA[Aktivitäten aller Benutzer]]></item>
+ <item name="wcf.user.recentActivity.scope.followedUsers"><![CDATA[Aktivitäten von Benutzern, denen Sie folgen]]></item>
</category>
<category name="wcf.user.3rdparty">
<category name="wcf.user.recentActivity">
<item name="wcf.user.recentActivity"><![CDATA[Recent Activities]]></item>
- <item name="wcf.user.recentActivity.filteredByFollowedUsers"><![CDATA[Of users you follow]]></item>
<item name="wcf.user.recentActivity.more"><![CDATA[Show More]]></item>
<item name="wcf.user.recentActivity.noMoreEntries"><![CDATA[No more activities]]></item>
<item name="wcf.user.recentActivity.noEntries"><![CDATA[There are no activities.]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.recentActivityEvent.follow"><![CDATA[Follow]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.profileComment.recentActivityEvent"><![CDATA[Wall Comment]]></item>
<item name="wcf.user.recentActivity.com.woltlab.wcf.user.profileComment.response.recentActivityEvent"><![CDATA[Wall Reply]]></item>
- <item name="wcf.user.recentActivity.scope.all"><![CDATA[All activities]]></item>
- <item name="wcf.user.recentActivity.scope.followedUsers"><![CDATA[Filter by followed users]]></item>
+ <item name="wcf.user.recentActivity.scope.all"><![CDATA[All Activities]]></item>
+ <item name="wcf.user.recentActivity.scope.followedUsers"><![CDATA[Filter by Followed Users]]></item>
</category>
<category name="wcf.user.3rdparty">