+ {{#if model.flair_url}}
+
+ {{avatar-flair
+ flairURL=model.flair_url
+ flairBgColor=model.flair_bg_color
+ flairColor=model.flair_color
+ groupName=model.name}}
+
+ {{/if}}
+
+
+ {{#if model.title}}
+ @{{model.name}}
+ {{/if}}
{{#if canEditGroup}}
-
+
{{d-button action="showGroupEditor" label="group.edit.title" class="group-edit-btn" icon="pencil"}}
{{/if}}
{{#if model.bio_cooked}}
+
+
diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scss
index b9a0e2878f7..2157423bd30 100644
--- a/app/assets/stylesheets/common/base/group.scss
+++ b/app/assets/stylesheets/common/base/group.scss
@@ -3,6 +3,12 @@
font-weight: normal;
}
+.group-name {
+ font-weight: normal;
+ margin-top: 5px;
+ color: dark-light-diff($primary, $secondary, 50%, -50%);
+}
+
.group-details-container {
background: rgba(230, 230, 230, 0.3);
padding: 20px;
@@ -40,16 +46,14 @@ table.group-members {
width: 100%;
}
-.group-header, .group-details {
- display: table;
-
+.group-details {
span {
- display: table-cell;
+ display: inline-block;
vertical-align: middle;
}
.avatar-flair {
- $size: 40px;
+ $size: 50px;
background-size: $size;
height: $size;
@@ -61,8 +65,7 @@ table.group-members {
}
}
-.group-edit-btn {
- margin-left: 5px;
+.group-edit {
float: right;
}
diff --git a/test/javascripts/acceptance/groups-test.js.es6 b/test/javascripts/acceptance/groups-test.js.es6
index 8cb827f3ef3..1e947da6184 100644
--- a/test/javascripts/acceptance/groups-test.js.es6
+++ b/test/javascripts/acceptance/groups-test.js.es6
@@ -39,7 +39,9 @@ test("Admin Browsing Groups", () => {
visit("/groups/discourse");
andThen(() => {
- ok($('.nav-stacked li').length === 5, 'it should show messages tab if user is admin');
+ ok(find('.nav-stacked li').length === 5, 'it should show messages tab if user is admin');
+ equal(find('.group-title').text(), 'Awesome Team', 'it should display the group title');
+ equal(find('.group-name').text(), '@discourse', 'it should display the group name');
});
click('.group-edit-btn');
diff --git a/test/javascripts/fixtures/group-fixtures.js.es6 b/test/javascripts/fixtures/group-fixtures.js.es6
index 38dd8d69d8d..55041ac96f4 100644
--- a/test/javascripts/fixtures/group-fixtures.js.es6
+++ b/test/javascripts/fixtures/group-fixtures.js.es6
@@ -4,6 +4,7 @@ export default {
"id":47,
"automatic":false,
"name":"discourse",
+ "title":"Awesome Team",
"user_count":8,
"alias_level":0,
"visible":true,