diff --git a/app/assets/javascripts/discourse/templates/components/group-post.hbs b/app/assets/javascripts/discourse/templates/components/group-post.hbs index a6d3d6b1016..9e56010fad0 100644 --- a/app/assets/javascripts/discourse/templates/components/group-post.hbs +++ b/app/assets/javascripts/discourse/templates/components/group-post.hbs @@ -1,13 +1,15 @@ -
-
+ - -
+ +
{{#if post.expandedExcerpt}} {{{post.expandedExcerpt}}} {{else}} diff --git a/app/assets/javascripts/discourse/templates/group-activity-posts.hbs b/app/assets/javascripts/discourse/templates/group-activity-posts.hbs index 061160d1ed1..5224c15ffb4 100644 --- a/app/assets/javascripts/discourse/templates/group-activity-posts.hbs +++ b/app/assets/javascripts/discourse/templates/group-activity-posts.hbs @@ -1,11 +1,11 @@ {{#load-more selector=".group-post" action=(action "loadMore")}} -
+
{{#each model as |post|}} - {{group-post post=post class="group-post"}} + {{group-post post=post class="user-stream-item item"}} {{else}}
{{i18n emptyText}}
{{/each}} -
+
{{/load-more}} {{conditional-loading-spinner condition=loading}} diff --git a/app/assets/javascripts/discourse/templates/group.hbs b/app/assets/javascripts/discourse/templates/group.hbs index 53fb6bf9761..ffd45ca15aa 100644 --- a/app/assets/javascripts/discourse/templates/group.hbs +++ b/app/assets/javascripts/discourse/templates/group.hbs @@ -60,7 +60,9 @@
-
- {{outlet}} -
+
+
+ {{outlet}} +
+
diff --git a/app/assets/javascripts/discourse/templates/group/activity.hbs b/app/assets/javascripts/discourse/templates/group/activity.hbs index 06dd8036572..ce6ec6d9bd1 100644 --- a/app/assets/javascripts/discourse/templates/group/activity.hbs +++ b/app/assets/javascripts/discourse/templates/group/activity.hbs @@ -1,16 +1,14 @@ -
- {{#mobile-nav class='group-activity-nav group-navigation' desktopClass="pull-left nav nav-stacked" currentPath=application.currentPath}} +
+ {{#mobile-nav class='activity-nav' desktopClass='action-list activity-list nav-stacked' currentPath=application.currentPath}} {{group-activity-filter filter="posts" categoryId=category_id}} {{group-activity-filter filter="topics" categoryId=category_id}} {{#if siteSettings.enable_mentions}} {{group-activity-filter filter="mentions" categoryId=category_id}} {{/if}} - {{plugin-outlet name="below-group-activity-nav" tagName='' connectorTagName='li'}} + {{plugin-outlet name="group-activity-bottom" tagName='' connectorTagName='li'}} {{/mobile-nav}} +
-
-
- {{outlet}} -
-
-
+
+ {{outlet}} +
diff --git a/app/assets/javascripts/discourse/templates/group/manage.hbs b/app/assets/javascripts/discourse/templates/group/manage.hbs index 0f1e4c9f88b..6357ae842aa 100644 --- a/app/assets/javascripts/discourse/templates/group/manage.hbs +++ b/app/assets/javascripts/discourse/templates/group/manage.hbs @@ -1,5 +1,5 @@ -
- {{#mobile-nav class='group-navigation' desktopClass='pull-left nav nav-stacked' currentPath=application.currentPath}} +
+ {{#mobile-nav class='activity-nav' desktopClass='action-list activity-list nav-stacked' currentPath=application.currentPath}} {{#each tabs as |tab|}}
  • {{#link-to tab.route model.name}} @@ -8,8 +8,8 @@
  • {{/each}} {{/mobile-nav}} +
    -
    - {{outlet}} -
    -
    +
    + {{outlet}} +
    diff --git a/app/assets/javascripts/discourse/templates/group/messages.hbs b/app/assets/javascripts/discourse/templates/group/messages.hbs index 923a6017d08..78d73cc4390 100644 --- a/app/assets/javascripts/discourse/templates/group/messages.hbs +++ b/app/assets/javascripts/discourse/templates/group/messages.hbs @@ -1,5 +1,5 @@ -
    - {{#mobile-nav class='group-navigation' desktopClass='pull-left nav nav-stacked' currentPath=application.currentPath}} +
    + {{#mobile-nav class='messages-nav' desktopClass='nav-stacked action-list' currentPath=application.currentPath}}
  • {{#link-to 'group.messages.inbox' model.name}} @@ -12,10 +12,7 @@ {{/link-to}}
  • {{/mobile-nav}} - -
    -
    - {{outlet}} -
    -
    -
    + +
    + {{outlet}} +
    diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scss index 4761dd95009..9852f3379a8 100644 --- a/app/assets/stylesheets/common/base/group.scss +++ b/app/assets/stylesheets/common/base/group.scss @@ -1,5 +1,9 @@ +// We should try to reuse the user page HTML for groups when possible +// To style group content differently, use the existing classes with a .group parent class. +// For example: .group .user-navigation + .group-details-container { - background: rgba(230, 230, 230, 0.3); + background: $primary-very-low; padding: 20px; margin-bottom: 15px; position: relative; @@ -24,45 +28,6 @@ } } -.group-post { - .group-post-header { - display: flex; - - .group-post-avatar { - margin-right: 0.5em; - } - - .time, - .delete-info { - color: lighten($primary, 40%); - font-size: $font-down-1; - } - - .group-member-info { - display: flex; - color: lighten($primary, 40%); - } - } - - .group-post-info { - display: flex; - width: 100%; - justify-content: space-between; - .group-post-title { - font-size: $font-up-1; - } - } - - .group-post-excerpt { - margin: 1em 0; - word-wrap: break-word; - color: $primary; - } - - padding: 1em 0; - border-bottom: 1px solid $primary-low; -} - .group-info { width: 100%; @@ -173,7 +138,7 @@ table.group-members { td { text-align: center; - color: blend-primary-secondary(50%); + color: $primary-medium; padding: 0.8em 0; } } diff --git a/app/assets/stylesheets/common/base/user.scss b/app/assets/stylesheets/common/base/user.scss index 91f5ef5e2ac..749dbab90ad 100644 --- a/app/assets/stylesheets/common/base/user.scss +++ b/app/assets/stylesheets/common/base/user.scss @@ -1,4 +1,5 @@ // Common styles for "/user" section +// These styles are also used for "/groups" — test those pages if making significant changes .user-right { .list-actions { margin-bottom: 10px;