Skip to content

Commit 45b1b14

Browse files
fix: add group about (#7535)
* f * fix: adding about * cb * f * pos Co-authored-by: Meghal Bisht <[email protected]>
1 parent 75b6103 commit 45b1b14

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

app/templates/components/forms/group/group-settings-form.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
</div>
1111

1212
<form class="ui form {{if this.isLoading 'loading'}}" >
13+
<div class="field mt-4">
14+
<label>{{t 'About'}}</label>
15+
<Widgets::Forms::RichTextEditor
16+
@value={{@group.about}}
17+
@name="description" />
18+
</div>
1319
<div class="fields">
1420
<div class="fifteen wide field">
1521
<Widgets::Forms::ImageUpload

app/templates/components/forms/group/group-view.hbs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,36 @@
3333
{{/if}}
3434
{{/each}}
3535
</div>
36+
{{#if @group.about}}
37+
<br>
38+
<div class="description">
39+
{{sanitize @group.about}}
40+
</div>
41+
<br>
42+
{{/if}}
3643
{{#if this.upcomingEvents}}
3744
<h2 class="main-heading mb-4">{{t 'Upcoming Events'}}</h2>
3845
<div class="ui stackable three column grid">
3946
{{#each this.upcomingEvents as |event|}}
4047
<EventCard @event={{event}} @shareEvent={{action "shareEvent"}} />
4148
{{/each}}
4249
</div>
50+
{{#if this.upcomingEvents}}
51+
<h2 class="main-heading mb-4">{{t 'Upcoming Events'}}</h2>
52+
<div class="ui stackable three column grid">
53+
{{#each this.upcomingEvents as |event|}}
54+
<EventCard @event={{event}} @shareEvent={{action "shareEvent"}} />
55+
{{/each}}
56+
</div>
57+
{{/if}}
58+
{{#if this.pastEvents}}
59+
<h2 class="main-heading mb-4">{{t 'Past Events'}}</h2>
60+
<div class="ui stackable three column grid">
61+
{{#each this.pastEvents as |event|}}
62+
<EventCard @event={{event}} @shareEvent={{action "shareEvent"}} />
63+
{{/each}}
64+
</div>
65+
{{/if}}
4366
{{/if}}
4467
{{#if this.pastEvents}}
4568
<h2 class="main-heading mb-4">{{t 'Past Events'}}</h2>

app/templates/components/group-card.hbs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<div class="header mb-1">
1313
<a href={{href-to 'groups.view' @group.id}} class="black-text">{{@group.name}}</a>
1414
</div>
15+
<div class="meta mb-2">
16+
{{@group.about}}
17+
</div>
1518
{{#if (not @followedGroups)}}
1619
<LinkTo @route="groups.team" @model={{@group.id}}>
1720
<UiPopup @content={{t "Manage"}} @class="ml-2 ui circular icon button compact blue" @position="left center">
@@ -26,15 +29,6 @@
2629
<button class="ml-2 ui circular icon button compact red" {{action (confirm (t "Are you sure you would like to delete this group?") (action @deleteGroup @group.id))}}><i class="trash icon"></i></button>
2730
{{/if}}
2831
</div>
29-
<div class="meta">
30-
<span class="time">
31-
{{general-date @group.modifieddAt 'date-time-short'}}
32-
</span>
33-
<br>
34-
{{#each @group.events as |event|}}
35-
<a href="{{event.url}}" target="_blank" rel="noopener" class="ui blue basic compact button">{{event.name}} </a>
36-
{{/each}}
37-
</div>
3832
</div>
3933
</div>
4034
</div>

0 commit comments

Comments
 (0)