Support for more content elements
authorAlexander Ebert <ebert@woltlab.com>
Tue, 19 Mar 2019 21:43:06 +0000 (22:43 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 19 Mar 2019 21:43:06 +0000 (22:43 +0100)
com.woltlab.wcf/templates/articleListItems.tpl
wcfsetup/install/files/style/ui/contentItem.scss

index 695ca9630b16c59bda69d5a09c8d56911850bea2..67fd5b2d55983a5c1d27f34a7d4aaf0a2c789528 100644 (file)
@@ -8,6 +8,8 @@
                                                        {content}
                                                                {if $article->isDeleted}<span class="badge label red contentItemBadge contentItemBadgeIsDeleted">{lang}wcf.message.status.deleted{/lang}</span>{/if}
                                                                {if ARTICLE_ENABLE_VISIT_TRACKING && $article->isNew()}<span class="badge label contentItemBadge contentItemBadgeNew">{lang}wcf.message.new{/lang}</span>{/if}
+                                                               
+                                                               {event name='contentItemBadges'}
                                                        {/content}
                                                </div>
                                        {/hascontent}
@@ -38,7 +40,7 @@
                                <div class="contentItemMetaContent">
                                        <div class="contentItemMetaAuthor">
                                                {if $article->userID}
-                                                       <a href="{$article->getUserProfile()->getLink()}">{$article->getUserProfile()->username}</a>
+                                                       <a href="{$article->getUserProfile()->getLink()}" class="userLink" data-user-id="{@$article->userID}">{$article->getUserProfile()->username}</a>
                                                {else}
                                                        {$article->username}
                                                {/if}
index e7c7f1b675a93f95208a06bf75ec061a899cbb3f..1a98b5e9269078f6095341dada6ee2af31fc57cc 100644 (file)
@@ -14,6 +14,7 @@
        flex-direction: column;
        margin-bottom: 20px;
        max-width: calc(50% - 10px); /* IE 11 */
+       position: relative;
        overflow: hidden;
 }
 
        position: relative;
 }
 
-.contentItemBadges {
+.contentItemBadges,
+.contentItemOptions {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
-       left: 10px;
        position: absolute;
        top: 10px;
 }
 
-.contentItemBadge {
-       border: 1px solid currentColor;
+.contentItemBadges {
+       left: 10px;
+}
+
+.contentItemOptions {
+       right: 10px;
+       z-index: 1;
+}
+
+.contentItemBadge,
+.contentItemOption {
        flex: 0 auto;
        
        &:not(:first-child) {
        }
 }
 
+.contentItemBadge {
+       border: 1px solid currentColor;
+}
+
 .contentItemLabels {
        margin-bottom: 5px;
 }
        margin-top: 10px;
 }
 
+.contentItemContentLinks {
+       padding: 0 10px 10px 10px;
+}
+
 .contentItemMeta {
        align-items: center;
        border-top: 1px solid $wcfContentBorderInner;